Debian Codegraph @

test/command/suite/wal_recover/ja/delete/huge.test

raw
1 # _database_close/_database_reopen can't use with HTTP because requests via HTTP are always
2 # processed by workers. Workers never use primary WAL role.
3 #@require-interface stdio
4
5 #@require-feature message_pack
6
7 #$GROONGA_ALLOW_DATABASE_REOPEN=yes
8 #$GRN_WAL_ROLE=primary
9
10 #@disable-logging
11 cache_limit --max 0
12 #@enable-logging
13
14 table_create Memos TABLE_HASH_KEY ShortText
15 column_create Memos content COLUMN_SCALAR Text
16
17 #@timeout 300
18
19 #@disable-logging
20 #@generate-series 0 1 Memos '{"_key" => "huge: 4MiB <=: #{i}", "content" => "abcd" * ((4 * 1024 * 1024) / 4)}'
21 #@enable-logging
22
23 check --obj Memos.content
24
25 io_flush
26 #@copy-path #{db_path}.0000101 #{db_path}.0000101.keep
27
28 delete Memos --filter _id==1
29 check --obj Memos.content
30
31 delete Memos --filter _id==2
32 check --obj Memos.content
33
34 #@copy-path #{db_path}.0000101.wal #{db_path}.0000101.wal.keep
35 _database_close
36
37 #@copy-path #{db_path}.0000101.keep #{db_path}.0000101
38 #@copy-path #{db_path}.0000101.wal.keep #{db_path}.0000101.wal
39 _database_reopen
40
41 check --obj Memos.content