Debian Codegraph @

test/command/suite/wal_recover/ja/add/chunk.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_ENABLE_REFERENCE_COUNT=no
9 #$GRN_WAL_ROLE=primary
10
11 #@disable-logging
12 cache_limit --max 0
13 #@enable-logging
14
15 table_create Memos TABLE_HASH_KEY ShortText
16 column_create Memos content COLUMN_SCALAR Text
17
18 io_flush
19 #@copy-path #{db_path}.0000101 #{db_path}.0000101.initial
20
21 load --table Memos
22 [
23 {"_key": "chunk: 8B <= && <= 64KiB", "content": "chunkXXX"}
24 ]
25
26 check --obj Memos.content
27
28 select Memos
29
30 #@copy-path #{db_path}.0000101.wal #{db_path}.0000101.wal.keep
31 _database_close
32
33 #@copy-path #{db_path}.0000101.initial #{db_path}.0000101
34 #@copy-path #{db_path}.0000101.wal.keep #{db_path}.0000101.wal
35 _database_reopen
36
37 select Memos
38
39 check --obj Memos.content