File: fts_sync_commit_resiliency.result

package info (click to toggle)
mariadb 1%3A11.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 765,428 kB
  • sloc: ansic: 2,382,827; cpp: 1,803,532; asm: 378,315; perl: 63,176; sh: 46,496; pascal: 40,776; java: 39,363; yacc: 20,428; python: 19,506; sql: 17,864; xml: 12,463; ruby: 8,544; makefile: 6,059; cs: 5,855; ada: 1,700; lex: 1,193; javascript: 1,039; objc: 80; tcl: 73; awk: 46; php: 22
file content (63 lines) | stat: -rw-r--r-- 3,086 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
CREATE TABLE opening_lines (
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
opening_line TEXT(500),
author VARCHAR(200),
title VARCHAR(200)
) ENGINE=InnoDB;
CREATE FULLTEXT INDEX idx ON opening_lines(opening_line);
CREATE FULLTEXT INDEX ft_idx1 ON opening_lines(title);
INSERT INTO opening_lines(opening_line,author,title) VALUES
('Call me Ishmael.','Herman Melville','Moby Dick'),
('A screaming comes across the sky.','Thomas Pynchon','Gravity\'s Rainbow'),
       ('I am an invisible man.','Ralph Ellison','Invisible Man'),
       ('Where now? Who now? When now?','Samuel Beckett','The Unnamable'),
       ('It was love at first sight.','Joseph Heller','Catch-22'),
       ('All this happened, more or less.','Kurt Vonnegut','Slaughterhouse-Five'),
       ('Mrs. Dalloway said she would buy the flowers herself.','Virginia Woolf','Mrs. Dalloway'),
       ('It was a pleasure to burn.','Ray Bradbury','Fahrenheit 451');
SET GLOBAL innodb_ft_aux_table='test/opening_lines';
SELECT * FROM information_schema.innodb_ft_config;
KEY	VALUE
optimize_checkpoint_limit	180
synced_doc_id	0
stopword_table_name	
use_stopword	1
SELECT * FROM opening_lines WHERE MATCH(opening_line) AGAINST('Ishmael');
id	opening_line	author	title
1	Call me Ishmael.	Herman Melville	Moby Dick
SELECT * FROM opening_lines WHERE MATCH(opening_line) AGAINST('invisible');
id	opening_line	author	title
3	I am an invisible man.	Ralph Ellison	Invisible Man
SELECT * FROM opening_lines;
id	opening_line	author	title
1	Call me Ishmael.	Herman Melville	Moby Dick
2	A screaming comes across the sky.	Thomas Pynchon	Gravity's Rainbow
3	I am an invisible man.	Ralph Ellison	Invisible Man
4	Where now? Who now? When now?	Samuel Beckett	The Unnamable
5	It was love at first sight.	Joseph Heller	Catch-22
6	All this happened, more or less.	Kurt Vonnegut	Slaughterhouse-Five
7	Mrs. Dalloway said she would buy the flowers herself.	Virginia Woolf	Mrs. Dalloway
8	It was a pleasure to burn.	Ray Bradbury	Fahrenheit 451
SET GLOBAL innodb_optimize_fulltext_only=ON;
SET DEBUG_SYNC='fts_crash_before_commit_sync SIGNAL hung WAIT_FOR ever';
OPTIMIZE TABLE opening_lines;
connect con1,localhost,root,,;
SET DEBUG_SYNC='now WAIT_FOR hung';
# restart
SELECT * FROM opening_lines WHERE MATCH(opening_line) AGAINST('Ishmael');
id	opening_line	author	title
1	Call me Ishmael.	Herman Melville	Moby Dick
SELECT * FROM opening_lines WHERE MATCH(opening_line) AGAINST('invisible');
id	opening_line	author	title
3	I am an invisible man.	Ralph Ellison	Invisible Man
SELECT * FROM opening_lines;
id	opening_line	author	title
1	Call me Ishmael.	Herman Melville	Moby Dick
2	A screaming comes across the sky.	Thomas Pynchon	Gravity's Rainbow
3	I am an invisible man.	Ralph Ellison	Invisible Man
4	Where now? Who now? When now?	Samuel Beckett	The Unnamable
5	It was love at first sight.	Joseph Heller	Catch-22
6	All this happened, more or less.	Kurt Vonnegut	Slaughterhouse-Five
7	Mrs. Dalloway said she would buy the flowers herself.	Virginia Woolf	Mrs. Dalloway
8	It was a pleasure to burn.	Ray Bradbury	Fahrenheit 451
DROP TABLE opening_lines;