-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug#1634932: Assertion failure in thread x in file fts0que.cc #1297
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Bug 1634932: Assertion failure in thread x in | ||
# file fts0que.cc | ||
# | ||
SET @saved_innodb_ft_result_cache_limit= @@global.innodb_ft_result_cache_limit; | ||
CREATE TABLE `t1` ( | ||
`FTS_DOC_ID` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`text_content` MEDIUMTEXT, PRIMARY KEY (`FTS_DOC_ID`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
CREATE UNIQUE INDEX FTS_DOC_ID_INDEX ON t1(FTS_DOC_ID); | ||
SET autocommit=0; | ||
CREATE PROCEDURE populate_t1() | ||
BEGIN | ||
DECLARE i INT DEFAULT 1; | ||
WHILE (i <= 250) DO | ||
INSERT INTO t1 (text_content) VALUES ("some_text_1234 aaa"); | ||
SET i = i + 1; | ||
END WHILE; | ||
END// | ||
CALL populate_t1; | ||
SET autocommit=1; | ||
SET SESSION debug="+d,fts_instrument_result_cache_limit"; | ||
ALTER TABLE t1 ADD FULLTEXT INDEX `text_content_idx` (`text_content`); | ||
SELECT FTS_DOC_ID, text_content | ||
FROM t1 | ||
WHERE MATCH text_content AGAINST ('+some_text_1234' IN BOOLEAN MODE); | ||
ERROR HY000: FTS query exceeds result cache limit | ||
UPDATE t1 | ||
SET text_content='some_text_12345' | ||
where MATCH text_content AGAINST ('+some_text_1234' IN BOOLEAN MODE); | ||
ERROR HY000: FTS query exceeds result cache limit | ||
DELETE FROM t1 | ||
WHERE MATCH text_content AGAINST ('+some_text_1234' IN BOOLEAN MODE); | ||
ERROR HY000: FTS query exceeds result cache limit | ||
SET GLOBAL innodb_ft_result_cache_limit = @saved_innodb_ft_result_cache_limit; | ||
DROP TABLE t1; | ||
DROP PROCEDURE populate_t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--echo # | ||
--echo # Bug 1634932: Assertion failure in thread x in | ||
--echo # file fts0que.cc | ||
--echo # | ||
|
||
--source include/have_innodb.inc | ||
--source include/have_debug.inc | ||
|
||
SET @saved_innodb_ft_result_cache_limit= @@global.innodb_ft_result_cache_limit; | ||
|
||
CREATE TABLE `t1` ( | ||
`FTS_DOC_ID` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`text_content` MEDIUMTEXT, PRIMARY KEY (`FTS_DOC_ID`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
CREATE UNIQUE INDEX FTS_DOC_ID_INDEX ON t1(FTS_DOC_ID); | ||
|
||
SET autocommit=0; | ||
|
||
DELIMITER //; | ||
CREATE PROCEDURE populate_t1() | ||
BEGIN | ||
DECLARE i INT DEFAULT 1; | ||
WHILE (i <= 250) DO | ||
INSERT INTO t1 (text_content) VALUES ("some_text_1234 aaa"); | ||
SET i = i + 1; | ||
END WHILE; | ||
END// | ||
|
||
DELIMITER ;// | ||
|
||
CALL populate_t1; | ||
SET autocommit=1; | ||
|
||
SET SESSION debug="+d,fts_instrument_result_cache_limit"; | ||
|
||
ALTER TABLE t1 ADD FULLTEXT INDEX `text_content_idx` (`text_content`); | ||
|
||
# HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT = 188 | ||
--error 188 | ||
SELECT FTS_DOC_ID, text_content | ||
FROM t1 | ||
WHERE MATCH text_content AGAINST ('+some_text_1234' IN BOOLEAN MODE); | ||
|
||
--error 188 | ||
UPDATE t1 | ||
SET text_content='some_text_12345' | ||
where MATCH text_content AGAINST ('+some_text_1234' IN BOOLEAN MODE); | ||
|
||
--error 188 | ||
DELETE FROM t1 | ||
WHERE MATCH text_content AGAINST ('+some_text_1234' IN BOOLEAN MODE); | ||
|
||
SET GLOBAL innodb_ft_result_cache_limit = @saved_innodb_ft_result_cache_limit; | ||
|
||
DROP TABLE t1; | ||
DROP PROCEDURE populate_t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InnoDB code (everything in
storage/innobase*
) requires InnoDB-style code formatting:SQL code (for instance
sql/*
andinclude/*
) requires MySQL-style code formatting:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done