From e9b4c0bc369790aa02d23bfc2dfc6487c36509bf Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Sun, 12 Oct 2025 12:30:48 +0000 Subject: [PATCH 01/13] =?UTF-8?q?feat.=E5=88=9D=E5=A7=8B=E5=8C=96=E6=9E=84?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/tasks.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c64205fa5..46db1149b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,7 +11,7 @@ { "label": "build_debug", "type": "shell", - "command": "bash build.sh debug", + "command": "bash build.sh debug --make -j24", "problemMatcher": [], "group": { "kind": "build", @@ -21,7 +21,8 @@ { "label": "build_release", "type": "shell", - "command": "bash build.sh release" + "command": "bash build.sh release --make -j24", + "problemMatcher": [] }, { "label": "gen_parser", From 0e2610d5f87a9e489b226e38aac207d6ae579ce0 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Sun, 12 Oct 2025 13:10:55 +0000 Subject: [PATCH 02/13] feat.drop table --- .miniob.history | 22 ++ miniob/db/sys/dblwr.db | Bin 0 -> 8212 bytes miniob/db/sys/lsm/0.mf | Bin 0 -> 73 bytes miniob/db/sys/lsm/CURRENT | 1 + miniob/db/sys/sys.db | 1 + observer.log.20251012 | 310 ++++++++++++++++++ .../sql/executor/command_executor.cpp | 6 + .../sql/executor/drop_table_executor.cpp | 38 +++ .../sql/executor/drop_table_executor.h | 32 ++ src/observer/sql/stmt/drop_table_stmt.cpp | 24 ++ src/observer/sql/stmt/drop_table_stmt.h | 41 +++ src/observer/sql/stmt/stmt.cpp | 5 + src/observer/storage/db/db.cpp | 48 +++ src/observer/storage/db/db.h | 6 + 14 files changed, 534 insertions(+) create mode 100644 .miniob.history create mode 100644 miniob/db/sys/dblwr.db create mode 100644 miniob/db/sys/lsm/0.mf create mode 100644 miniob/db/sys/lsm/CURRENT create mode 100644 miniob/db/sys/sys.db create mode 100644 observer.log.20251012 create mode 100644 src/observer/sql/executor/drop_table_executor.cpp create mode 100644 src/observer/sql/executor/drop_table_executor.h create mode 100644 src/observer/sql/stmt/drop_table_stmt.cpp create mode 100644 src/observer/sql/stmt/drop_table_stmt.h diff --git a/.miniob.history b/.miniob.history new file mode 100644 index 000000000..a90d73796 --- /dev/null +++ b/.miniob.history @@ -0,0 +1,22 @@ +### 2025-10-12 13:02:19.975 +create table good(key1 int); +### 2025-10-12 13:03:27.835 +CREATE TABLE test (id int, name varchar(20)); +### 2025-10-12 13:03:37.330 +drop_table good +### 2025-10-12 13:03:54.145 +drop-table good; +### 2025-10-12 13:06:35.991 +drop table good; +### 2025-10-12 13:06:43.195 +show tables +### 2025-10-12 13:07:07.742 +DROP TABLE good; +### 2025-10-12 13:07:10.347 +quit; +### 2025-10-12 13:07:15.213 +exit; +### 2025-10-12 13:10:10.017 +drop table good +### 2025-10-12 13:10:15.728 +exit diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db new file mode 100644 index 0000000000000000000000000000000000000000..f28a9ef6f3df5e58794d849e880a301bf1f74790 GIT binary patch literal 8212 zcmeIuu?YYm3p8x>@1PBly hK!5-N0t5&UAV7cs0RjXF5FkK+009C72oU&NU;;X}1Tp{s literal 0 HcmV?d00001 diff --git a/miniob/db/sys/lsm/0.mf b/miniob/db/sys/lsm/0.mf new file mode 100644 index 0000000000000000000000000000000000000000..87d63b5aa45f5f0c5029cc1259c666dc51aad5b2 GIT binary patch literal 73 zcmZ={fPiW)PNm$`+>*qkoYeTt6eR^K1p^(RSW#+neo;z%No7GQNKDB;$u}`CGcC2a P#4okn7pg&ttCkA@rLh#; literal 0 HcmV?d00001 diff --git a/miniob/db/sys/lsm/CURRENT b/miniob/db/sys/lsm/CURRENT new file mode 100644 index 000000000..c22708346 --- /dev/null +++ b/miniob/db/sys/lsm/CURRENT @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/miniob/db/sys/sys.db b/miniob/db/sys/sys.db new file mode 100644 index 000000000..c22708346 --- /dev/null +++ b/miniob/db/sys/sys.db @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/observer.log.20251012 b/observer.log.20251012 new file mode 100644 index 000000000..50e0fc05b --- /dev/null +++ b/observer.log.20251012 @@ -0,0 +1,310 @@ +[2025-10-12 13:01:23.507799 pid:52295 tid:77428c1c87c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-12 13:01:23.511532 pid:52295 tid:77428c1c87c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-12 13:01:23.513277 pid:52295 tid:7742890146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-12 13:01:23.517647 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.518201 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.518770 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.519525 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.520083 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.520540 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.520978 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.521777 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.522727 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.523984 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.524451 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.524886 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.525698 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.526184 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.526704 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.527171 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.527650 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.528119 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.528580 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.529081 pid:52295 tid:77428c1c87c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.529121 pid:52295 tid:77428c1c87c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:01:23.529132 pid:52295 tid:77428c1c87c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-12 13:01:23.530011 pid:52295 tid:77428c1c87c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=0 +[2025-10-12 13:01:23.531372 pid:52295 tid:77428c1c87c0 ctx:0 INFO: init_meta@db.cpp:323] >> Db meta file not exist. db=sys, file=miniob/db/sys/sys.db +[2025-10-12 13:01:23.531805 pid:52295 tid:77428c1c87c0 ctx:0 INFO: open_all_tables@db.cpp:233] >> All table have been opened. num=0 +[2025-10-12 13:01:23.537651 pid:52295 tid:77428c1c87c0 ctx:0 TRACE: recover@db.cpp:287] >> db recover begin. check_point_lsn=0 +[2025-10-12 13:01:23.538235 pid:52295 tid:77428c1c87c0 ctx:0 INFO: recover@db.cpp:314] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-12 13:01:23.538352 pid:52295 tid:77428c1c87c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-12 13:01:23.538385 pid:52295 tid:77428c1c87c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-12 13:01:23.538413 pid:52295 tid:77428c1c87c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-12 13:02:19.980424 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-12 13:02:19.981210 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-12 13:02:19.981283 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:02:19.981302 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:130] >> LBRACE +[2025-10-12 13:02:19.981315 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:02:19.981324 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:111] >> INT_T +[2025-10-12 13:02:19.981332 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:131] >> RBRACE +[2025-10-12 13:02:19.981366 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-12 13:02:19.981461 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name good] +[2025-10-12 13:02:19.982362 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:good +[2025-10-12 13:02:19.983491 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: init@field_meta.cpp:57] >> Init a field with name=key1 +[2025-10-12 13:02:19.983549 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=0, name=good +[2025-10-12 13:02:19.984339 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/good.data. +[2025-10-12 13:02:19.986112 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-12 13:02:19.986755 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x774287c06808 +[2025-10-12 13:02:19.987027 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x774287c06808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x774287c06808 +[2025-10-12 13:02:19.987703 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/good.data:0, file_desc:10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0, this=0x774287c06808 +[2025-10-12 13:02:19.987820 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=10, hdr_frame=0x774287c06808, file header=pageCount:1, allocatedCount:1 +[2025-10-12 13:02:19.987954 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=10, bp=0x50e0000011c0, lbt=0x4d1e0 0x585644 0xe17fe 0x31d5c2 0x320e9e 0x13c967 0x10fdae 0x1c1730 0x1bdab9 0x7619b 0x6e367 0x6ee6b 0x6b63c 0x40258 0x21ca 0x228b 0x44075 +[2025-10-12 13:02:19.991285 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-12 13:02:19.991335 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-12 13:02:19.991368 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:good +[2025-10-12 13:02:19.991390 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: create_table@db.cpp:175] >> Create table success. table name=good, table_id:0 +[2025-10-12 13:02:19.991484 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:1 +[2025-10-12 13:02:19.991550 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x774287c06808 +[2025-10-12 13:02:19.991607 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=good +[2025-10-12 13:02:19.991623 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: sync@db.cpp:257] >> Successfully sync table db:sys, table:good. +[2025-10-12 13:02:19.999038 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-12 13:02:19.999166 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=559150982 +[2025-10-12 13:02:19.999204 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: sync@db.cpp:262] >> double write buffer flush pages ret=SUCCESS +[2025-10-12 13:02:19.999438 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: flush_meta@db.cpp:395] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-12 13:02:19.999523 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: sync@db.cpp:281] >> Successfully sync db. db=sys +[2025-10-12 13:02:19.999538 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: execute@command_executor.cpp:100] >> sync db after ddl. rc=0 +[2025-10-12 13:02:20.000014 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:03:09.979631 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-12 13:03:09.979669 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-12 13:03:09.979685 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:03:09.979702 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-12 13:03:09.979735 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: create_stmt@stmt.cpp:117] >> Command::type 7 doesn't need to create statement. +[2025-10-12 13:03:09.979749 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2025-10-12 13:03:09.979762 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2025-10-12 13:03:09.979831 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:03:27.835605 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-12 13:03:27.835648 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-12 13:03:27.835664 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:03:27.835675 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:130] >> LBRACE +[2025-10-12 13:03:27.835684 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:03:27.835690 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:111] >> INT_T +[2025-10-12 13:03:27.835711 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:133] >> COMMA +[2025-10-12 13:03:27.835725 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:03:27.835732 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:03:27.835787 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-12 13:03:27.835813 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-12 13:03:27.835856 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:03:37.331082 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:03:37.331142 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-12 13:03:37.331153 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-12 13:03:37.331207 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:03:54.146176 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-12 13:03:54.146234 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-12 13:03:54.146248 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-12 13:03:54.146300 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:04:43.333665 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:04:43.333767 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-12 13:04:43.333784 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-12 13:04:43.333846 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:04:47.125072 pid:52295 tid:77428c1c87c0 ctx:504000000310 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:04:47.125166 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-12 13:04:47.125185 pid:52295 tid:77428c1c87c0 ctx:504000000310 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-12 13:04:47.125228 pid:52295 tid:77428c1c87c0 ctx:504000000310 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:04:59.101199 pid:52295 tid:7742866ff6c0 ctx:0 INFO: quit_thread_func@main.cpp:156] >> Receive signal: 1 +[2025-10-12 13:04:59.101290 pid:52295 tid:7742866ff6c0 ctx:0 INFO: shutdown@server.cpp:342] >> CliServer shutting down +[2025-10-12 13:06:26.685925 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-12 13:06:26.689639 pid:56011 tid:74d03a1f17c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-12 13:06:26.691131 pid:56011 tid:74d0370146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-12 13:06:26.694549 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.695006 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.695438 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.695855 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.696254 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.696641 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.697036 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.697427 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.697876 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.698277 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.698674 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.699342 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.699813 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.700315 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.700740 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.701183 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.701743 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.702289 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.702743 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.703259 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.703303 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:06:26.703311 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-12 13:06:26.704219 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=1 +[2025-10-12 13:06:26.705197 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init_meta@db.cpp:350] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-12 13:06:26.706377 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=key1 +[2025-10-12 13:06:26.706768 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-12 13:06:26.707071 pid:56011 tid:74d03a1f17c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x74d035c06808 +[2025-10-12 13:06:26.707146 pid:56011 tid:74d03a1f17c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x74d035c06808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x74d035c06808 +[2025-10-12 13:06:26.707219 pid:56011 tid:74d03a1f17c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-12 13:06:26.707245 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x74d035c06808, file header=pageCount:1, allocatedCount:1 +[2025-10-12 13:06:26.707290 pid:56011 tid:74d03a1f17c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x585644 0xe17fe 0x31d5c2 0x320e9e 0x1410e9 0x111b07 0x11c096 0x127ab8 0x12b1ab 0x50d9e 0x58621 0x4020f 0x21ca 0x228b 0x44075 +[2025-10-12 13:06:26.708800 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-12 13:06:26.708848 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-12 13:06:26.708898 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: open_all_tables@db.cpp:230] >> Open table: good, file: good.table +[2025-10-12 13:06:26.708910 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: open_all_tables@db.cpp:233] >> All table have been opened. num=1 +[2025-10-12 13:06:26.715243 pid:56011 tid:74d03a1f17c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-12 13:06:26.715370 pid:56011 tid:74d03a1f17c0 ctx:0 TRACE: recover@db.cpp:287] >> db recover begin. check_point_lsn=0 +[2025-10-12 13:06:26.715882 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: recover@db.cpp:314] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-12 13:06:26.716112 pid:56011 tid:74d03a1f17c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-12 13:06:26.716213 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-12 13:06:26.716253 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-12 13:06:34.385721 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-12 13:06:34.386147 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-12 13:06:34.386215 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:06:34.386234 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-12 13:06:34.386283 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: create_stmt@stmt.cpp:117] >> Command::type 7 doesn't need to create statement. +[2025-10-12 13:06:34.386298 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2025-10-12 13:06:34.386319 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2025-10-12 13:06:34.386481 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:06:35.991843 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-12 13:06:35.991938 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-12 13:06:35.991953 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:06:35.991964 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-12 13:06:35.991983 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: create_stmt@stmt.cpp:117] >> Command::type 7 doesn't need to create statement. +[2025-10-12 13:06:35.991993 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2025-10-12 13:06:35.992000 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2025-10-12 13:06:35.992051 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:06:43.196490 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:95] >> SHOW +[2025-10-12 13:06:43.196534 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-12 13:06:43.196823 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:07:07.742627 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-12 13:07:07.742652 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-12 13:07:07.742662 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:07:07.742675 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-12 13:07:07.742694 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: create_stmt@stmt.cpp:117] >> Command::type 7 doesn't need to create statement. +[2025-10-12 13:07:07.742700 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2025-10-12 13:07:07.742712 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2025-10-12 13:07:07.742750 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:07:10.347417 pid:56011 tid:74d03a1f17c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:07:10.347547 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-12 13:07:10.347571 pid:56011 tid:74d03a1f17c0 ctx:504000000410 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-12 13:07:10.347621 pid:56011 tid:74d03a1f17c0 ctx:504000000410 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:07:15.214637 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-12 13:07:15.214733 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-12 13:07:15.214824 pid:56011 tid:74d03a1f17c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:1 +[2025-10-12 13:07:15.214857 pid:56011 tid:74d03a1f17c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x74d035c06808 +[2025-10-12 13:07:15.214918 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=good +[2025-10-12 13:07:15.214938 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: sync@db.cpp:257] >> Successfully sync table db:sys, table:good. +[2025-10-12 13:07:15.218581 pid:56011 tid:74d03a1f17c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-12 13:07:15.218682 pid:56011 tid:74d03a1f17c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=559150982 +[2025-10-12 13:07:15.218719 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: sync@db.cpp:262] >> double write buffer flush pages ret=SUCCESS +[2025-10-12 13:07:15.219190 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: flush_meta@db.cpp:395] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-12 13:07:15.219266 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: sync@db.cpp:281] >> Successfully sync db. db=sys +[2025-10-12 13:07:15.219711 pid:56011 tid:74d03a1f17c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x74d035c06808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-12 13:07:15.219793 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-12 13:07:15.219815 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-12 13:07:15.219847 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-12 13:07:15.219903 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-12 13:07:15.222193 pid:56011 tid:74d0370146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-12 13:07:15.420113 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-12 13:07:15.434351 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-12 13:07:15.434547 pid:56011 tid:74d03a1f17c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-12 13:09:53.273481 pid:60692 tid:78421af757c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-12 13:09:53.274055 pid:60692 tid:78421af757c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-12 13:09:53.274992 pid:60692 tid:784217d146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-12 13:09:53.277215 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.278077 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.278814 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.279370 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.280113 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.280610 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.281129 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.281571 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.282000 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.282439 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.282866 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.283278 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.283695 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.284136 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.284654 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.285183 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.285868 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.286414 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.286944 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.287495 pid:60692 tid:78421af757c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.287538 pid:60692 tid:78421af757c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-12 13:09:53.287551 pid:60692 tid:78421af757c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-12 13:09:53.287757 pid:60692 tid:78421af757c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=1 +[2025-10-12 13:09:53.288611 pid:60692 tid:78421af757c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-12 13:09:53.290848 pid:60692 tid:78421af757c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=key1 +[2025-10-12 13:09:53.291404 pid:60692 tid:78421af757c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-12 13:09:53.291684 pid:60692 tid:78421af757c0 ctx:0 DEBUG: lock@mutex.cpp:266] >> debug lock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x585977 0xe188b 0xdbe43 0x80c95 0x9e87e 0x85c73 0xa73c3 0x390f42 0x39258e 0x19f9e8 0xf2940 0xeb3e9 0x114167 0x1101a1 0x14a74 0x15e9d 0xcb37 0x21ca 0x228b 0x99a5 +[2025-10-12 13:09:53.292596 pid:60692 tid:78421af757c0 ctx:0 TRACE: pin@frame.cpp:218] >> after frame pin. this=0x784216905808, write locker=0, read locker has xid 0? pin=1, frameId=buffer_pool_id:1,page_num:0, xid=78421af757c0, lbt=0x4d1e0 0x5a63e0 0xdc57d 0x80c95 0x9e87e 0x85c73 0xa73c3 0x390f42 0x39258e 0x19f9e8 0xf2940 0xeb3e9 0x114167 0x1101a1 0x14a74 0x15e9d 0xcb37 0x21ca 0x228b 0x99a5 +[2025-10-12 13:09:53.292963 pid:60692 tid:78421af757c0 ctx:0 DEBUG: unlock@mutex.cpp:273] >> debug unlock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x586209 0xe18ce 0xdc82a 0x80c95 0x9e87e 0x85c73 0xa73c3 0x390f42 0x39258e 0x19f9e8 0xf2940 0xeb3e9 0x114167 0x1101a1 0x14a74 0x15e9d 0xcb37 0x21ca 0x228b 0x99a5 +[2025-10-12 13:09:53.293115 pid:60692 tid:78421af757c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x784216905808 +[2025-10-12 13:09:53.293357 pid:60692 tid:78421af757c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x784216905808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x784216905808 +[2025-10-12 13:09:53.293637 pid:60692 tid:78421af757c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-12 13:09:53.293738 pid:60692 tid:78421af757c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x784216905808, file header=pageCount:1, allocatedCount:1 +[2025-10-12 13:09:53.293987 pid:60692 tid:78421af757c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a63e0 0xa86d5 0x390f42 0x39258e 0x19f9e8 0xf2940 0xeb3e9 0x114167 0x1101a1 0x14a74 0x15e9d 0xcb37 0x21ca 0x228b 0x99a5 +[2025-10-12 13:09:53.294110 pid:60692 tid:78421af757c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-12 13:09:53.294403 pid:60692 tid:78421af757c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-12 13:09:53.294767 pid:60692 tid:78421af757c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-12 13:09:53.294840 pid:60692 tid:78421af757c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-12 13:09:53.327550 pid:60692 tid:78421af757c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-12 13:09:53.327910 pid:60692 tid:78421af757c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-12 13:09:53.328098 pid:60692 tid:78421af757c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-12 13:09:53.328380 pid:60692 tid:78421af757c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-12 13:09:53.328518 pid:60692 tid:78421af757c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-12 13:09:53.328634 pid:60692 tid:78421af757c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-12 13:10:10.019120 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-12 13:10:10.019185 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-12 13:10:10.019219 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: yylex@lex_sql.l:129] >> ID +[2025-10-12 13:10:10.019315 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name good] +[2025-10-12 13:10:10.019690 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: lock@mutex.cpp:266] >> debug lock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x585977 0xe188b 0xde080 0x87bd5 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.019784 pid:60692 tid:78421af757c0 ctx:504000000410 TRACE: unpin@frame.cpp:236] >> after frame unpin. this=0x784216905808, write locker=0, read locker has xid? 0, pin=0, frameId=buffer_pool_id:1,page_num:0, xid=504000000410, lbt=0x4d1e0 0x5a63e0 0xde804 0x87bd5 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.019845 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: unlock@mutex.cpp:273] >> debug unlock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x586209 0xe18ce 0xe0cf1 0x87bd5 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.019885 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: lock@mutex.cpp:266] >> debug lock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x585977 0xe188b 0xdbe43 0x82f78 0xac0ab 0xabc0a 0xab6c6 0xb70a3 0xb19ba 0x8318d 0x9370c 0x87be4 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.019925 pid:60692 tid:78421af757c0 ctx:504000000410 TRACE: pin@frame.cpp:218] >> after frame pin. this=0x784216905808, write locker=0, read locker has xid 0? pin=1, frameId=buffer_pool_id:1,page_num:0, xid=504000000410, lbt=0x4d1e0 0x5a63e0 0xdc57d 0x82f78 0xac0ab 0xabc0a 0xab6c6 0xb70a3 0xb19ba 0x8318d 0x9370c 0x87be4 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.019969 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: unlock@mutex.cpp:273] >> debug unlock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x586209 0xe18ce 0xdc82a 0x82f78 0xac0ab 0xabc0a 0xab6c6 0xb70a3 0xb19ba 0x8318d 0x9370c 0x87be4 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.020013 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x784216905808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-12 13:10:10.020109 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: lock@mutex.cpp:266] >> debug lock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x585977 0xe188b 0xde080 0x82d56 0x81989 0x931ce 0x937c7 0x87be4 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.020164 pid:60692 tid:78421af757c0 ctx:504000000410 TRACE: unpin@frame.cpp:236] >> after frame unpin. this=0x784216905808, write locker=0, read locker has xid? 0, pin=0, frameId=buffer_pool_id:1,page_num:-1, xid=504000000410, lbt=0x4d1e0 0x5a63e0 0xde804 0x82d56 0x81989 0x931ce 0x937c7 0x87be4 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.020249 pid:60692 tid:78421af757c0 ctx:504000000410 DEBUG: unlock@mutex.cpp:273] >> debug unlock 0x784216907828, lbt=0x4d1e0 0x5a63e0 0x586209 0xe18ce 0xe0cf1 0x82d56 0x81989 0x931ce 0x937c7 0x87be4 0x380baa 0x381632 0x1a41c5 0x1a36fb 0x196ac5 0xf0fc5 0x23812f 0x22e2d9 0x37615 0x301e5 0x2cdec 0x2a8fd 0xcbea 0x21ca 0x228b 0x99a5 +[2025-10-12 13:10:10.020330 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-12 13:10:10.020482 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-12 13:10:10.020754 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-12 13:10:10.020814 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-12 13:10:10.020859 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: drop_table@db.cpp:242] >> Drop table success. table name=good +[2025-10-12 13:10:10.024767 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-12 13:10:10.025056 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-12 13:10:10.025119 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-12 13:10:10.025136 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-12 13:10:10.025222 pid:60692 tid:78421af757c0 ctx:504000000410 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-12 13:10:15.728948 pid:60692 tid:78421af757c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-12 13:10:15.729078 pid:60692 tid:78421af757c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-12 13:10:15.733121 pid:60692 tid:78421af757c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-12 13:10:15.733482 pid:60692 tid:78421af757c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-12 13:10:15.733551 pid:60692 tid:78421af757c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-12 13:10:15.736794 pid:60692 tid:784217d146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-12 13:10:15.933849 pid:60692 tid:78421af757c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-12 13:10:15.938468 pid:60692 tid:78421af757c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-12 13:10:15.938573 pid:60692 tid:78421af757c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! diff --git a/src/observer/sql/executor/command_executor.cpp b/src/observer/sql/executor/command_executor.cpp index de9527afe..44efdea74 100644 --- a/src/observer/sql/executor/command_executor.cpp +++ b/src/observer/sql/executor/command_executor.cpp @@ -18,6 +18,7 @@ See the Mulan PSL v2 for more details. */ #include "sql/executor/analyze_table_executor.h" #include "sql/executor/create_index_executor.h" #include "sql/executor/create_table_executor.h" +#include "sql/executor/drop_table_executor.h" #include "sql/executor/desc_table_executor.h" #include "sql/executor/help_executor.h" #include "sql/executor/load_data_executor.h" @@ -43,6 +44,11 @@ RC CommandExecutor::execute(SQLStageEvent *sql_event) rc = executor.execute(sql_event); } break; + case StmtType::DROP_TABLE: { + DropTableExecutor executor; + rc = executor.execute(sql_event); + } break; + case StmtType::DESC_TABLE: { DescTableExecutor executor; rc = executor.execute(sql_event); diff --git a/src/observer/sql/executor/drop_table_executor.cpp b/src/observer/sql/executor/drop_table_executor.cpp new file mode 100644 index 000000000..ef5e3fb22 --- /dev/null +++ b/src/observer/sql/executor/drop_table_executor.cpp @@ -0,0 +1,38 @@ +/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. +miniob is licensed under Mulan PSL v2. +You can use this software according to the terms and conditions of the Mulan PSL v2. +You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +See the Mulan PSL v2 for more details. */ + +// +// Created by Wangyunlai on 2023/6/13. +// + +#include "sql/executor/drop_table_executor.h" + +#include "common/log/log.h" +#include "event/session_event.h" +#include "event/sql_event.h" +#include "session/session.h" +#include "sql/stmt/drop_table_stmt.h" +#include "storage/db/db.h" + +RC DropTableExecutor::execute(SQLStageEvent *sql_event) +{ + Stmt *stmt = sql_event->stmt(); + Session *session = sql_event->session_event()->session(); + ASSERT(stmt->type() == StmtType::DROP_TABLE, + "drop table executor can not run this command: %d", + static_cast(stmt->type())); + + DropTableStmt *drop_table_stmt = static_cast(stmt); + + const char *table_name = drop_table_stmt->table_name().c_str(); + RC rc = session->get_current_db()->drop_table(table_name); + + return rc; +} \ No newline at end of file diff --git a/src/observer/sql/executor/drop_table_executor.h b/src/observer/sql/executor/drop_table_executor.h new file mode 100644 index 000000000..18db0de0e --- /dev/null +++ b/src/observer/sql/executor/drop_table_executor.h @@ -0,0 +1,32 @@ +/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. +miniob is licensed under Mulan PSL v2. +You can use this software according to the terms and conditions of the Mulan PSL v2. +You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +See the Mulan PSL v2 for more details. */ + +// +// Created by Wangyunlai on 2023/6/13. +// + +#pragma once + +#include "common/sys/rc.h" + +class SQLStageEvent; + +/** + * @brief 删除表的执行器 + * @ingroup Executor + */ +class DropTableExecutor +{ +public: + DropTableExecutor() = default; + virtual ~DropTableExecutor() = default; + + RC execute(SQLStageEvent *sql_event); +}; \ No newline at end of file diff --git a/src/observer/sql/stmt/drop_table_stmt.cpp b/src/observer/sql/stmt/drop_table_stmt.cpp new file mode 100644 index 000000000..1d9167d0f --- /dev/null +++ b/src/observer/sql/stmt/drop_table_stmt.cpp @@ -0,0 +1,24 @@ +/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. +miniob is licensed under Mulan PSL v2. +You can use this software according to the terms and conditions of the Mulan PSL v2. +You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +See the Mulan PSL v2 for more details. */ + +// +// Created by Wangyunlai on 2023/6/13. +// + +#include "common/log/log.h" +#include "sql/stmt/drop_table_stmt.h" +#include "event/sql_debug.h" + +RC DropTableStmt::create(Db *db, const DropTableSqlNode &drop_table, Stmt *&stmt) +{ + stmt = new DropTableStmt(drop_table.relation_name); + sql_debug("drop table statement: table name %s", drop_table.relation_name.c_str()); + return RC::SUCCESS; +} \ No newline at end of file diff --git a/src/observer/sql/stmt/drop_table_stmt.h b/src/observer/sql/stmt/drop_table_stmt.h new file mode 100644 index 000000000..df420bd33 --- /dev/null +++ b/src/observer/sql/stmt/drop_table_stmt.h @@ -0,0 +1,41 @@ +/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. +miniob is licensed under Mulan PSL v2. +You can use this software according to the terms and conditions of the Mulan PSL v2. +You may obtain a copy of Mulan PSL v2 at: + http://license.coscl.org.cn/MulanPSL2 +THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +See the Mulan PSL v2 for more details. */ + +// +// Created by Wangyunlai on 2023/6/13. +// + +#pragma once + +#include "common/lang/string.h" +#include "sql/stmt/stmt.h" + +class Db; + +/** + * @brief 表示删除表的语句 + * @ingroup Statement + * @details 虽然解析成了stmt,但是与原始的SQL解析后的数据也差不多 + */ +class DropTableStmt : public Stmt +{ +public: + DropTableStmt(const string &table_name) : table_name_(table_name) {} + virtual ~DropTableStmt() = default; + + StmtType type() const override { return StmtType::DROP_TABLE; } + + const string &table_name() const { return table_name_; } + + static RC create(Db *db, const DropTableSqlNode &drop_table, Stmt *&stmt); + +private: + string table_name_; +}; \ No newline at end of file diff --git a/src/observer/sql/stmt/stmt.cpp b/src/observer/sql/stmt/stmt.cpp index 2664aaf60..175e7b3c5 100644 --- a/src/observer/sql/stmt/stmt.cpp +++ b/src/observer/sql/stmt/stmt.cpp @@ -20,6 +20,7 @@ See the Mulan PSL v2 for more details. */ #include "sql/stmt/create_table_stmt.h" #include "sql/stmt/delete_stmt.h" #include "sql/stmt/desc_table_stmt.h" +#include "sql/stmt/drop_table_stmt.h" #include "sql/stmt/exit_stmt.h" #include "sql/stmt/explain_stmt.h" #include "sql/stmt/help_stmt.h" @@ -72,6 +73,10 @@ RC Stmt::create_stmt(Db *db, ParsedSqlNode &sql_node, Stmt *&stmt) return CreateTableStmt::create(db, sql_node.create_table, stmt); } + case SCF_DROP_TABLE: { + return DropTableStmt::create(db, sql_node.drop_table, stmt); + } + case SCF_DESC_TABLE: { return DescTableStmt::create(db, sql_node.desc_table, stmt); } diff --git a/src/observer/storage/db/db.cpp b/src/observer/storage/db/db.cpp index a0661fa00..1ff2acc37 100644 --- a/src/observer/storage/db/db.cpp +++ b/src/observer/storage/db/db.cpp @@ -195,6 +195,54 @@ Table *Db::find_table(int32_t table_id) const return nullptr; } +RC Db::drop_table(const char *table_name) +{ + // check table_name + if (opened_tables_.count(table_name) == 0) { + LOG_WARN("%s does not exist.", table_name); + return RC::SCHEMA_TABLE_NOT_EXIST; + } + + Table *table = opened_tables_[table_name]; + opened_tables_.erase(table_name); + + // 删除表相关的所有文件 + string table_meta_file_path = table_meta_file(path_.c_str(), table_name); + string table_data_file_path = table_data_file(path_.c_str(), table_name); + string table_lob_file_path = table_lob_file(path_.c_str(), table_name); + + // 删除元数据文件 + if (filesystem::exists(table_meta_file_path)) { + filesystem::remove(table_meta_file_path); + } + + // 删除数据文件 + if (filesystem::exists(table_data_file_path)) { + filesystem::remove(table_data_file_path); + } + + // 删除LOB文件 + if (filesystem::exists(table_lob_file_path)) { + filesystem::remove(table_lob_file_path); + } + + // 删除所有索引文件 + const TableMeta &table_meta = table->table_meta(); + for (int i = 0; i < table_meta.index_num(); ++i) { + const IndexMeta *index_meta = table_meta.index(i); + string index_file_path = table_index_file(path_.c_str(), table_name, index_meta->name()); + if (filesystem::exists(index_file_path)) { + filesystem::remove(index_file_path); + } + } + + // 删除Table对象 + delete table; + + LOG_INFO("Drop table success. table name=%s", table_name); + return RC::SUCCESS; +} + RC Db::open_all_tables() { vector table_meta_files; diff --git a/src/observer/storage/db/db.h b/src/observer/storage/db/db.h index 51afce10a..485db60e9 100644 --- a/src/observer/storage/db/db.h +++ b/src/observer/storage/db/db.h @@ -70,6 +70,12 @@ class Db RC create_table(const char *table_name, span attributes, const vector &primary_keys, const StorageFormat storage_format = StorageFormat::ROW_FORMAT); + /** + * @brief 删除一个表 + * @param table_name 表名 + */ + RC drop_table(const char *table_name); + /** * @brief 根据表名查找表 */ From 096a96286d944ac404842f701b59468775b2dfed Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Sun, 12 Oct 2025 14:15:32 +0000 Subject: [PATCH 03/13] feat.JOIN --- src/observer/sql/parser/lex_sql.l | 2 + src/observer/sql/parser/yacc_sql.y | 64 ++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/src/observer/sql/parser/lex_sql.l b/src/observer/sql/parser/lex_sql.l index 42f7a89f3..ee74ab932 100644 --- a/src/observer/sql/parser/lex_sql.l +++ b/src/observer/sql/parser/lex_sql.l @@ -99,6 +99,8 @@ CALC RETURN_TOKEN(CALC); FROM RETURN_TOKEN(FROM); WHERE RETURN_TOKEN(WHERE); AND RETURN_TOKEN(AND); +JOIN RETURN_TOKEN(JOIN); +INNER RETURN_TOKEN(INNER); INSERT RETURN_TOKEN(INSERT); INTO RETURN_TOKEN(INTO); VALUES RETURN_TOKEN(VALUES); diff --git a/src/observer/sql/parser/yacc_sql.y b/src/observer/sql/parser/yacc_sql.y index 73ec35b9f..88ecdf94f 100644 --- a/src/observer/sql/parser/yacc_sql.y +++ b/src/observer/sql/parser/yacc_sql.y @@ -14,6 +14,9 @@ using namespace std; +// temporary storage for ON conditions collected during parsing of JOIN clauses +static vector *g_join_on_conditions = nullptr; + string token_name(const char *sql_string, YYLTYPE *llocp) { return string(sql_string + llocp->first_column, llocp->last_column - llocp->first_column + 1); @@ -99,6 +102,8 @@ UnboundAggregateExpr *create_aggregate_expression(const char *aggregate_name, AND SET ON + JOIN + INNER LOAD DATA INFILE @@ -169,6 +174,7 @@ UnboundAggregateExpr *create_aggregate_expression(const char *aggregate_name, %type attr_def %type value_list %type where +%type on_condition_list %type condition_list %type storage_format %type primary_key @@ -496,10 +502,19 @@ select_stmt: /* select 语句的语法解析树*/ delete $4; } + // merge where conditions and any ON conditions collected from JOIN clauses if ($5 != nullptr) { $$->selection.conditions.swap(*$5); delete $5; } + if (g_join_on_conditions != nullptr) { + // append ON conditions to selection.conditions + $$->selection.conditions.insert($$->selection.conditions.end(), + g_join_on_conditions->begin(), + g_join_on_conditions->end()); + delete g_join_on_conditions; + g_join_on_conditions = nullptr; + } if ($6 != nullptr) { $$->selection.group_by.swap(*$6); @@ -608,6 +623,38 @@ rel_list: $$->insert($$->begin(), $1); } + /* support JOIN syntax: rel JOIN rel ON conditions [JOIN rel ON conditions ...] */ + | rel_list JOIN relation ON on_condition_list { + // append relation to existing list + if ($1 != nullptr) { + $$ = $1; + } else { + $$ = new vector; + } + $$->push_back($3); + if ($5 != nullptr) { + if (g_join_on_conditions == nullptr) { + g_join_on_conditions = new vector(); + } + g_join_on_conditions->insert(g_join_on_conditions->end(), $5->begin(), $5->end()); + delete $5; + } + } + | rel_list INNER JOIN relation ON on_condition_list { + if ($1 != nullptr) { + $$ = $1; + } else { + $$ = new vector; + } + $$->push_back($4); + if ($6 != nullptr) { + if (g_join_on_conditions == nullptr) { + g_join_on_conditions = new vector(); + } + g_join_on_conditions->insert(g_join_on_conditions->end(), $6->begin(), $6->end()); + delete $6; + } + } ; where: @@ -619,6 +666,23 @@ where: $$ = $2; } ; +/* on_condition_list: reuse same structure as condition_list */ +on_condition_list: + /* empty */ + { + $$ = nullptr; + } + | condition { + $$ = new vector; + $$->emplace_back(*$1); + delete $1; + } + | condition AND on_condition_list { + $$ = $3; + $$->emplace_back(*$1); + delete $1; + } + ; condition_list: /* empty */ { From 7db349b85a088620d9976d8063a40f5d0987f838 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Mon, 13 Oct 2025 10:12:30 +0000 Subject: [PATCH 04/13] feat.unique1 --- observer.log.20251013 | 106 ++++++++++++++++++ .../sql/executor/create_index_executor.cpp | 2 +- src/observer/sql/parser/lex_sql.l | 1 + src/observer/sql/parser/parse_defs.h | 1 + src/observer/sql/parser/yacc_sql.y | 11 ++ src/observer/sql/stmt/create_index_stmt.cpp | 2 +- src/observer/sql/stmt/create_index_stmt.h | 6 +- .../storage/index/bplus_tree_index.cpp | 9 +- src/observer/storage/index/index_meta.cpp | 15 ++- src/observer/storage/index/index_meta.h | 4 +- .../storage/table/heap_table_engine.cpp | 4 +- .../storage/table/heap_table_engine.h | 2 +- src/observer/storage/table/lsm_table_engine.h | 2 +- src/observer/storage/table/table.cpp | 4 +- src/observer/storage/table/table.h | 2 +- src/observer/storage/table/table_engine.h | 2 +- 16 files changed, 156 insertions(+), 17 deletions(-) create mode 100644 observer.log.20251013 diff --git a/observer.log.20251013 b/observer.log.20251013 new file mode 100644 index 000000000..eb018de3c --- /dev/null +++ b/observer.log.20251013 @@ -0,0 +1,106 @@ +[2025-10-13 10:03:42.209138 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 10:03:42.210765 pid:31572 tid:70fdc701c7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 10:03:42.212431 pid:31572 tid:70fdc3e146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 10:03:42.214943 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.215509 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.216122 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.216666 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.217219 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.217864 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.218450 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.219041 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.219658 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.220152 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.220625 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.221086 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.221601 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.222192 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.222834 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.223438 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.224028 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.224624 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.225230 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.225914 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.225977 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:03:42.225991 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 10:03:42.227060 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=1 +[2025-10-13 10:03:42.227291 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 10:03:42.227798 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=0 +[2025-10-13 10:03:42.248500 pid:31572 tid:70fdc701c7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 10:03:42.248682 pid:31572 tid:70fdc701c7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 10:03:42.248756 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 10:03:42.248847 pid:31572 tid:70fdc701c7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 10:03:42.248863 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 10:03:42.248888 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 10:03:42.250603 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: start_tcp_server@server.cpp:192] >> Listen on port 6789 +[2025-10-13 10:03:42.250681 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: start_tcp_server@server.cpp:195] >> Observer start success +[2025-10-13 10:03:53.655631 pid:31572 tid:70fdc701c7c0 ctx:0 WARN: serve@server.cpp:271] >> [listen socket] poll error. fd = 8, ret = -1, error=Interrupted system call +[2025-10-13 10:03:53.655767 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2025-10-13 10:03:53.655822 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2025-10-13 10:03:53.655871 pid:31572 tid:70fdc701c7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2025-10-13 10:03:53.655852 pid:31572 tid:70fdc167e6c0 ctx:0 INFO: quit_thread_func@main.cpp:156] >> Receive signal: 1 +[2025-10-13 10:03:53.655976 pid:31572 tid:70fdc167e6c0 ctx:0 INFO: shutdown@server.cpp:299] >> NetServer shutting down +[2025-10-13 10:04:46.345106 pid:32723 tid:7bd3724847c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +Finish dump configuration + +[2025-10-13 10:04:46.345568 pid:32723 tid:7bd3724847c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 10:04:46.346628 pid:32723 tid:7bd36f2146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 10:04:46.348221 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.348985 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.349945 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.350605 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.351957 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.352599 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.353174 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.353751 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.354368 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.354960 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.355637 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.356223 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.356770 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.357496 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.358113 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.358769 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.359315 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.360494 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.361350 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.362274 pid:32723 tid:7bd3724847c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.362370 pid:32723 tid:7bd3724847c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 10:04:46.362409 pid:32723 tid:7bd3724847c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 10:04:46.362664 pid:32723 tid:7bd3724847c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=1 +[2025-10-13 10:04:46.362909 pid:32723 tid:7bd3724847c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 10:04:46.363475 pid:32723 tid:7bd3724847c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=0 +[2025-10-13 10:04:46.368900 pid:32723 tid:7bd3724847c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 10:04:46.369183 pid:32723 tid:7bd3724847c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 10:04:46.369297 pid:32723 tid:7bd3724847c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 10:04:46.371559 pid:32723 tid:7bd3724847c0 ctx:0 INFO: start_tcp_server@server.cpp:192] >> Listen on port 6789 +[2025-10-13 10:04:46.371661 pid:32723 tid:7bd3724847c0 ctx:0 INFO: start_tcp_server@server.cpp:195] >> Observer start success +[2025-10-13 10:04:56.355544 pid:32723 tid:7bd3724847c0 ctx:0 WARN: serve@server.cpp:271] >> [listen socket] poll error. fd = 8, ret = -1, error=Interrupted system call +[2025-10-13 10:04:56.355724 pid:32723 tid:7bd3724847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2025-10-13 10:04:56.355770 pid:32723 tid:7bd3724847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2025-10-13 10:04:56.355796 pid:32723 tid:7bd3724847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2025-10-13 10:04:56.355816 pid:32723 tid:7bd3724847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2025-10-13 10:04:56.355789 pid:32723 tid:7bd36ca7e6c0 ctx:0 INFO: quit_thread_func@main.cpp:156] >> Receive signal: 15 +[2025-10-13 10:04:56.355852 pid:32723 tid:7bd3724847c0 ctx:0 INFO: serve@server.cpp:293] >> NetServer quit +[2025-10-13 10:04:56.355871 pid:32723 tid:7bd36ca7e6c0 ctx:0 INFO: shutdown@server.cpp:299] >> NetServer shutting down +[2025-10-13 10:04:56.355900 pid:32723 tid:7bd3724847c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 10:04:56.375157 pid:32723 tid:7bd3724847c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 10:04:56.375553 pid:32723 tid:7bd3724847c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 10:04:56.375628 pid:32723 tid:7bd3724847c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 10:04:56.379898 pid:32723 tid:7bd36f2146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 10:04:56.576485 pid:32723 tid:7bd3724847c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 10:04:56.589348 pid:32723 tid:7bd3724847c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 10:04:56.589637 pid:32723 tid:7bd3724847c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! diff --git a/src/observer/sql/executor/create_index_executor.cpp b/src/observer/sql/executor/create_index_executor.cpp index 6c99dda0b..6550b395a 100644 --- a/src/observer/sql/executor/create_index_executor.cpp +++ b/src/observer/sql/executor/create_index_executor.cpp @@ -32,5 +32,5 @@ RC CreateIndexExecutor::execute(SQLStageEvent *sql_event) Trx *trx = session->current_trx(); Table *table = create_index_stmt->table(); - return table->create_index(trx, create_index_stmt->field_meta(), create_index_stmt->index_name().c_str()); + return table->create_index(trx, create_index_stmt->field_meta(), create_index_stmt->index_name().c_str(), create_index_stmt->unique()); } \ No newline at end of file diff --git a/src/observer/sql/parser/lex_sql.l b/src/observer/sql/parser/lex_sql.l index ee74ab932..529e13df5 100644 --- a/src/observer/sql/parser/lex_sql.l +++ b/src/observer/sql/parser/lex_sql.l @@ -91,6 +91,7 @@ DROP RETURN_TOKEN(DROP); TABLE RETURN_TOKEN(TABLE); TABLES RETURN_TOKEN(TABLES); INDEX RETURN_TOKEN(INDEX); +UNIQUE RETURN_TOKEN(UNIQUE); ON RETURN_TOKEN(ON); SHOW RETURN_TOKEN(SHOW); SYNC RETURN_TOKEN(SYNC); diff --git a/src/observer/sql/parser/parse_defs.h b/src/observer/sql/parser/parse_defs.h index 7d9ab7e5a..ad623ff24 100644 --- a/src/observer/sql/parser/parse_defs.h +++ b/src/observer/sql/parser/parse_defs.h @@ -192,6 +192,7 @@ struct CreateIndexSqlNode string index_name; ///< Index name string relation_name; ///< Relation name string attribute_name; ///< Attribute name + bool unique; ///< Whether it's a unique index }; /** diff --git a/src/observer/sql/parser/yacc_sql.y b/src/observer/sql/parser/yacc_sql.y index 88ecdf94f..f8327d8d1 100644 --- a/src/observer/sql/parser/yacc_sql.y +++ b/src/observer/sql/parser/yacc_sql.y @@ -74,6 +74,7 @@ UnboundAggregateExpr *create_aggregate_expression(const char *aggregate_name, TABLE TABLES INDEX + UNIQUE CALC SELECT DESC @@ -316,6 +317,16 @@ create_index_stmt: /*create index 语句的语法解析树*/ create_index.index_name = $3; create_index.relation_name = $5; create_index.attribute_name = $7; + create_index.unique = false; + } + | CREATE UNIQUE INDEX ID ON ID LBRACE ID RBRACE + { + $$ = new ParsedSqlNode(SCF_CREATE_INDEX); + CreateIndexSqlNode &create_index = $$->create_index; + create_index.index_name = $4; + create_index.relation_name = $6; + create_index.attribute_name = $8; + create_index.unique = true; } ; diff --git a/src/observer/sql/stmt/create_index_stmt.cpp b/src/observer/sql/stmt/create_index_stmt.cpp index 93fae6630..a478c5b03 100644 --- a/src/observer/sql/stmt/create_index_stmt.cpp +++ b/src/observer/sql/stmt/create_index_stmt.cpp @@ -53,6 +53,6 @@ RC CreateIndexStmt::create(Db *db, const CreateIndexSqlNode &create_index, Stmt return RC::SCHEMA_INDEX_NAME_REPEAT; } - stmt = new CreateIndexStmt(table, field_meta, create_index.index_name); + stmt = new CreateIndexStmt(table, field_meta, create_index.index_name, create_index.unique); return RC::SUCCESS; } diff --git a/src/observer/sql/stmt/create_index_stmt.h b/src/observer/sql/stmt/create_index_stmt.h index cbdd8f4d1..c9d42ea59 100644 --- a/src/observer/sql/stmt/create_index_stmt.h +++ b/src/observer/sql/stmt/create_index_stmt.h @@ -27,8 +27,8 @@ class FieldMeta; class CreateIndexStmt : public Stmt { public: - CreateIndexStmt(Table *table, const FieldMeta *field_meta, const string &index_name) - : table_(table), field_meta_(field_meta), index_name_(index_name) + CreateIndexStmt(Table *table, const FieldMeta *field_meta, const string &index_name, bool unique = false) + : table_(table), field_meta_(field_meta), index_name_(index_name), unique_(unique) {} virtual ~CreateIndexStmt() = default; @@ -38,6 +38,7 @@ class CreateIndexStmt : public Stmt Table *table() const { return table_; } const FieldMeta *field_meta() const { return field_meta_; } const string &index_name() const { return index_name_; } + bool unique() const { return unique_; } public: static RC create(Db *db, const CreateIndexSqlNode &create_index, Stmt *&stmt); @@ -46,4 +47,5 @@ class CreateIndexStmt : public Stmt Table *table_ = nullptr; const FieldMeta *field_meta_ = nullptr; string index_name_; + bool unique_ = false; }; diff --git a/src/observer/storage/index/bplus_tree_index.cpp b/src/observer/storage/index/bplus_tree_index.cpp index 8794cfbc1..1b181c2df 100644 --- a/src/observer/storage/index/bplus_tree_index.cpp +++ b/src/observer/storage/index/bplus_tree_index.cpp @@ -82,7 +82,14 @@ RC BplusTreeIndex::close() RC BplusTreeIndex::insert_entry(const char *record, const RID *rid) { - return index_handler_.insert_entry(record + field_meta_.offset(), rid); + if (index_meta_.unique()) { + return index_handler_.insert_entry(record + field_meta_.offset(), rid); + } else { + // For non-unique indexes, we need to allow duplicates + // For now, we'll treat non-unique as unique since the current implementation doesn't support multi-value + // TODO: Implement proper non-unique index support + return index_handler_.insert_entry(record + field_meta_.offset(), rid); + } } RC BplusTreeIndex::delete_entry(const char *record, const RID *rid) diff --git a/src/observer/storage/index/index_meta.cpp b/src/observer/storage/index/index_meta.cpp index 32604b9ff..3c8552e93 100644 --- a/src/observer/storage/index/index_meta.cpp +++ b/src/observer/storage/index/index_meta.cpp @@ -21,8 +21,9 @@ See the Mulan PSL v2 for more details. */ const static Json::StaticString FIELD_NAME("name"); const static Json::StaticString FIELD_FIELD_NAME("field_name"); +const static Json::StaticString FIELD_UNIQUE("unique"); -RC IndexMeta::init(const char *name, const FieldMeta &field) +RC IndexMeta::init(const char *name, const FieldMeta &field, bool unique) { if (common::is_blank(name)) { LOG_ERROR("Failed to init index, name is empty."); @@ -31,6 +32,7 @@ RC IndexMeta::init(const char *name, const FieldMeta &field) name_ = name; field_ = field.name(); + unique_ = unique; return RC::SUCCESS; } @@ -38,12 +40,14 @@ void IndexMeta::to_json(Json::Value &json_value) const { json_value[FIELD_NAME] = name_; json_value[FIELD_FIELD_NAME] = field_; + json_value[FIELD_UNIQUE] = unique_; } RC IndexMeta::from_json(const TableMeta &table, const Json::Value &json_value, IndexMeta &index) { const Json::Value &name_value = json_value[FIELD_NAME]; const Json::Value &field_value = json_value[FIELD_FIELD_NAME]; + const Json::Value &unique_value = json_value[FIELD_UNIQUE]; if (!name_value.isString()) { LOG_ERROR("Index name is not a string. json value=%s", name_value.toStyledString().c_str()); return RC::INTERNAL; @@ -61,11 +65,16 @@ RC IndexMeta::from_json(const TableMeta &table, const Json::Value &json_value, I return RC::SCHEMA_FIELD_MISSING; } - return index.init(name_value.asCString(), *field); + bool unique = unique_value.isBool() ? unique_value.asBool() : false; + return index.init(name_value.asCString(), *field, unique); } const char *IndexMeta::name() const { return name_.c_str(); } const char *IndexMeta::field() const { return field_.c_str(); } -void IndexMeta::desc(ostream &os) const { os << "index name=" << name_ << ", field=" << field_; } \ No newline at end of file +bool IndexMeta::unique() const { return unique_; } + +void IndexMeta::desc(ostream &os) const { + os << "index name=" << name_ << ", field=" << field_ << ", unique=" << (unique_ ? "true" : "false"); +} \ No newline at end of file diff --git a/src/observer/storage/index/index_meta.h b/src/observer/storage/index/index_meta.h index bb9f948b1..20bcdaba0 100644 --- a/src/observer/storage/index/index_meta.h +++ b/src/observer/storage/index/index_meta.h @@ -35,11 +35,12 @@ class IndexMeta public: IndexMeta() = default; - RC init(const char *name, const FieldMeta &field); + RC init(const char *name, const FieldMeta &field, bool unique = false); public: const char *name() const; const char *field() const; + bool unique() const; void desc(ostream &os) const; @@ -50,4 +51,5 @@ class IndexMeta protected: string name_; // index's name string field_; // field's name + bool unique_; // whether it's a unique index }; diff --git a/src/observer/storage/table/heap_table_engine.cpp b/src/observer/storage/table/heap_table_engine.cpp index 6348c60e8..88fcf046f 100644 --- a/src/observer/storage/table/heap_table_engine.cpp +++ b/src/observer/storage/table/heap_table_engine.cpp @@ -122,7 +122,7 @@ RC HeapTableEngine::get_chunk_scanner(ChunkFileScanner &scanner, Trx *trx, ReadW return rc; } -RC HeapTableEngine::create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name) +RC HeapTableEngine::create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name, bool unique) { if (common::is_blank(index_name) || nullptr == field_meta) { LOG_INFO("Invalid input arguments, table name is %s, index_name is blank or attribute_name is blank", table_meta_->name()); @@ -131,7 +131,7 @@ RC HeapTableEngine::create_index(Trx *trx, const FieldMeta *field_meta, const ch IndexMeta new_index_meta; - RC rc = new_index_meta.init(index_name, *field_meta); + RC rc = new_index_meta.init(index_name, *field_meta, unique); if (rc != RC::SUCCESS) { LOG_INFO("Failed to init IndexMeta in table:%s, index_name:%s, field_name:%s", table_meta_->name(), index_name, field_meta->name()); diff --git a/src/observer/storage/table/heap_table_engine.h b/src/observer/storage/table/heap_table_engine.h index 6726f86dc..1022fa40b 100644 --- a/src/observer/storage/table/heap_table_engine.h +++ b/src/observer/storage/table/heap_table_engine.h @@ -37,7 +37,7 @@ class HeapTableEngine : public TableEngine } RC get_record(const RID &rid, Record &record) override; - RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name) override; + RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name, bool unique = false) override; RC get_record_scanner(RecordScanner *&scanner, Trx *trx, ReadWriteMode mode) override; RC get_chunk_scanner(ChunkFileScanner &scanner, Trx *trx, ReadWriteMode mode) override; RC visit_record(const RID &rid, function visitor) override; diff --git a/src/observer/storage/table/lsm_table_engine.h b/src/observer/storage/table/lsm_table_engine.h index be97cacd9..4221dd9a0 100644 --- a/src/observer/storage/table/lsm_table_engine.h +++ b/src/observer/storage/table/lsm_table_engine.h @@ -39,7 +39,7 @@ class LsmTableEngine : public TableEngine } RC get_record(const RID &rid, Record &record) override { return RC::UNIMPLEMENTED; } - RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name) override { return RC::UNIMPLEMENTED; } + RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name, bool unique = false) override { return RC::UNIMPLEMENTED; } RC get_record_scanner(RecordScanner *&scanner, Trx *trx, ReadWriteMode mode) override; RC get_chunk_scanner(ChunkFileScanner &scanner, Trx *trx, ReadWriteMode mode) override { return RC::UNIMPLEMENTED; } RC visit_record(const RID &rid, function visitor) override { return RC::UNIMPLEMENTED; } diff --git a/src/observer/storage/table/table.cpp b/src/observer/storage/table/table.cpp index 14093fc06..ec0a19f1b 100644 --- a/src/observer/storage/table/table.cpp +++ b/src/observer/storage/table/table.cpp @@ -274,9 +274,9 @@ RC Table::get_chunk_scanner(ChunkFileScanner &scanner, Trx *trx, ReadWriteMode m return engine_->get_chunk_scanner(scanner, trx, mode); } -RC Table::create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name) +RC Table::create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name, bool unique) { - return engine_->create_index(trx, field_meta, index_name); + return engine_->create_index(trx, field_meta, index_name, unique); } RC Table::delete_record(const Record &record) diff --git a/src/observer/storage/table/table.h b/src/observer/storage/table/table.h index 0e5f89014..3073de47f 100644 --- a/src/observer/storage/table/table.h +++ b/src/observer/storage/table/table.h @@ -94,7 +94,7 @@ class Table RC get_record(const RID &rid, Record &record); // TODO refactor - RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name); + RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name, bool unique = false); RC get_record_scanner(RecordScanner *&scanner, Trx *trx, ReadWriteMode mode); diff --git a/src/observer/storage/table/table_engine.h b/src/observer/storage/table/table_engine.h index 110fbd046..5dd40e4fa 100644 --- a/src/observer/storage/table/table_engine.h +++ b/src/observer/storage/table/table_engine.h @@ -46,7 +46,7 @@ class TableEngine virtual RC update_record_with_trx(const Record &old_record, const Record &new_record, Trx *trx) = 0; virtual RC get_record(const RID &rid, Record &record) = 0; - virtual RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name) = 0; + virtual RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name, bool unique = false) = 0; virtual RC get_record_scanner(RecordScanner *&scanner, Trx *trx, ReadWriteMode mode) = 0; virtual RC get_chunk_scanner(ChunkFileScanner &scanner, Trx *trx, ReadWriteMode mode) = 0; virtual RC visit_record(const RID &rid, function visitor) = 0; From 5ee023407feee7aa383a1860bbdc80d655cf1268 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Mon, 13 Oct 2025 14:22:42 +0000 Subject: [PATCH 05/13] feat.UNIQUE2 --- .miniob.history | 44 +- miniob/db/sys/dblwr.db | Bin 8212 -> 41044 bytes miniob/db/sys/unique_table-index_id.index | Bin 0 -> 24576 bytes miniob/db/sys/unique_table.data | Bin 0 -> 16384 bytes miniob/db/sys/unique_table.table | 42 + observer.log.20251013 | 2893 +++++++++++++++++ src/observer/storage/index/bplus_tree.cpp | 60 +- src/observer/storage/index/bplus_tree.h | 34 +- .../storage/index/bplus_tree_index.cpp | 2 +- unittest/observer/bplus_tree_log_test.cpp | 4 +- unittest/observer/bplus_tree_test.cpp | 52 +- 11 files changed, 3090 insertions(+), 41 deletions(-) create mode 100644 miniob/db/sys/unique_table-index_id.index create mode 100644 miniob/db/sys/unique_table.data create mode 100644 miniob/db/sys/unique_table.table diff --git a/.miniob.history b/.miniob.history index a90d73796..ffa9d1c20 100644 --- a/.miniob.history +++ b/.miniob.history @@ -8,15 +8,49 @@ drop_table good drop-table good; ### 2025-10-12 13:06:35.991 drop table good; -### 2025-10-12 13:06:43.195 -show tables ### 2025-10-12 13:07:07.742 DROP TABLE good; ### 2025-10-12 13:07:10.347 quit; -### 2025-10-12 13:07:15.213 -exit; ### 2025-10-12 13:10:10.017 drop table good -### 2025-10-12 13:10:15.728 +### 2025-10-13 14:01:41.788 +select * from unique_table' +### 2025-10-13 14:01:59.743 exit +### 2025-10-13 14:06:47.698 +CREATE UNIQUE INDEX index_id on unique_table(id); +### 2025-10-13 14:07:10.180 +select * +### 2025-10-13 14:07:32.679 +select * from unique_table; +### 2025-10-13 14:09:03.478 +CREATE UNIQUE INDEX index_id on unique_table(id);INSERT INTO unique_table VALUES (2,1,1); +### 2025-10-13 14:09:04.417 +INSERT INTO unique_table VALUES (3,2,1);INSERT INTO unique_table VALUES (1,2,1); +### 2025-10-13 14:09:29.307 +REATE UNIQUE INDEX index_id on unique_table(id); +### 2025-10-13 14:15:23.530 +show tables +### 2025-10-13 14:15:48.645 +drop table unique_table; +### 2025-10-13 14:17:05.639 +exit; +### 2025-10-13 14:20:03.024 +drop table unique_table +### 2025-10-13 14:20:07.247 +create table unique_table(id int, col1 int, col2 int); +### 2025-10-13 14:20:07.264 +CREATE UNIQUE INDEX index_id on unique_table(id);INSERT INTO unique_table VALUES (2,1,1);INSERT INTO unique_table VALUES (3,2,1); +### 2025-10-13 14:20:10.547 +INSERT INTO unique_table VALUES (1,2,1); +### 2025-10-13 14:20:22.581 +select * from unique_table +### 2025-10-13 14:20:26.987 +CREATE UNIQUE INDEX index_id on unique_table(id); +### 2025-10-13 14:20:31.493 +INSERT INTO unique_table VALUES (1,1,1); +### 2025-10-13 14:20:36.272 +INSERT INTO unique_table VALUES (3,2,1); +### 2025-10-13 14:21:00.723 +INSERT INTO unique_table VALUES (2,1,1); diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db index f28a9ef6f3df5e58794d849e880a301bf1f74790..f3fdb4faba6217459cd9a457ea4c7bd15055da97 100644 GIT binary patch delta 284 zcmbQ@aOD7#Eh_^911AtO0x=lu+qVzK{NB~K118P`6chmBpFn{GAPvHd6Ahg=s!WkL z<6XZh>09lT#OK*0@RFE9VM6jt) FYXB4wFf;%F delta 46 mcmca|fN6?@A|nF>0|>*xzJ2>(?6&X0ii{g;r^`=V5CZ_lA_^-2 diff --git a/miniob/db/sys/unique_table-index_id.index b/miniob/db/sys/unique_table-index_id.index new file mode 100644 index 0000000000000000000000000000000000000000..174c030a43a4152646ef202956e25bee1a2377e2 GIT binary patch literal 24576 zcmeI&u?@m75Cu>NB7vA9`!GqGEPzCjA(()I6;d!7O74W&!6@&fFQ2bEz1A+}TlaZd zF3}!qPIc}eK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1pY^0d|uy&Soaej z0AA7b(PwhjMHB%71PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNC9zQAz4J@TDD vv)20E+uz=X1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZVBZ28TI~-& literal 0 HcmV?d00001 diff --git a/miniob/db/sys/unique_table.data b/miniob/db/sys/unique_table.data new file mode 100644 index 0000000000000000000000000000000000000000..1a90c2cb16431f175d13c76043679f9547a5b54e GIT binary patch literal 16384 zcmeIuF$#b%3kmad30;BHm2gj94ePZo(^k5>gt> Db has been closed: sys [2025-10-13 10:04:56.589348 pid:32723 tid:7bd3724847c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. [2025-10-13 10:04:56.589637 pid:32723 tid:7bd3724847c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-13 12:02:50.777894 pid:111644 tid:7335f98f37c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 12:02:50.779030 pid:111644 tid:7335f98f37c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 12:02:50.779791 pid:111644 tid:7335f67146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 12:02:50.780806 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.781255 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.781681 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.782131 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.782665 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.783558 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.784290 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.784964 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.785786 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.786461 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.787573 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.787973 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.788397 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.788792 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.789305 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.789878 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.790483 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.791161 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.791724 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.792283 pid:111644 tid:7335f98f37c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.792332 pid:111644 tid:7335f98f37c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 12:02:50.792342 pid:111644 tid:7335f98f37c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 12:02:50.792566 pid:111644 tid:7335f98f37c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=1 +[2025-10-13 12:02:50.792766 pid:111644 tid:7335f98f37c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 12:02:50.793329 pid:111644 tid:7335f98f37c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=0 +[2025-10-13 12:02:50.805871 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 12:02:50.806030 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 12:02:50.806088 pid:111644 tid:7335f98f37c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 12:02:50.806155 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 12:02:50.806183 pid:111644 tid:7335f98f37c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 12:02:50.806206 pid:111644 tid:7335f98f37c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 12:02:55.386130 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:96] >> SHOW +[2025-10-13 12:02:55.386213 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-13 12:02:55.386462 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:03:31.943477 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 12:03:31.943538 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 12:03:31.943595 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:31.943606 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 12:03:31.943635 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:31.943684 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 12:03:31.943698 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:31.943736 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:31.943750 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 12:03:31.943759 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:31.943782 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:31.943793 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 12:03:31.943804 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 12:03:31.943813 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:03:31.943974 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 12:03:31.944127 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 12:03:31.944246 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 12:03:31.944263 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 12:03:31.944278 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 12:03:31.944302 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=0, name=unique_table +[2025-10-13 12:03:31.944895 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 12:03:31.945137 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 12:03:31.945267 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7335f5306808 +[2025-10-13 12:03:31.945362 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7335f5306808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7335f5306808 +[2025-10-13 12:03:31.945518 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0, this=0x7335f5306808 +[2025-10-13 12:03:31.945609 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=10, hdr_frame=0x7335f5306808, file header=pageCount:1, allocatedCount:1 +[2025-10-13 12:03:31.945679 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=10, bp=0x50e000001460, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x145cf7 0x1104ce 0x1cad50 0x1c6782 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 12:03:31.946698 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 12:03:31.946772 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 12:03:31.946793 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 12:03:31.946830 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:0 +[2025-10-13 12:03:31.947018 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:1 +[2025-10-13 12:03:31.947083 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7335f5306808 +[2025-10-13 12:03:31.947156 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 12:03:31.947173 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 12:03:31.953667 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 12:03:31.953800 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=559150982 +[2025-10-13 12:03:31.953848 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 12:03:31.954130 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 12:03:31.954180 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 12:03:31.954196 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 12:03:31.954297 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:03:39.397194 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 12:03:39.397228 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 12:03:39.397241 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:39.397251 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 12:03:39.397258 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 12:03:39.397269 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:39.397290 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:39.397304 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:39.397322 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:39.397336 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:39.397346 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 12:03:39.397360 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:03:39.397809 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 12:03:39.398095 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:39.398186 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7335f5308870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:39.398229 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=1, pageNum=1, pin=1 +[2025-10-13 12:03:39.398302 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-13 12:03:39.398356 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:39.398493 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=2, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:39.398589 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:03:39.398717 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:03:48.603284 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 12:03:48.603339 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 12:03:48.603351 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 12:03:48.603366 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:48.603377 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 12:03:48.603387 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:48.603394 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 12:03:48.603403 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:48.603412 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 12:03:48.603430 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:03:48.603753 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 12:03:48.603781 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 12:03:48.604284 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 12:03:48.604346 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7335f530a8d8 +[2025-10-13 12:03:48.604404 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7335f530a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7335f530a8d8 +[2025-10-13 12:03:48.604462 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7335f530a8d8 +[2025-10-13 12:03:48.604506 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=12, hdr_frame=0x7335f530a8d8, file header=pageCount:1, allocatedCount:1 +[2025-10-13 12:03:48.604552 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=12, bp=0x50e000003300, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x428cc8 0x477b2d 0x32be83 0x1c6676 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 12:03:48.604640 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 12:03:48.604706 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f530c940 +[2025-10-13 12:03:48.604750 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7335f530c940, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f530c940 +[2025-10-13 12:03:48.604792 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=1, pin=1 +[2025-10-13 12:03:48.604862 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:2 +[2025-10-13 12:03:48.604972 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f530c940 +[2025-10-13 12:03:48.605097 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 12:03:48.605114 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 12:03:48.605171 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=2 +[2025-10-13 12:03:48.605202 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=2, lsn=0, this=0x7335f530c940 +[2025-10-13 12:03:48.605349 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-13 12:03:48.605455 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7335f530a8d8 +[2025-10-13 12:03:48.605477 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:907] >> Successfully create index +[2025-10-13 12:03:48.605526 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 12:03:48.605541 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 12:03:48.605597 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:48.605644 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:03:48.605780 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:03:48.605881 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7335f530e9a8, page num 2, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:03:48.605944 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=2, pin=1 +[2025-10-13 12:03:48.606035 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size:4 +[2025-10-13 12:03:48.606079 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:03:48.606172 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f530c940 +[2025-10-13 12:03:48.606263 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1462] >> set root page to 2 +[2025-10-13 12:03:48.606375 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 12:03:48.606885 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 12:03:48.606937 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7335f530c940 +[2025-10-13 12:03:48.607034 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=4 +[2025-10-13 12:03:48.607088 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f530c940 +[2025-10-13 12:03:48.607166 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size=4 +[2025-10-13 12:03:48.607182 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:03:48.607234 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size=4 +[2025-10-13 12:03:48.607246 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7335f530a8d8 +[2025-10-13 12:03:48.607307 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size=4 +[2025-10-13 12:03:48.607329 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:48.607399 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-13 12:03:48.607427 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7335f5306808 +[2025-10-13 12:03:48.607442 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 12:03:48.607453 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 12:03:48.622006 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 12:03:48.622183 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-13 12:03:48.622217 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-13 12:03:48.622239 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1315496384 +[2025-10-13 12:03:48.622256 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:1,lsn=0 +[2025-10-13 12:03:48.622278 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 12:03:48.622293 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 12:03:48.622312 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:2, lsn=0, check_sum=-1770321888 +[2025-10-13 12:03:48.622330 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-13 12:03:48.622347 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1198617865 +[2025-10-13 12:03:48.622365 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 12:03:48.622510 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 12:03:48.622530 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 12:03:48.622537 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 12:03:48.622592 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:03:50.483652 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 12:03:50.483741 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 12:03:50.483761 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:50.483769 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 12:03:50.483782 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 12:03:50.483793 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:50.483806 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:50.483813 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:50.483825 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:50.483833 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:50.483857 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 12:03:50.483868 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:03:50.483880 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 12:03:50.483950 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 12:03:50.484058 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 12:03:50.484142 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:50.484215 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:03:50.484265 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 12:03:50.484281 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:03:50.484321 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 12:03:50.484370 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 12:03:50.484504 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:03:57.173990 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 12:03:57.174054 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 12:03:57.174067 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:03:57.174077 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 12:03:57.174083 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 12:03:57.174093 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:57.174103 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:57.174111 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:57.174120 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:03:57.174132 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:03:57.174139 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 12:03:57.174151 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:03:57.174229 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 12:03:57.174288 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:03:57.174318 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:03:57.174350 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 12:03:57.174364 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=1, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:03:57.174402 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 12:03:57.174446 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 12:03:57.174530 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:04:04.605588 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 12:04:04.605638 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 12:04:04.605655 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:04:04.605670 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 12:04:04.605681 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 12:04:04.605689 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:04:04.605705 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:04:04.605714 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:04:04.605726 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:04:04.605733 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:04:04.605742 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 12:04:04.605766 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:04:04.605843 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 12:04:04.605934 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:04:04.605992 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:04:04.606033 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 12:04:04.606051 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=1, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:04:04.606130 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 12:04:04.606164 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 12:04:04.606248 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:04:28.906170 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 12:04:28.906218 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 12:04:28.906234 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:04:28.906243 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:04:28.906529 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 12:04:28.906596 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 12:04:28.906617 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 12:04:28.906712 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:04:28.906774 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:04:28.906801 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 12:04:28.906962 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 12:04:28.907066 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 12:04:28.907106 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 12:04:28.907140 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 12:04:28.907171 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 12:04:28.907227 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 12:04:28.907276 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 12:04:28.907389 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:04:48.365143 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 12:04:48.365195 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 12:04:48.365212 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:04:48.365221 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 12:04:48.365232 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 12:04:48.365242 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:04:48.365256 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:04:48.365263 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:04:48.365276 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 12:04:48.365283 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 12:04:48.365292 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 12:04:48.365305 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:04:48.365401 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 12:04:48.365503 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:04:48.365551 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:04:48.365591 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 12:04:48.365604 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=1, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:04:48.365622 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 12:04:48.365648 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 12:04:48.365732 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:04:49.987595 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 12:04:49.987690 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 12:04:49.987707 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 12:04:49.987731 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 12:04:49.987861 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 12:04:49.987941 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 12:04:49.987977 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 12:04:49.988041 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:04:49.988105 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 12:04:49.988123 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 12:04:49.988158 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 12:04:49.988190 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 12:04:49.988208 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 12:04:49.988227 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 12:04:49.988249 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 12:04:49.988278 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 12:04:49.988295 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 12:04:49.988314 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:4 +[2025-10-13 12:04:49.988396 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 12:04:49.988482 pid:111644 tid:7335f98f37c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 12:05:02.554062 pid:111644 tid:7335f98f37c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-13 12:05:02.554117 pid:111644 tid:7335f98f37c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 12:05:02.554249 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size:1 +[2025-10-13 12:05:02.554314 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7335f530e9a8 +[2025-10-13 12:05:02.554432 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:2 +[2025-10-13 12:05:02.554473 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f530c940 +[2025-10-13 12:05:02.554537 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-13 12:05:02.554568 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7335f530a8d8 +[2025-10-13 12:05:02.554638 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:4 +[2025-10-13 12:05:02.554656 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7335f5308870 +[2025-10-13 12:05:02.554733 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-13 12:05:02.554774 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7335f5306808 +[2025-10-13 12:05:02.554795 pid:111644 tid:7335f98f37c0 ctx:0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 12:05:02.554805 pid:111644 tid:7335f98f37c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 12:05:02.560086 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 12:05:02.560192 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-13 12:05:02.560226 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-13 12:05:02.560247 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1315496384 +[2025-10-13 12:05:02.560267 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:1,lsn=0 +[2025-10-13 12:05:02.560285 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 12:05:02.560300 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-13 12:05:02.560326 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=1379511630 +[2025-10-13 12:05:02.560350 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 12:05:02.560365 pid:111644 tid:7335f98f37c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:2, lsn=0, check_sum=1343637817 +[2025-10-13 12:05:02.560383 pid:111644 tid:7335f98f37c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 12:05:02.560564 pid:111644 tid:7335f98f37c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 12:05:02.560604 pid:111644 tid:7335f98f37c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 12:05:02.560689 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7335f5308870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-13 12:05:02.560742 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7335f5306808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-13 12:05:02.560787 pid:111644 tid:7335f98f37c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 12:05:02.560814 pid:111644 tid:7335f98f37c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 10:miniob/db/sys/unique_table.data. +[2025-10-13 12:05:02.560861 pid:111644 tid:7335f98f37c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 12:05:02.560909 pid:111644 tid:7335f98f37c0 ctx:0 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 12:05:02.560929 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7335f530e9a8, page 2 frame_id=buffer_pool_id:2,page_num:2 +[2025-10-13 12:05:02.560964 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7335f530c940, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-13 12:05:02.560978 pid:111644 tid:7335f98f37c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7335f530a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-13 12:05:02.560998 pid:111644 tid:7335f98f37c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 12:05:02.561010 pid:111644 tid:7335f98f37c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 12:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 12:05:02.561023 pid:111644 tid:7335f98f37c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 12:05:02.561045 pid:111644 tid:7335f98f37c0 ctx:0 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 12:05:02.561077 pid:111644 tid:7335f98f37c0 ctx:0 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 12:05:02.561086 pid:111644 tid:7335f98f37c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 12:05:02.566509 pid:111644 tid:7335f67146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 12:05:02.762657 pid:111644 tid:7335f98f37c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 12:05:02.777714 pid:111644 tid:7335f98f37c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 12:05:02.778033 pid:111644 tid:7335f98f37c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-13 13:47:16.204775 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 13:47:16.207356 pid:3403 tid:725358ddc7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 13:47:16.209115 pid:3403 tid:725355c146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 13:47:16.211944 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.212401 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.212847 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.213283 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.213742 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.214254 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.214682 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.215185 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.215690 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.216115 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.216537 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.216980 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.217474 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.217949 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.218352 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.218925 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.219336 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.219879 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.220360 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.220851 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.220893 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:47:16.220904 pid:3403 tid:725358ddc7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 13:47:16.222212 pid:3403 tid:725358ddc7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=5 +[2025-10-13 13:47:16.223070 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 13:47:16.224234 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 13:47:16.224284 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 13:47:16.224317 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 13:47:16.224679 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 13:47:16.224820 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x725354806808 +[2025-10-13 13:47:16.224900 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x725354806808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x725354806808 +[2025-10-13 13:47:16.224989 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-13 13:47:16.225012 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=8, hdr_frame=0x725354806808, file header=pageCount:2, allocatedCount:2 +[2025-10-13 13:47:16.225070 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x14a479 0x1181f7 0x122786 0x12e1a8 0x13189b 0x514ae 0x58d31 0x4089f 0x21ca 0x228b 0x44785 +[2025-10-13 13:47:16.226977 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354808870 +[2025-10-13 13:47:16.227096 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x725354808870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354808870 +[2025-10-13 13:47:16.227200 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-13 13:47:16.227493 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:47:16.227562 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-13 13:47:16.227587 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 13:47:16.228338 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:47:16.228514 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x72535480a8d8 +[2025-10-13 13:47:16.228592 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x72535480a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x72535480a8d8 +[2025-10-13 13:47:16.228648 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=2, page_num:0, lsn:0 +[2025-10-13 13:47:16.228667 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=9, hdr_frame=0x72535480a8d8, file header=pageCount:3, allocatedCount:3 +[2025-10-13 13:47:16.228739 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e000000f20, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x42d539 0x47911d 0x32855c 0x14a479 0x1181f7 0x122786 0x12e1a8 0x13189b 0x514ae 0x58d31 0x4089f 0x21ca 0x228b 0x44785 +[2025-10-13 13:47:16.228816 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x72535480c940 +[2025-10-13 13:47:16.228900 pid:3403 tid:725358ddc7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x72535480c940, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x72535480c940 +[2025-10-13 13:47:16.228982 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=2, page_num:1, lsn:0 +[2025-10-13 13:47:16.229042 pid:3403 tid:725358ddc7c0 ctx:0 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 13:47:16.229071 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 13:47:16.229081 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open@bplus_tree.cpp:968] >> Successfully open index +[2025-10-13 13:47:16.229091 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open@bplus_tree.cpp:928] >> open b+tree success. filename=miniob/db/sys/unique_table-index_id.index +[2025-10-13 13:47:16.229100 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open@bplus_tree_index.cpp:67] >> Successfully open index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 13:47:16.229142 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: unique_table, file: unique_table.table +[2025-10-13 13:47:16.229153 pid:3403 tid:725358ddc7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-13 13:47:16.268594 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 13:47:16.268762 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-13 13:47:16.268793 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:1,lsn=0 +[2025-10-13 13:47:16.268807 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-13 13:47:16.268826 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 13:47:16.268849 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 13:47:16.268877 pid:3403 tid:725358ddc7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 13:47:16.268936 pid:3403 tid:725358ddc7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 13:47:16.268965 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 13:47:16.268985 pid:3403 tid:725358ddc7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 13:47:20.428308 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:96] >> SHOW +[2025-10-13 13:47:20.428383 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-13 13:47:20.429459 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:47:31.917554 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 13:47:31.917601 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 13:47:31.917653 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:31.917675 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:47:31.917721 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 13:47:31.918539 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x725354808870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-13 13:47:31.918631 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x725354806808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-13 13:47:31.918670 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 13:47:31.918780 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/unique_table.data. +[2025-10-13 13:47:31.919051 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 13:47:31.919142 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 13:47:31.919177 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x72535480c940, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-13 13:47:31.919228 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x72535480a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-13 13:47:31.919247 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 13:47:31.919318 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:47:31.919365 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 13:47:31.919415 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 13:47:31.919458 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 13:47:31.919474 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 13:47:31.919506 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 13:47:31.924376 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:47:31.924990 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:47:31.925027 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:47:31.925036 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 13:47:31.925126 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:47:41.088528 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 13:47:41.088611 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 13:47:41.088629 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:41.088639 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:47:41.088659 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:41.088671 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 13:47:41.088696 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:47:41.088726 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:41.088739 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 13:47:41.088747 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:47:41.088760 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:41.088767 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 13:47:41.088785 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:47:41.088794 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:47:41.088986 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 13:47:41.089138 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 13:47:41.089304 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 13:47:41.089319 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 13:47:41.089330 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 13:47:41.089343 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=1, name=unique_table +[2025-10-13 13:47:41.089864 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 13:47:41.090055 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 13:47:41.090190 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x72535480e9a8 +[2025-10-13 13:47:41.090254 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x72535480e9a8, page num 0, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x72535480e9a8 +[2025-10-13 13:47:41.090351 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:9, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x72535480e9a8 +[2025-10-13 13:47:41.090448 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=9, hdr_frame=0x72535480e9a8, file header=pageCount:1, allocatedCount:1 +[2025-10-13 13:47:41.090525 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e0000137c0, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x145cf7 0x1104ce 0x1cad50 0x1c6782 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 13:47:41.090684 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 13:47:41.090720 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 13:47:41.090747 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 13:47:41.090764 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:1 +[2025-10-13 13:47:41.091059 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:1 +[2025-10-13 13:47:41.091143 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x72535480e9a8 +[2025-10-13 13:47:41.091256 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 13:47:41.091288 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 13:47:41.095473 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2025-10-13 13:47:41.095795 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-248845239 +[2025-10-13 13:47:41.095865 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:47:41.096121 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:47:41.096146 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:47:41.096156 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 13:47:41.096240 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:47:49.596715 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:47:49.596769 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 13:47:49.596783 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:49.596795 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 13:47:49.596805 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:47:49.596816 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:47:49.596872 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:47:49.596911 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:47:49.596964 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:47:49.596982 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:47:49.596994 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:47:49.597015 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:47:49.599333 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:47:49.599563 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:47:49.599644 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x725354810a10, page num 1, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:47:49.599700 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=1, pin=1 +[2025-10-13 13:47:49.599794 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:1 +[2025-10-13 13:47:49.599833 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:47:49.599905 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=2, lsn=0, this=0x725354810a10 +[2025-10-13 13:47:49.600020 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:47:49.600375 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:47:54.919723 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:47:54.919800 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 13:47:54.919815 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:54.919824 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 13:47:54.919830 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:47:54.919841 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:47:54.919854 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:47:54.919861 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:47:54.919869 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:47:54.919876 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:47:54.919884 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:47:54.919899 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:47:54.919906 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:47:54.919966 pid:3403 tid:725358ddc7c0 ctx:504000000750 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 13:47:54.920120 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:47:54.920193 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:47:54.920235 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:47:54.920299 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:47:59.924453 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 13:47:59.924496 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 13:47:59.924505 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 13:47:59.924516 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:59.924524 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 13:47:59.924535 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:59.924541 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:47:59.924549 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:47:59.924554 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:47:59.924570 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:47:59.924731 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:47:59.924748 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 13:47:59.924786 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:47:59.924827 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=1, lsn=0, this=0x725354812a78 +[2025-10-13 13:47:59.924863 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x725354812a78, page num 0, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=1, lsn=0, this=0x725354812a78 +[2025-10-13 13:47:59.924904 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:13, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=1, lsn=0, this=0x725354812a78 +[2025-10-13 13:47:59.924939 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=13, hdr_frame=0x725354812a78, file header=pageCount:1, allocatedCount:1 +[2025-10-13 13:47:59.924964 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e000019480, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x428cc8 0x477b2d 0x32be83 0x1c6676 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 13:47:59.925004 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:47:59.925558 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354814ae0 +[2025-10-13 13:47:59.925652 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x725354814ae0, page num 1, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354814ae0 +[2025-10-13 13:47:59.925692 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=4, pageNum=1, pin=1 +[2025-10-13 13:47:59.925789 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:1,lsn=0, dwb size:2 +[2025-10-13 13:47:59.925910 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354814ae0 +[2025-10-13 13:47:59.925982 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 13:47:59.925994 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 13:47:59.926034 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:1,lsn=0, dwb size=2 +[2025-10-13 13:47:59.926057 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=2, lsn=0, this=0x725354814ae0 +[2025-10-13 13:47:59.926117 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:0,lsn=0, dwb size:3 +[2025-10-13 13:47:59.926137 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=2, lsn=0, this=0x725354812a78 +[2025-10-13 13:47:59.926151 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:907] >> Successfully create index +[2025-10-13 13:47:59.926179 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:47:59.926193 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 13:47:59.926241 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:47:59.926324 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:47:59.927261 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x725354816b48 +[2025-10-13 13:47:59.927571 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x725354816b48, page num 2, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x725354816b48 +[2025-10-13 13:47:59.927697 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=4, pageNum=2, pin=1 +[2025-10-13 13:47:59.927891 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:2,lsn=0, dwb size:4 +[2025-10-13 13:47:59.927945 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x725354816b48 +[2025-10-13 13:47:59.928013 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354814ae0 +[2025-10-13 13:47:59.928070 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1462] >> set root page to 2 +[2025-10-13 13:47:59.928160 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 13:47:59.928196 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:2, dirty=1, pin=1, lsn=0, this=0x725354816b48 +[2025-10-13 13:47:59.928262 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 13:47:59.928374 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 13:47:59.928447 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 13:47:59.929201 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 13:47:59.929327 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:1, dirty=1, pin=1, lsn=0, this=0x725354814ae0 +[2025-10-13 13:47:59.929441 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:1,lsn=0, dwb size=4 +[2025-10-13 13:47:59.929490 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354814ae0 +[2025-10-13 13:47:59.929552 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:2,lsn=0, dwb size=4 +[2025-10-13 13:47:59.929591 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x725354816b48 +[2025-10-13 13:47:59.929754 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:0,lsn=0, dwb size=4 +[2025-10-13 13:47:59.929797 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=2, lsn=0, this=0x725354812a78 +[2025-10-13 13:47:59.929882 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=4 +[2025-10-13 13:47:59.929917 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:47:59.929986 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:5 +[2025-10-13 13:47:59.930018 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x72535480e9a8 +[2025-10-13 13:47:59.930038 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 13:47:59.930048 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 13:47:59.938524 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2025-10-13 13:47:59.938872 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-1307057313 +[2025-10-13 13:47:59.938973 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:4,page_num:2,lsn=0 +[2025-10-13 13:47:59.939183 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:2, lsn=0, check_sum=-204659974 +[2025-10-13 13:47:59.939305 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:4,page_num:0,lsn=0 +[2025-10-13 13:47:59.939378 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:0, lsn=0, check_sum=-443364400 +[2025-10-13 13:47:59.939448 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:4,page_num:1,lsn=0 +[2025-10-13 13:47:59.939526 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 13:47:59.939610 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:1,lsn=0 +[2025-10-13 13:47:59.939678 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=186231899 +[2025-10-13 13:47:59.939740 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:47:59.940327 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:47:59.940377 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:47:59.940400 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 13:47:59.940470 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:48:04.559428 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:48:04.559522 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 13:48:04.559538 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:48:04.559553 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 13:48:04.559560 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:48:04.559571 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:48:04.559586 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:48:04.559598 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:48:04.559607 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:48:04.559616 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:48:04.559624 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:48:04.559642 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:48:04.559720 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:48:04.559871 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:48:04.559960 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:48:04.560033 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 13:48:04.560073 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x725354816b48 +[2025-10-13 13:48:04.560143 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 13:48:04.560210 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 13:48:04.560526 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:48:17.101841 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 13:48:17.101925 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 13:48:17.101945 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:48:17.101953 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:48:17.102765 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:48:17.102830 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 13:48:17.102869 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 13:48:17.103384 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:48:17.103460 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:48:17.103489 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 13:48:17.103550 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 13:48:17.103603 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 13:48:17.103653 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 13:48:17.103689 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 13:48:17.103751 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 13:48:17.103853 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:55:18.245719 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 13:55:18.245830 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 13:55:18.245851 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:18.245972 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 13:55:18.246643 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:1 +[2025-10-13 13:55:18.246880 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x725354810a10 +[2025-10-13 13:55:18.247046 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x725354810a10, page 1 frame_id=buffer_pool_id:3,page_num:1 +[2025-10-13 13:55:18.247105 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x72535480e9a8, page 0 frame_id=buffer_pool_id:3,page_num:0 +[2025-10-13 13:55:18.247156 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=1 +[2025-10-13 13:55:18.247233 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=2013355325 +[2025-10-13 13:55:18.247357 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table.data. +[2025-10-13 13:55:18.247500 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 13:55:18.247575 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 13:55:18.247679 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:2,lsn=0, dwb size:1 +[2025-10-13 13:55:18.247734 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x725354816b48 +[2025-10-13 13:55:18.247792 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x725354816b48, page 2 frame_id=buffer_pool_id:4,page_num:2 +[2025-10-13 13:55:18.247885 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x725354814ae0, page 1 frame_id=buffer_pool_id:4,page_num:1 +[2025-10-13 13:55:18.247943 pid:3403 tid:725358ddc7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x725354812a78, page 0 frame_id=buffer_pool_id:4,page_num:0 +[2025-10-13 13:55:18.247988 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=1 +[2025-10-13 13:55:18.248023 pid:3403 tid:725358ddc7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:2, lsn=0, check_sum=456533722 +[2025-10-13 13:55:18.248092 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:55:18.248122 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 13:55:18.248153 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 13:55:18.248186 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 13:55:18.248195 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 13:55:18.248224 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 13:55:18.422154 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:55:18.422458 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:55:18.422481 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:55:18.422489 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 13:55:18.422677 pid:3403 tid:725358ddc7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:55:21.051259 pid:3403 tid:725358ddc7c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-13 13:55:21.051382 pid:3403 tid:725358ddc7c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 13:55:21.056403 pid:3403 tid:725358ddc7c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:55:21.056794 pid:3403 tid:725358ddc7c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:55:21.056830 pid:3403 tid:725358ddc7c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:55:21.065444 pid:3403 tid:725355c146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 13:55:21.257139 pid:3403 tid:725358ddc7c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 13:55:21.274315 pid:3403 tid:725358ddc7c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 13:55:21.274639 pid:3403 tid:725358ddc7c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-13 13:55:23.691292 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 13:55:23.691630 pid:9082 tid:7f06d8f2b7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 13:55:23.692291 pid:9082 tid:7f06d5d146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 13:55:23.693615 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.694166 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.694708 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.695355 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.696144 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.698923 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.699913 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.700923 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.701754 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.702589 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.703168 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.703818 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.704346 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.704852 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.705453 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.706093 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.706549 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.706971 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.707505 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.707958 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.707993 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 13:55:23.708002 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 13:55:23.708190 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=1 +[2025-10-13 13:55:23.708341 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 13:55:23.708837 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=0 +[2025-10-13 13:55:23.715271 pid:9082 tid:7f06d8f2b7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:4,page_num:2,lsn=0 +[2025-10-13 13:55:23.715449 pid:9082 tid:7f06d8f2b7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 13:55:23.715509 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 13:55:23.715617 pid:9082 tid:7f06d8f2b7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 13:55:23.715636 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 13:55:23.715672 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 13:55:29.688789 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 13:55:29.688874 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 13:55:29.688908 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:29.688942 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:55:29.688954 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:29.688962 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 13:55:29.688972 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:55:29.689006 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:29.689029 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 13:55:29.689044 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:55:29.689077 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:29.689090 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 13:55:29.689100 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:55:29.689112 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:55:29.689349 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 13:55:29.689603 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 13:55:29.689765 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 13:55:29.689785 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 13:55:29.689797 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 13:55:29.689804 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=0, name=unique_table +[2025-10-13 13:55:29.690328 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 13:55:29.690550 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 13:55:29.690642 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7f06d4906808 +[2025-10-13 13:55:29.690768 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f06d4906808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7f06d4906808 +[2025-10-13 13:55:29.690923 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f06d4906808 +[2025-10-13 13:55:29.691012 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=10, hdr_frame=0x7f06d4906808, file header=pageCount:1, allocatedCount:1 +[2025-10-13 13:55:29.691092 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=10, bp=0x50e000004aa0, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x145cf7 0x1104ce 0x1cad50 0x1c6782 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 13:55:29.691667 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 13:55:29.691732 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 13:55:29.691788 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 13:55:29.691864 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:0 +[2025-10-13 13:55:29.692015 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:1 +[2025-10-13 13:55:29.692130 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f06d4906808 +[2025-10-13 13:55:29.692196 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 13:55:29.692221 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 13:55:29.698391 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 13:55:29.698576 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=559150982 +[2025-10-13 13:55:29.698645 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:55:29.698909 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:55:29.698945 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:55:29.698957 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 13:55:29.699049 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:55:37.667598 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:55:37.667649 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 13:55:37.667662 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:37.667673 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 13:55:37.667684 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:55:37.667698 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:55:37.667718 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:55:37.667766 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:55:37.667789 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:55:37.667800 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:55:37.667807 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:55:37.667827 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:55:37.667840 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:55:37.667864 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 13:55:37.668306 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:55:37.668591 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:55:37.668682 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f06d4908870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:55:37.668731 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=1, pageNum=1, pin=1 +[2025-10-13 13:55:37.668842 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-13 13:55:37.668899 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:55:37.668970 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:55:37.669045 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:55:37.669179 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:55:58.918055 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 13:55:58.918100 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 13:55:58.918109 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 13:55:58.918124 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:58.918131 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 13:55:58.918142 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:58.918148 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:55:58.918169 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:55:58.918178 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:55:58.918200 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:55:58.918480 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:55:58.918506 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 13:55:58.918541 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:55:58.918621 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f06d490a8d8 +[2025-10-13 13:55:58.918670 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f06d490a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f06d490a8d8 +[2025-10-13 13:55:58.918730 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f06d490a8d8 +[2025-10-13 13:55:58.918795 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=12, hdr_frame=0x7f06d490a8d8, file header=pageCount:1, allocatedCount:1 +[2025-10-13 13:55:58.918828 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=12, bp=0x50e000012c60, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x428cc8 0x477b2d 0x32be83 0x1c6676 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 13:55:58.918904 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:55:58.918965 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d490c940 +[2025-10-13 13:55:58.919013 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f06d490c940, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d490c940 +[2025-10-13 13:55:58.919039 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=1, pin=1 +[2025-10-13 13:55:58.919110 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:2 +[2025-10-13 13:55:58.919177 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d490c940 +[2025-10-13 13:55:58.919257 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 13:55:58.919271 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 13:55:58.919314 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=2 +[2025-10-13 13:55:58.919361 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f06d490c940 +[2025-10-13 13:55:58.919471 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-13 13:55:58.919521 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f06d490a8d8 +[2025-10-13 13:55:58.919538 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:907] >> Successfully create index +[2025-10-13 13:55:58.919606 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:55:58.919621 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 13:55:58.919647 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:55:58.919699 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:55:58.919810 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:55:58.919880 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f06d490e9a8, page num 2, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:55:58.919927 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=2, pin=1 +[2025-10-13 13:55:58.919989 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size:4 +[2025-10-13 13:55:58.920011 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:55:58.920076 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d490c940 +[2025-10-13 13:55:58.920134 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1462] >> set root page to 2 +[2025-10-13 13:55:58.920226 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 13:55:58.920745 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 13:55:58.920802 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f06d490c940 +[2025-10-13 13:55:58.920908 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=4 +[2025-10-13 13:55:58.920954 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d490c940 +[2025-10-13 13:55:58.921029 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size=4 +[2025-10-13 13:55:58.921043 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:55:58.921097 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size=4 +[2025-10-13 13:55:58.921110 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f06d490a8d8 +[2025-10-13 13:55:58.921157 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size=4 +[2025-10-13 13:55:58.921173 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:55:58.921231 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-13 13:55:58.921252 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f06d4906808 +[2025-10-13 13:55:58.921263 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 13:55:58.921275 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 13:55:58.925826 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 13:55:58.925914 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-13 13:55:58.925941 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-13 13:55:58.925961 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1315496384 +[2025-10-13 13:55:58.925981 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:1,lsn=0 +[2025-10-13 13:55:58.926006 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 13:55:58.926024 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 13:55:58.926049 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:2, lsn=0, check_sum=-1003882193 +[2025-10-13 13:55:58.926066 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-13 13:55:58.926081 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=227745587 +[2025-10-13 13:55:58.926101 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:55:58.926244 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:55:58.926262 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:55:58.926270 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 13:55:58.926334 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:56:07.582233 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:56:07.582266 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 13:56:07.582278 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:56:07.582284 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 13:56:07.582296 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:56:07.582303 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:07.582316 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:56:07.582321 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:07.582336 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:56:07.582341 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:07.582349 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:56:07.582359 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:56:07.582465 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:56:07.582550 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:56:07.582610 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:56:07.582696 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 13:56:07.582746 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:56:07.582791 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 13:56:07.582847 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 13:56:07.582988 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:56:19.388179 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 13:56:19.388233 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 13:56:19.388261 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:56:19.388279 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:56:19.388643 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:56:19.388752 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 13:56:19.388795 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 13:56:19.389004 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:56:19.389103 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:56:19.389125 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 13:56:19.389223 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 13:56:19.389321 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 13:56:19.389413 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 13:56:19.389527 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:56:27.847111 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:56:27.847157 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 13:56:27.847172 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:56:27.847179 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 13:56:27.847187 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:56:27.847196 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:27.847210 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:56:27.847216 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:27.847230 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:56:27.847239 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:27.847248 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:56:27.847262 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:56:27.847339 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:56:27.847461 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:56:27.847493 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:56:27.847534 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 13:56:27.847546 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:56:27.847568 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 13:56:27.847597 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 13:56:27.847680 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:56:30.217265 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 13:56:30.217352 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 13:56:30.217371 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:56:30.217382 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:56:30.217545 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:56:30.217584 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 13:56:30.217595 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 13:56:30.217684 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:56:30.217737 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:56:30.217767 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 13:56:30.217814 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 13:56:30.217856 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 13:56:30.217884 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 13:56:30.217913 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 13:56:30.217934 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 13:56:30.218026 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:56:43.378181 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 13:56:43.378228 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 13:56:43.378245 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:56:43.378253 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 13:56:43.378260 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 13:56:43.378269 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:43.378343 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:56:43.378353 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:43.378364 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 13:56:43.378371 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 13:56:43.378391 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 13:56:43.378402 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:56:43.378485 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:56:43.378570 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:56:43.378617 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:56:43.378654 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 13:56:43.378668 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:56:43.378687 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 13:56:43.378714 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 13:56:43.378801 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:56:45.486692 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 13:56:45.486776 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 13:56:45.486793 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:56:45.486802 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:56:45.486973 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 13:56:45.487010 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 13:56:45.487022 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 13:56:45.487108 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:56:45.487160 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 13:56:45.487176 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 13:56:45.487219 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 13:56:45.487247 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 13:56:45.487272 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 13:56:45.487306 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 13:56:45.487321 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 13:56:45.487339 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 13:56:45.487356 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 13:56:45.487419 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:56:55.230628 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 13:56:55.230673 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 13:56:55.230686 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 13:56:55.230707 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 13:56:55.230740 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 13:56:55.231227 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-13 13:56:55.231287 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f06d4908870 +[2025-10-13 13:56:55.231340 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f06d4908870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-13 13:56:55.231367 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f06d4906808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-13 13:56:55.231385 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=1 +[2025-10-13 13:56:55.231403 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=461409773 +[2025-10-13 13:56:55.231462 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 10:miniob/db/sys/unique_table.data. +[2025-10-13 13:56:55.231487 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 13:56:55.231511 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 13:56:55.231585 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size:1 +[2025-10-13 13:56:55.231624 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f06d490e9a8 +[2025-10-13 13:56:55.231656 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f06d490e9a8, page 2 frame_id=buffer_pool_id:2,page_num:2 +[2025-10-13 13:56:55.231761 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f06d490c940, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-13 13:56:55.231837 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f06d490a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-13 13:56:55.231868 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=1 +[2025-10-13 13:56:55.231891 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:2, lsn=0, check_sum=-1648504876 +[2025-10-13 13:56:55.231970 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 12:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 13:56:55.232035 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 13:56:55.232076 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 13:56:55.232112 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 13:56:55.232126 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 13:56:55.232139 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 13:56:55.236441 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:56:55.236714 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:56:55.236740 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:56:55.236749 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 13:56:55.236798 pid:9082 tid:7f06d8f2b7c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 13:57:00.930170 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-13 13:57:00.930273 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 13:57:00.934485 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 13:57:00.935030 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 13:57:00.935087 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 13:57:00.945206 pid:9082 tid:7f06d5d146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 13:57:01.135512 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 13:57:01.145415 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 13:57:01.145538 pid:9082 tid:7f06d8f2b7c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-13 14:00:23.978556 pid:12180 tid:7158da9d47c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 14:00:23.979106 pid:12180 tid:7158da9d47c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 14:00:23.979994 pid:12180 tid:7158d78146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 14:00:23.981803 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.982390 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.982973 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.983468 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.984156 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.985276 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.985912 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.986595 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.987173 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.987704 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.988255 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.988856 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.989421 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.989911 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.990501 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.990972 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.991527 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.992088 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.992707 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.993289 pid:12180 tid:7158da9d47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.993346 pid:12180 tid:7158da9d47c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:00:23.993357 pid:12180 tid:7158da9d47c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 14:00:23.993568 pid:12180 tid:7158da9d47c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=1 +[2025-10-13 14:00:23.993735 pid:12180 tid:7158da9d47c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 14:00:23.994196 pid:12180 tid:7158da9d47c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=0 +[2025-10-13 14:00:23.999533 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 14:00:23.999878 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 14:00:24.000157 pid:12180 tid:7158da9d47c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 14:00:24.000253 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 14:00:24.000271 pid:12180 tid:7158da9d47c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 14:00:24.000390 pid:12180 tid:7158da9d47c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 14:00:30.425974 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:96] >> SHOW +[2025-10-13 14:00:30.426062 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-13 14:00:30.426347 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:00:55.867836 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:00:55.867901 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:00:55.867943 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:00:55.867974 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:00:55.867989 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:00:55.867999 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:00:55.868010 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:00:55.868039 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:00:55.868055 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:00:55.868067 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:00:55.868093 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:00:55.868103 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:00:55.868113 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:00:55.868123 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:00:55.868280 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 14:00:55.868447 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 14:00:55.868585 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:00:55.868602 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:00:55.868625 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:00:55.868632 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=0, name=unique_table +[2025-10-13 14:00:55.869188 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 14:00:55.869374 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:00:55.869486 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7158d6406808 +[2025-10-13 14:00:55.869580 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7158d6406808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7158d6406808 +[2025-10-13 14:00:55.869650 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0, this=0x7158d6406808 +[2025-10-13 14:00:55.869738 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=10, hdr_frame=0x7158d6406808, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:00:55.869785 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=10, bp=0x50e00000ffc0, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x145cf7 0x1104ce 0x1cad50 0x1c6782 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:00:55.870266 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 14:00:55.870307 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:00:55.870351 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 14:00:55.870381 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:0 +[2025-10-13 14:00:55.870488 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:1 +[2025-10-13 14:00:55.870563 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7158d6406808 +[2025-10-13 14:00:55.870631 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:00:55.870647 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:00:55.875839 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 14:00:55.876048 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=559150982 +[2025-10-13 14:00:55.876105 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:00:55.876384 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:00:55.876417 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:00:55.876431 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:00:55.876521 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:01.437213 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:01:01.437246 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:01:01.437258 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:01.437267 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:01:01.437273 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:01:01.437282 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:01.437309 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:01.437320 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:01.437335 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:01.437347 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:01.437356 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:01:01.437373 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:01:01.437630 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:01:01.437898 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:01.437985 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7158d6408870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:01.438034 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=1, pageNum=1, pin=1 +[2025-10-13 14:01:01.438114 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:01:01.438161 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:01.438230 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=2, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:01.438298 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:01:01.438464 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:06.377895 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:01:06.378000 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:01:06.378012 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:01:06.378067 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:06.378095 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:01:06.378106 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:06.378113 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:01:06.378122 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:06.378129 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:01:06.378148 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:01:06.378617 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:01:06.378645 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:01:06.378686 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:01:06.378863 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7158d640a8d8 +[2025-10-13 14:01:06.378962 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7158d640a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7158d640a8d8 +[2025-10-13 14:01:06.379086 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7158d640a8d8 +[2025-10-13 14:01:06.379167 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=12, hdr_frame=0x7158d640a8d8, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:01:06.379212 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=12, bp=0x50e0000130c0, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x428cc8 0x477b2d 0x32be83 0x1c6676 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:01:06.379275 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:01:06.379349 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:06.379426 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7158d640c940, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:06.379495 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=1, pin=1 +[2025-10-13 14:01:06.379574 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:01:06.379657 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:06.379810 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:01:06.379842 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:01:06.379896 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=2 +[2025-10-13 14:01:06.379919 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=2, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:06.380047 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:01:06.380103 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7158d640a8d8 +[2025-10-13 14:01:06.380123 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:907] >> Successfully create index +[2025-10-13 14:01:06.380156 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:01:06.380167 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:01:06.380203 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:06.380262 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:01:06.380364 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:06.380448 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7158d640e9a8, page num 2, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:06.380498 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=2, pin=1 +[2025-10-13 14:01:06.380566 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size:4 +[2025-10-13 14:01:06.380613 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:06.380738 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:06.380857 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1462] >> set root page to 2 +[2025-10-13 14:01:06.380992 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 14:01:06.381621 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 14:01:06.381702 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:06.381791 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:01:06.381824 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:06.381906 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size=4 +[2025-10-13 14:01:06.381941 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:06.382011 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size=4 +[2025-10-13 14:01:06.382027 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7158d640a8d8 +[2025-10-13 14:01:06.382084 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:01:06.382127 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:06.382226 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:01:06.382267 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7158d6406808 +[2025-10-13 14:01:06.382283 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:01:06.382298 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:01:06.389474 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 14:01:06.389775 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-13 14:01:06.389830 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-13 14:01:06.389856 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1315496384 +[2025-10-13 14:01:06.389877 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:1,lsn=0 +[2025-10-13 14:01:06.389906 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 14:01:06.389924 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 14:01:06.389949 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:2, lsn=0, check_sum=-1770321888 +[2025-10-13 14:01:06.389966 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-13 14:01:06.389983 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1198617865 +[2025-10-13 14:01:06.390004 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:01:06.390175 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:01:06.390203 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:01:06.390211 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:01:06.390488 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:10.464406 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:01:10.464453 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:01:10.464470 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:10.464477 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:01:10.464489 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:01:10.464498 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:10.464511 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:10.464517 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:10.464527 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:10.464534 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:10.464544 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:01:10.464554 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:01:10.464706 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:01:10.464853 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:10.464933 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:01:10.465002 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:01:10.465034 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:10.465070 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:01:10.465123 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:01:10.465259 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:21.970698 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:01:21.970783 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:01:21.970805 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:21.970841 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:152] >> Unknown character ['] +[2025-10-13 14:01:21.970884 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 14:01:21.971122 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:01:21.971177 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:01:21.971209 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:01:21.971318 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:21.971392 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:01:21.971420 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:01:21.971883 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:01:21.971973 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:01:21.972058 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 14:01:21.972334 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:28.614393 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:01:28.614471 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:01:28.614498 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:28.614529 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:01:28.614541 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:01:28.614551 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:28.614563 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:28.614573 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:28.614584 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:28.614592 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:28.614600 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:01:28.614629 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:01:28.614766 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:01:28.614896 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:28.614993 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:01:28.615108 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:01:28.615199 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=1, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:28.615235 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:01:28.615284 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:01:28.615389 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:36.376168 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:01:36.376214 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:01:36.376229 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:36.376239 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:01:36.376247 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:01:36.376256 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:36.376270 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:36.376279 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:36.376289 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:01:36.376294 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:01:36.376302 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:01:36.376314 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:01:36.376393 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:01:36.376502 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:36.376554 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:01:36.376595 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:01:36.376718 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:2, dirty=1, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:36.376796 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:01:36.376838 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:01:36.376935 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:41.789070 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:01:41.789167 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:01:41.789247 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:01:41.789265 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:152] >> Unknown character ['] +[2025-10-13 14:01:41.789308 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 14:01:41.789512 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:01:41.789552 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:01:41.789656 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:01:41.789762 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:41.789844 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:01:41.789864 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:01:41.789908 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:01:41.789952 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:01:41.789997 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 14:01:41.790043 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 14:01:41.790065 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:01:41.790087 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 14:01:41.790129 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 14:01:41.790229 pid:12180 tid:7158da9d47c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:01:59.744613 pid:12180 tid:7158da9d47c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-13 14:01:59.744709 pid:12180 tid:7158da9d47c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 14:01:59.744853 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:2,lsn=0, dwb size:1 +[2025-10-13 14:01:59.744920 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:2, dirty=0, pin=1, lsn=0, this=0x7158d640e9a8 +[2025-10-13 14:01:59.745016 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:01:59.745053 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d640c940 +[2025-10-13 14:01:59.745116 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:01:59.745139 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=12, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7158d640a8d8 +[2025-10-13 14:01:59.745205 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:4 +[2025-10-13 14:01:59.745225 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7158d6408870 +[2025-10-13 14:01:59.745388 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:01:59.745434 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7158d6406808 +[2025-10-13 14:01:59.745453 pid:12180 tid:7158da9d47c0 ctx:0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:01:59.745475 pid:12180 tid:7158da9d47c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:01:59.751357 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 14:01:59.751473 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-13 14:01:59.751515 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-13 14:01:59.751536 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1315496384 +[2025-10-13 14:01:59.751554 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:1,lsn=0 +[2025-10-13 14:01:59.751573 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 14:01:59.751592 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-13 14:01:59.751607 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-206023400 +[2025-10-13 14:01:59.751621 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 14:01:59.751637 pid:12180 tid:7158da9d47c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:2, lsn=0, check_sum=1226619717 +[2025-10-13 14:01:59.751657 pid:12180 tid:7158da9d47c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:01:59.751907 pid:12180 tid:7158da9d47c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:01:59.751944 pid:12180 tid:7158da9d47c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:01:59.752002 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7158d6408870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-13 14:01:59.752079 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7158d6406808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-13 14:01:59.752110 pid:12180 tid:7158da9d47c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 14:01:59.752125 pid:12180 tid:7158da9d47c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 10:miniob/db/sys/unique_table.data. +[2025-10-13 14:01:59.752145 pid:12180 tid:7158da9d47c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:01:59.752162 pid:12180 tid:7158da9d47c0 ctx:0 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:01:59.752175 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7158d640e9a8, page 2 frame_id=buffer_pool_id:2,page_num:2 +[2025-10-13 14:01:59.752206 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7158d640c940, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-13 14:01:59.752227 pid:12180 tid:7158da9d47c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7158d640a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-13 14:01:59.752241 pid:12180 tid:7158da9d47c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 14:01:59.752261 pid:12180 tid:7158da9d47c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 12:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:01:59.752274 pid:12180 tid:7158da9d47c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:01:59.752295 pid:12180 tid:7158da9d47c0 ctx:0 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:01:59.752347 pid:12180 tid:7158da9d47c0 ctx:0 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:01:59.752382 pid:12180 tid:7158da9d47c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:01:59.755795 pid:12180 tid:7158d78146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 14:01:59.952676 pid:12180 tid:7158da9d47c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 14:01:59.963107 pid:12180 tid:7158da9d47c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 14:01:59.963234 pid:12180 tid:7158da9d47c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-13 14:05:22.401958 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 14:05:22.434785 pid:15290 tid:7f41dc4437c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 14:05:22.449603 pid:15290 tid:7f41d92146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 14:05:22.479910 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.481405 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.483606 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.484985 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.485663 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.487035 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.490492 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.496406 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.506314 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.524751 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.526919 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.536236 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.548448 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.556588 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.565968 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.577243 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.592752 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.604757 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.607383 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.612378 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.612459 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:05:22.612469 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 14:05:22.614076 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=5 +[2025-10-13 14:05:22.615246 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 14:05:22.616896 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:05:22.616974 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:05:22.616994 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:05:22.617331 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:05:22.618021 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7f41d7e06808 +[2025-10-13 14:05:22.618220 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e06808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7f41d7e06808 +[2025-10-13 14:05:22.618317 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-13 14:05:22.618337 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=8, hdr_frame=0x7f41d7e06808, file header=pageCount:2, allocatedCount:2 +[2025-10-13 14:05:22.618435 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x14a479 0x1181f7 0x122786 0x12e1a8 0x13189b 0x514ae 0x58d31 0x4089f 0x21ca 0x228b 0x44785 +[2025-10-13 14:05:22.620308 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e08870 +[2025-10-13 14:05:22.620395 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e08870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e08870 +[2025-10-13 14:05:22.620478 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-13 14:05:22.620806 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:05:22.620867 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-13 14:05:22.620891 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:05:22.622019 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:05:22.622357 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e0a8d8 +[2025-10-13 14:05:22.622460 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e0a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e0a8d8 +[2025-10-13 14:05:22.622535 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=2, page_num:0, lsn:0 +[2025-10-13 14:05:22.622571 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=9, hdr_frame=0x7f41d7e0a8d8, file header=pageCount:3, allocatedCount:3 +[2025-10-13 14:05:22.622643 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e000000f20, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x42d539 0x47911d 0x32855c 0x14a479 0x1181f7 0x122786 0x12e1a8 0x13189b 0x514ae 0x58d31 0x4089f 0x21ca 0x228b 0x44785 +[2025-10-13 14:05:22.622721 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e0c940 +[2025-10-13 14:05:22.622780 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e0c940, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e0c940 +[2025-10-13 14:05:22.622848 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=2, page_num:1, lsn:0 +[2025-10-13 14:05:22.622941 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:05:22.622963 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:05:22.622973 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open@bplus_tree.cpp:968] >> Successfully open index +[2025-10-13 14:05:22.622982 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open@bplus_tree.cpp:928] >> open b+tree success. filename=miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:05:22.622991 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open@bplus_tree_index.cpp:67] >> Successfully open index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:05:22.623024 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: unique_table, file: unique_table.table +[2025-10-13 14:05:22.623060 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-13 14:05:22.627446 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-13 14:05:22.627535 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-13 14:05:22.627555 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:1,lsn=0 +[2025-10-13 14:05:22.627568 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-13 14:05:22.627586 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:2,lsn=0 +[2025-10-13 14:05:22.627609 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 14:05:22.627669 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 14:05:22.627709 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 14:05:22.627721 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 14:05:22.627739 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 14:05:26.065546 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:96] >> SHOW +[2025-10-13 14:05:26.065653 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-13 14:05:26.068508 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:05:34.973589 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:05:34.973624 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:05:34.973682 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:05:34.973752 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 14:05:34.974833 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e08870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-13 14:05:34.974932 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e06808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-13 14:05:34.974959 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 14:05:34.975021 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/unique_table.data. +[2025-10-13 14:05:34.975068 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:05:34.975101 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:05:34.975219 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e0c940, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-13 14:05:34.975907 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e0a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-13 14:05:34.976031 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 14:05:34.976133 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:05:34.976607 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:05:34.976662 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:05:34.976850 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:05:34.977197 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:05:34.977353 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 14:05:34.982945 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:05:34.984128 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:05:34.984255 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:05:34.984293 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:05:34.984902 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:06:46.413811 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:06:46.413916 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:06:46.413931 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:46.413941 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:06:46.413961 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:46.414057 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:06:46.414125 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:06:46.414223 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:46.414269 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:06:46.414283 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:06:46.414320 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:46.414369 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:06:46.414415 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:06:46.414456 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:06:46.414945 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 14:06:46.415385 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 14:06:46.415933 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:06:46.415961 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:06:46.415972 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:06:46.416012 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=1, name=unique_table +[2025-10-13 14:06:46.417185 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 14:06:46.417745 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:06:46.417845 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e0e9a8 +[2025-10-13 14:06:46.418458 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e0e9a8, page num 0, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e0e9a8 +[2025-10-13 14:06:46.418603 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:9, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e0e9a8 +[2025-10-13 14:06:46.418691 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=9, hdr_frame=0x7f41d7e0e9a8, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:06:46.418766 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e000015f20, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x145cf7 0x1104ce 0x1cad50 0x1c6782 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:06:46.419029 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 14:06:46.419051 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:06:46.419072 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 14:06:46.419094 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:1 +[2025-10-13 14:06:46.419468 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:1 +[2025-10-13 14:06:46.419624 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e0e9a8 +[2025-10-13 14:06:46.419731 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:06:46.419753 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:06:46.431080 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2025-10-13 14:06:46.431444 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-248845239 +[2025-10-13 14:06:46.431532 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:06:46.431735 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:06:46.431802 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:06:46.431815 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:06:46.431964 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:06:46.432288 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:06:46.432324 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:06:46.432337 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:46.432344 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:06:46.432352 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:06:46.432362 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:06:46.432401 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:06:46.432434 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:06:46.432468 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:06:46.432482 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:06:46.432492 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:06:46.432508 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:06:46.434144 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:06:46.434440 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:06:46.434527 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e10a10, page num 1, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:06:46.434636 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=1, pin=1 +[2025-10-13 14:06:46.434732 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:06:46.434783 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:06:46.434882 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:06:46.434919 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:06:46.435011 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:06:47.698506 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:06:47.698595 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:06:47.698609 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:06:47.698619 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:47.698628 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:06:47.698673 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:47.698684 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:06:47.698695 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:06:47.698713 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:06:47.698724 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:06:47.699024 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:06:47.699045 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:06:47.699076 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:06:47.699155 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e12a78 +[2025-10-13 14:06:47.699224 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e12a78, page num 0, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e12a78 +[2025-10-13 14:06:47.699281 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:13, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e12a78 +[2025-10-13 14:06:47.699354 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=13, hdr_frame=0x7f41d7e12a78, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:06:47.699430 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e000016b60, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x428cc8 0x477b2d 0x32be83 0x1c6676 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:06:47.699480 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:06:47.700130 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e14ae0 +[2025-10-13 14:06:47.700209 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e14ae0, page num 1, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e14ae0 +[2025-10-13 14:06:47.700292 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=4, pageNum=1, pin=1 +[2025-10-13 14:06:47.700382 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:06:47.700415 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e14ae0 +[2025-10-13 14:06:47.700613 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:06:47.700664 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:06:47.700722 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:1,lsn=0, dwb size=2 +[2025-10-13 14:06:47.700740 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f41d7e14ae0 +[2025-10-13 14:06:47.700835 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:06:47.700858 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e12a78 +[2025-10-13 14:06:47.700881 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:907] >> Successfully create index +[2025-10-13 14:06:47.700915 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:06:47.700930 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:06:47.701032 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:06:47.701073 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:06:47.701628 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:06:47.701686 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e16b48, page num 2, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:06:47.701888 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=4, pageNum=2, pin=1 +[2025-10-13 14:06:47.701997 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:2,lsn=0, dwb size:4 +[2025-10-13 14:06:47.702098 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:06:47.702268 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e14ae0 +[2025-10-13 14:06:47.702419 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1462] >> set root page to 2 +[2025-10-13 14:06:47.702637 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 14:06:47.703599 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 14:06:47.703647 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e14ae0 +[2025-10-13 14:06:47.703742 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:06:47.703788 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e14ae0 +[2025-10-13 14:06:47.703850 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:2,lsn=0, dwb size=4 +[2025-10-13 14:06:47.703874 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:06:47.703925 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:4,page_num:0,lsn=0, dwb size=4 +[2025-10-13 14:06:47.703939 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e12a78 +[2025-10-13 14:06:47.703991 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:06:47.704012 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:06:47.704104 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:06:47.704126 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e0e9a8 +[2025-10-13 14:06:47.704161 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:06:47.704169 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:06:47.711906 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2025-10-13 14:06:47.712038 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-1307057313 +[2025-10-13 14:06:47.712073 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:4,page_num:2,lsn=0 +[2025-10-13 14:06:47.712108 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:2, lsn=0, check_sum=-1770321888 +[2025-10-13 14:06:47.712129 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:4,page_num:0,lsn=0 +[2025-10-13 14:06:47.712147 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:0, lsn=0, check_sum=-443364400 +[2025-10-13 14:06:47.712221 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:4,page_num:1,lsn=0 +[2025-10-13 14:06:47.712274 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 14:06:47.712312 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:1,lsn=0 +[2025-10-13 14:06:47.712339 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=-1198617865 +[2025-10-13 14:06:47.712359 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:06:47.712558 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:06:47.712587 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:06:47.712598 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:06:47.712668 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:07:05.686257 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:07:05.686308 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:07:05.686321 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:07:05.686331 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:07:05.686340 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:07:05.686350 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:05.686362 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:07:05.686371 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:05.686385 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:07:05.686393 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:05.686401 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:07:05.686420 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:07:05.686502 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:07:05.686585 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:07:05.686690 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:07:05.686750 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:07:05.686772 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:07:05.686808 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:07:05.686864 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:07:05.686987 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:07:10.180799 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:07:10.180933 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-13 14:07:10.180954 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-13 14:07:10.181017 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:07:18.756567 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:07:18.756624 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:07:18.756639 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:07:18.756651 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:07:18.757453 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:07:18.757520 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:07:18.757556 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:07:18.757971 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:07:18.758159 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:07:18.758180 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:07:18.758240 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:07:18.758330 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:07:18.758388 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 14:07:18.758534 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:07:26.102820 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:07:26.102868 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:07:26.102884 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:07:26.102894 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:07:26.102906 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:07:26.102915 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:26.102930 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:07:26.102937 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:26.102951 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:07:26.102958 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:26.102967 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:07:26.102984 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:07:26.103067 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:07:26.103207 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:07:26.103247 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:07:26.103301 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:07:26.103319 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:07:26.103344 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:07:26.103368 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:07:26.103463 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:07:29.415778 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:07:29.415853 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:07:29.415867 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:07:29.415874 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:07:29.415879 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:07:29.415886 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:29.415942 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:07:29.415949 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:29.415956 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:07:29.415961 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:07:29.415968 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:07:29.415983 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:07:29.416046 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:07:29.416126 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:07:29.416153 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:07:29.416192 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:07:29.416205 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:4,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:07:29.416228 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:07:29.416259 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:07:29.416385 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:07:32.680330 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:07:32.680380 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:07:32.680394 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:07:32.680402 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:07:32.680573 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:07:32.680612 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:07:32.680623 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:07:32.681031 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:07:32.681085 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:07:32.681101 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:07:32.681167 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:07:32.681236 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:07:32.681293 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 14:07:32.681318 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 14:07:32.681344 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:07:32.681410 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 14:07:32.681463 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 14:07:32.681558 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:08:54.299623 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:08:54.299661 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:08:54.299673 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:08:54.299688 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:08:54.299720 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 14:08:54.300421 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:08:54.300504 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e10a10 +[2025-10-13 14:08:54.300545 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e10a10, page 1 frame_id=buffer_pool_id:3,page_num:1 +[2025-10-13 14:08:54.300693 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e0e9a8, page 0 frame_id=buffer_pool_id:3,page_num:0 +[2025-10-13 14:08:54.300770 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=1 +[2025-10-13 14:08:54.300798 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=-206023400 +[2025-10-13 14:08:54.301007 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table.data. +[2025-10-13 14:08:54.301143 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:08:54.301225 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:08:54.301393 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:4,page_num:2,lsn=0, dwb size:1 +[2025-10-13 14:08:54.301454 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:4,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e16b48 +[2025-10-13 14:08:54.301505 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e16b48, page 2 frame_id=buffer_pool_id:4,page_num:2 +[2025-10-13 14:08:54.301644 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e14ae0, page 1 frame_id=buffer_pool_id:4,page_num:1 +[2025-10-13 14:08:54.301695 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e12a78, page 0 frame_id=buffer_pool_id:4,page_num:0 +[2025-10-13 14:08:54.301731 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=1 +[2025-10-13 14:08:54.301777 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:4, page_num:2, lsn=0, check_sum=1226619717 +[2025-10-13 14:08:54.301869 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:08:54.301950 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:08:54.302063 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:08:54.302374 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:08:54.302424 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:08:54.302443 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 14:08:54.309147 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:08:54.309513 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:08:54.309549 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:08:54.309559 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:08:54.309634 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:03.468911 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:09:03.468970 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:09:03.468983 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.468990 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:09:03.468997 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.469044 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:09:03.469052 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:03.469066 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.469074 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:09:03.469079 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:03.469087 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.469092 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:09:03.469099 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:09:03.469125 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:09:03.469164 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 14:09:03.469226 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 14:09:03.469305 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:09:03.469313 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:09:03.469320 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:09:03.469326 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=2, name=unique_table +[2025-10-13 14:09:03.469592 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 14:09:03.469655 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:09:03.469701 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e18bb0 +[2025-10-13 14:09:03.469730 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e18bb0, page num 0, frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e18bb0 +[2025-10-13 14:09:03.469755 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:13, frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e18bb0 +[2025-10-13 14:09:03.469771 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=13, hdr_frame=0x7f41d7e18bb0, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:09:03.469788 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e0000304e0, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x145cf7 0x1104ce 0x1cad50 0x1c6782 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:09:03.469847 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 14:09:03.469858 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:09:03.469869 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 14:09:03.469881 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:2 +[2025-10-13 14:09:03.469939 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:5,page_num:0,lsn=0, dwb size:1 +[2025-10-13 14:09:03.469979 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e18bb0 +[2025-10-13 14:09:03.469999 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:09:03.470006 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:09:03.474230 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:5,page_num:0,lsn=0 +[2025-10-13 14:09:03.474339 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:5, page_num:0, lsn=0, check_sum=1523631705 +[2025-10-13 14:09:03.474412 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:09:03.474669 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:09:03.474713 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:09:03.474726 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:09:03.474787 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:03.475047 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:09:03.475079 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:09:03.475094 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.475102 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:09:03.475110 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:09:03.475119 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:03.475137 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:03.475145 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:03.475154 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:03.475161 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:03.475171 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:09:03.475182 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:09:03.475248 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:09:03.475353 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:03.475405 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e1ac18, page num 1, frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:03.475433 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=5, pageNum=1, pin=1 +[2025-10-13 14:09:03.475562 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:5,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:09:03.475629 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:03.475666 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:03.475696 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:09:03.475790 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:03.478372 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:09:03.478419 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:09:03.478427 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:09:03.478435 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.478443 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:09:03.478450 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.478456 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:09:03.478462 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:03.478469 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:09:03.478479 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:09:03.478486 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:09:03.478504 pid:15290 tid:7f41dc4437c0 ctx:504000000750 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 14:09:03.478783 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:09:03.478805 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:09:03.478831 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:09:03.478851 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e1cc80 +[2025-10-13 14:09:03.478872 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e1cc80, page num 0, frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e1cc80 +[2025-10-13 14:09:03.478897 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:16, frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f41d7e1cc80 +[2025-10-13 14:09:03.478923 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=16, hdr_frame=0x7f41d7e1cc80, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:09:03.478938 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=16, bp=0x50e000031120, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x428cc8 0x477b2d 0x32be83 0x1c6676 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:09:03.478970 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:09:03.478992 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:03.479009 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e1ece8, page num 1, frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:03.479029 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=6, pageNum=1, pin=1 +[2025-10-13 14:09:03.479130 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:6,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:09:03.479188 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:03.479233 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:09:03.479242 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:09:03.479314 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:6,page_num:1,lsn=0, dwb size=2 +[2025-10-13 14:09:03.479330 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:03.479389 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:6,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:09:03.479420 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e1cc80 +[2025-10-13 14:09:03.479451 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:907] >> Successfully create index +[2025-10-13 14:09:03.479468 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:09:03.479476 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:09:03.479498 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:03.479515 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:09:03.479571 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e20d50 +[2025-10-13 14:09:03.479591 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f41d7e20d50, page num 2, frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e20d50 +[2025-10-13 14:09:03.479612 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=6, pageNum=2, pin=1 +[2025-10-13 14:09:03.479672 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:6,page_num:2,lsn=0, dwb size:4 +[2025-10-13 14:09:03.479717 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e20d50 +[2025-10-13 14:09:03.479748 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:03.479788 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1462] >> set root page to 2 +[2025-10-13 14:09:03.479831 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 14:09:03.480399 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 14:09:03.480485 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:6,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:03.480554 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:6,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:09:03.480574 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:03.480621 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:6,page_num:2,lsn=0, dwb size=4 +[2025-10-13 14:09:03.480639 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e20d50 +[2025-10-13 14:09:03.480748 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:6,page_num:0,lsn=0, dwb size=4 +[2025-10-13 14:09:03.480786 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e1cc80 +[2025-10-13 14:09:03.480838 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:5,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:09:03.480850 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:03.480918 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:5,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:09:03.480940 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e18bb0 +[2025-10-13 14:09:03.480955 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:09:03.480963 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:09:03.485534 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:5,page_num:0,lsn=0 +[2025-10-13 14:09:03.485679 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:5, page_num:0, lsn=0, check_sum=435013967 +[2025-10-13 14:09:03.485831 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:6,page_num:0,lsn=0 +[2025-10-13 14:09:03.485939 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:6, page_num:0, lsn=0, check_sum=904646687 +[2025-10-13 14:09:03.485962 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:6,page_num:1,lsn=0 +[2025-10-13 14:09:03.486017 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:6, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 14:09:03.486038 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:6,page_num:2,lsn=0 +[2025-10-13 14:09:03.486054 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:6, page_num:2, lsn=0, check_sum=-1770321888 +[2025-10-13 14:09:03.486066 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:5,page_num:1,lsn=0 +[2025-10-13 14:09:03.486082 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:5, page_num:1, lsn=0, check_sum=-1198617865 +[2025-10-13 14:09:03.486098 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:09:03.486372 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:09:03.486401 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:09:03.486412 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:09:03.486627 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:04.417971 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:09:04.418054 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:09:04.418070 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:04.418079 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:09:04.418087 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:09:04.418095 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:04.418107 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:04.418113 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:04.418121 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:04.418127 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:04.418136 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:09:04.418146 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:09:04.418156 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:09:04.418176 pid:15290 tid:7f41dc4437c0 ctx:504000000750 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 14:09:04.418231 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:09:04.418294 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:04.418340 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:09:04.418366 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:09:04.418377 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e20d50 +[2025-10-13 14:09:04.418463 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:09:04.418485 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:09:04.418557 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:29.309222 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:29.309293 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-13 14:09:29.309307 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-13 14:09:29.309337 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:36.084969 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:09:36.085038 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:09:36.085056 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:09:36.085068 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:36.085082 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:09:36.085091 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:36.085098 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:09:36.085106 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:36.085117 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:09:36.085129 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:09:36.085161 pid:15290 tid:7f41dc4437c0 ctx:504000000750 WARN: create@create_index_stmt.cpp:52] >> index with name(index_id) already exists. table name=unique_table +[2025-10-13 14:09:36.085188 pid:15290 tid:7f41dc4437c0 ctx:504000000750 WARN: handle_request@resolve_stage.cpp:50] >> failed to create stmt. rc=30:SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:09:36.085201 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:09:36.085218 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:09:36.085264 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:43.632124 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:09:43.632155 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:09:43.632164 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:09:43.632171 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:09:43.632179 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:09:43.632186 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:43.632196 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:43.632201 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:43.632210 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:09:43.632217 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:09:43.632228 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:09:43.632239 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:09:43.632310 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:09:43.632363 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:43.632407 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:09:43.632432 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:09:43.632438 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:6,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f41d7e20d50 +[2025-10-13 14:09:43.632456 pid:15290 tid:7f41dc4437c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:09:43.632478 pid:15290 tid:7f41dc4437c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:09:43.632577 pid:15290 tid:7f41dc4437c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:09:47.484430 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-13 14:09:47.484543 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 14:09:47.484650 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:6,page_num:2,lsn=0, dwb size:1 +[2025-10-13 14:09:47.484716 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f41d7e20d50 +[2025-10-13 14:09:47.484828 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:6,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:09:47.484845 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ece8 +[2025-10-13 14:09:47.484915 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:6,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:09:47.484938 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e1cc80 +[2025-10-13 14:09:47.485008 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:5,page_num:1,lsn=0, dwb size:4 +[2025-10-13 14:09:47.485039 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f41d7e1ac18 +[2025-10-13 14:09:47.485119 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:5,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:09:47.485135 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f41d7e18bb0 +[2025-10-13 14:09:47.485147 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:09:47.485169 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:09:47.489871 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:5,page_num:0,lsn=0 +[2025-10-13 14:09:47.489970 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:5, page_num:0, lsn=0, check_sum=435013967 +[2025-10-13 14:09:47.490035 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:6,page_num:0,lsn=0 +[2025-10-13 14:09:47.490057 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:6, page_num:0, lsn=0, check_sum=904646687 +[2025-10-13 14:09:47.490070 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:6,page_num:1,lsn=0 +[2025-10-13 14:09:47.490118 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:6, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 14:09:47.490140 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:5,page_num:1,lsn=0 +[2025-10-13 14:09:47.490154 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:5, page_num:1, lsn=0, check_sum=-1535645241 +[2025-10-13 14:09:47.490180 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:6,page_num:2,lsn=0 +[2025-10-13 14:09:47.490196 pid:15290 tid:7f41dc4437c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:6, page_num:2, lsn=0, check_sum=-1567966270 +[2025-10-13 14:09:47.490215 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:09:47.490419 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:09:47.490442 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:09:47.490505 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e1ac18, page 1 frame_id=buffer_pool_id:5,page_num:1 +[2025-10-13 14:09:47.490571 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e18bb0, page 0 frame_id=buffer_pool_id:5,page_num:0 +[2025-10-13 14:09:47.490591 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 14:09:47.490606 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/unique_table.data. +[2025-10-13 14:09:47.490635 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:09:47.490734 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:09:47.490754 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e20d50, page 2 frame_id=buffer_pool_id:6,page_num:2 +[2025-10-13 14:09:47.490781 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e1ece8, page 1 frame_id=buffer_pool_id:6,page_num:1 +[2025-10-13 14:09:47.490828 pid:15290 tid:7f41dc4437c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f41d7e1cc80, page 0 frame_id=buffer_pool_id:6,page_num:0 +[2025-10-13 14:09:47.490843 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 14:09:47.490871 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 16:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:09:47.490891 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:09:47.490903 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:09:47.490935 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:09:47.490944 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:09:47.499736 pid:15290 tid:7f41d92146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 14:09:47.691231 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 14:09:47.708138 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 14:09:47.708288 pid:15290 tid:7f41dc4437c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-13 14:14:59.776248 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 14:14:59.781338 pid:20913 tid:7cee5e2cf7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 14:14:59.783412 pid:20913 tid:7cee5b1146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 14:14:59.787434 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.788220 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.789178 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.789889 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.790749 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.791544 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.792409 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.793169 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.793992 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.794783 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.795600 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.796525 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.797331 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.798119 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.798792 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.799414 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.800254 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.800946 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.801768 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.802913 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.803045 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:14:59.803149 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 14:14:59.805264 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=5 +[2025-10-13 14:14:59.806446 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 14:14:59.808719 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:14:59.808790 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:14:59.808835 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:14:59.809264 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:14:59.810099 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7cee59d06808 +[2025-10-13 14:14:59.810203 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d06808, page num 0, frame=frame id:buffer_pool_id:5,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7cee59d06808 +[2025-10-13 14:14:59.810335 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=5, page_num:0, lsn:0 +[2025-10-13 14:14:59.810364 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=8, hdr_frame=0x7cee59d06808, file header=pageCount:2, allocatedCount:2 +[2025-10-13 14:14:59.810455 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x14a479 0x1181f7 0x122786 0x12e1a8 0x13189b 0x514ae 0x58d31 0x4089f 0x21ca 0x228b 0x44785 +[2025-10-13 14:14:59.812549 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d08870 +[2025-10-13 14:14:59.812668 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d08870, page num 1, frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d08870 +[2025-10-13 14:14:59.812786 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=5, page_num:1, lsn:0 +[2025-10-13 14:14:59.813271 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:14:59.813337 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-13 14:14:59.813413 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:14:59.814243 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:14:59.814612 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d0a8d8 +[2025-10-13 14:14:59.814698 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d0a8d8, page num 0, frame=frame id:buffer_pool_id:6,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d0a8d8 +[2025-10-13 14:14:59.814802 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=6, page_num:0, lsn:0 +[2025-10-13 14:14:59.814826 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=9, hdr_frame=0x7cee59d0a8d8, file header=pageCount:3, allocatedCount:3 +[2025-10-13 14:14:59.814917 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e000000f20, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x42d539 0x47911d 0x32855c 0x14a479 0x1181f7 0x122786 0x12e1a8 0x13189b 0x514ae 0x58d31 0x4089f 0x21ca 0x228b 0x44785 +[2025-10-13 14:14:59.815002 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d0c940 +[2025-10-13 14:14:59.815099 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d0c940, page num 1, frame=frame id:buffer_pool_id:6,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d0c940 +[2025-10-13 14:14:59.815194 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=6, page_num:1, lsn:0 +[2025-10-13 14:14:59.815288 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:14:59.815311 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:14:59.815320 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open@bplus_tree.cpp:968] >> Successfully open index +[2025-10-13 14:14:59.815330 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open@bplus_tree.cpp:928] >> open b+tree success. filename=miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:14:59.815338 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open@bplus_tree_index.cpp:67] >> Successfully open index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:14:59.815378 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: unique_table, file: unique_table.table +[2025-10-13 14:14:59.815388 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-13 14:14:59.819248 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:5,page_num:0,lsn=0 +[2025-10-13 14:14:59.819442 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:6,page_num:0,lsn=0 +[2025-10-13 14:14:59.819474 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:6,page_num:1,lsn=0 +[2025-10-13 14:14:59.819493 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:5,page_num:1,lsn=0 +[2025-10-13 14:14:59.819547 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:6,page_num:2,lsn=0 +[2025-10-13 14:14:59.819567 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 14:14:59.819597 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 14:14:59.819662 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 14:14:59.819692 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 14:14:59.819710 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 14:15:04.544637 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:15:04.545124 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:15:04.545215 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:04.545230 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:15:04.545244 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:04.545250 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:15:04.545261 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:15:04.545283 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:04.545299 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:15:04.545305 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:15:04.545333 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:04.545345 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:15:04.545353 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:15:04.545361 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:15:04.545773 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 14:15:04.546319 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 WARN: create_table@db.cpp:158] >> unique_table has been opened before. +[2025-10-13 14:15:04.546371 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=SCHEMA_TABLE_EXIST +[2025-10-13 14:15:04.546402 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_TABLE_EXIST +[2025-10-13 14:15:04.546657 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:15:04.547048 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:15:04.547082 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:15:04.547164 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:04.547173 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:15:04.547181 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:15:04.547188 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:15:04.547322 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:15:04.547350 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:15:04.547374 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:15:04.547384 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:15:04.547396 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:15:04.547414 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:15:04.549504 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:15:04.550243 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d08870 +[2025-10-13 14:15:04.550372 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:15:04.551442 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:15:04.551574 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d0e9a8 +[2025-10-13 14:15:04.551631 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d0e9a8, page num 2, frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d0e9a8 +[2025-10-13 14:15:04.552101 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:2, file_desc:9, frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d0e9a8 +[2025-10-13 14:15:04.552198 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:15:04.552298 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: insert_entry_into_leaf_node@bplus_tree.cpp:1273] >> entry exists +[2025-10-13 14:15:04.552310 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1545] >> Failed to insert into leaf of index, rid:PageNum:1, SlotNum:3. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:15:04.552391 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:15:04.552451 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d0e9a8 +[2025-10-13 14:15:04.552496 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:15:04.552685 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d08870 +[2025-10-13 14:15:04.552822 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:15:04.552866 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: delete_record@record_manager.cpp:677] >> add free page 1 to free page list +[2025-10-13 14:15:04.552908 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:15:04.552972 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:15:10.908553 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:15:10.908596 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:15:10.908607 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:15:10.908616 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:10.908622 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:15:10.908631 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:10.908633 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:15:10.908638 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:10.908641 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:15:10.908650 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:15:10.908668 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 WARN: create@create_index_stmt.cpp:52] >> index with name(index_id) already exists. table name=unique_table +[2025-10-13 14:15:10.908673 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 WARN: handle_request@resolve_stage.cpp:50] >> failed to create stmt. rc=30:SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:15:10.908680 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:15:10.908689 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:15:10.908724 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:15:23.531617 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:96] >> SHOW +[2025-10-13 14:15:23.531670 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-13 14:15:23.532005 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:15:35.140262 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:15:35.140322 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:15:35.140429 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:35.141825 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:15:35.141897 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:15:35.141939 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:15:35.142562 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:5,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d08870 +[2025-10-13 14:15:35.142681 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:15:35.142707 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:15:35.142789 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:15:35.142890 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:15:35.142956 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:15:35.143010 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 14:15:35.143067 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:15:35.143226 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:15:48.646911 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:15:48.646975 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:15:48.647000 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:48.647014 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:15:48.647074 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 14:15:48.648968 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:5,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:15:48.649062 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:5,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d08870 +[2025-10-13 14:15:48.649261 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d08870, page 1 frame_id=buffer_pool_id:5,page_num:1 +[2025-10-13 14:15:48.649331 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d06808, page 0 frame_id=buffer_pool_id:5,page_num:0 +[2025-10-13 14:15:48.649390 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=1 +[2025-10-13 14:15:48.649502 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:5, page_num:1, lsn=0, check_sum=398060039 +[2025-10-13 14:15:48.649609 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/unique_table.data. +[2025-10-13 14:15:48.649669 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:15:48.649695 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:15:48.649812 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:6,page_num:2,lsn=0, dwb size:1 +[2025-10-13 14:15:48.649849 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:6,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d0e9a8 +[2025-10-13 14:15:48.649881 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d0e9a8, page 2 frame_id=buffer_pool_id:6,page_num:2 +[2025-10-13 14:15:48.649913 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d0c940, page 1 frame_id=buffer_pool_id:6,page_num:1 +[2025-10-13 14:15:48.649942 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d0a8d8, page 0 frame_id=buffer_pool_id:6,page_num:0 +[2025-10-13 14:15:48.649969 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=1 +[2025-10-13 14:15:48.650000 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:6, page_num:2, lsn=0, check_sum=1073833528 +[2025-10-13 14:15:48.650059 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:15:48.650087 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:15:48.650103 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:15:48.650132 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:15:48.650141 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:15:48.650169 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 14:15:48.656051 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:15:48.656482 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:15:48.656515 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:15:48.656526 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:15:48.656599 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:15:53.483748 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:15:53.483839 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:15:53.483854 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:53.483868 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:15:53.483878 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:53.483887 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:15:53.483895 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:15:53.483915 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:53.483922 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:15:53.483930 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:15:53.483941 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:15:53.483950 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:15:53.483957 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:15:53.483968 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:15:53.484006 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 14:15:53.484085 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 14:15:53.484270 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:15:53.484310 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:15:53.484324 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:15:53.484345 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=3, name=unique_table +[2025-10-13 14:15:53.484989 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 14:15:53.485143 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:15:53.485204 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d10a10 +[2025-10-13 14:15:53.485248 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d10a10, page num 0, frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d10a10 +[2025-10-13 14:15:53.485295 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:9, frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d10a10 +[2025-10-13 14:15:53.485358 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=9, hdr_frame=0x7cee59d10a10, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:15:53.485422 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e00001cc80, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x324972 0x32824e 0x145cf7 0x1104ce 0x1cad50 0x1c6782 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:15:53.485716 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 14:15:53.485737 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:15:53.485763 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 14:15:53.485783 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:3 +[2025-10-13 14:15:53.485931 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:7,page_num:0,lsn=0, dwb size:1 +[2025-10-13 14:15:53.485989 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=2, lsn=0, this=0x7cee59d10a10 +[2025-10-13 14:15:53.486026 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:15:53.486038 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:15:53.489835 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:7,page_num:0,lsn=0 +[2025-10-13 14:15:53.489965 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:7, page_num:0, lsn=0, check_sum=-1968579178 +[2025-10-13 14:15:53.489996 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:15:53.490480 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:15:53.490523 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:15:53.490534 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:15:53.490593 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:01.806928 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:16:01.806992 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:16:01.807009 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:01.807016 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:16:01.807023 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:01.807045 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:01.807076 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:01.807084 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:01.807182 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:01.807244 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:01.807262 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:01.807306 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:01.807555 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:01.807831 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:01.807899 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d12a78, page num 1, frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:01.808025 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=7, pageNum=1, pin=1 +[2025-10-13 14:16:01.808095 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:7,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:16:01.808144 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:01.808175 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=2, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:01.808226 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:01.808530 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:05.477373 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:16:05.477445 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:16:05.477456 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:16:05.477466 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:05.477474 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:16:05.477480 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:05.477669 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:05.477683 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:05.477691 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:05.477738 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:05.478040 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:16:05.478059 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:16:05.478102 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:16:05.478147 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d14ae0 +[2025-10-13 14:16:05.478184 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d14ae0, page num 0, frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d14ae0 +[2025-10-13 14:16:05.478234 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:13, frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=1, lsn=0, this=0x7cee59d14ae0 +[2025-10-13 14:16:05.478285 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=13, hdr_frame=0x7cee59d14ae0, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:16:05.478338 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e000022a20, lbt=0x4d1e0 0x5959f4 0xe1f1e 0x428cc8 0x477b2d 0x32be83 0x1c6676 0x768ab 0x6ea77 0x6f57b 0x6bd4c 0x408e8 0x21ca 0x228b 0x44785 +[2025-10-13 14:16:05.478484 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:16:05.478520 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:16:05.478547 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d16b48, page num 1, frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:16:05.478578 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=8, pageNum=1, pin=1 +[2025-10-13 14:16:05.478631 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:8,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:16:05.478685 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:16:05.478737 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:16:05.478747 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:16:05.478790 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:8,page_num:1,lsn=0, dwb size=2 +[2025-10-13 14:16:05.478811 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=2, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:16:05.478906 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:8,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:16:05.478946 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=2, lsn=0, this=0x7cee59d14ae0 +[2025-10-13 14:16:05.478972 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:907] >> Successfully create index +[2025-10-13 14:16:05.479005 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:16:05.479017 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:16:05.479050 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:05.479093 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:05.479271 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:8,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:05.479358 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7cee59d18bb0, page num 2, frame=frame id:buffer_pool_id:8,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:05.479396 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=8, pageNum=2, pin=1 +[2025-10-13 14:16:05.479477 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:8,page_num:2,lsn=0, dwb size:4 +[2025-10-13 14:16:05.479623 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:05.479739 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:16:05.479806 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1462] >> set root page to 2 +[2025-10-13 14:16:05.479860 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 14:16:05.480377 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 14:16:05.480419 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:8,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:16:05.480487 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:8,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:16:05.480525 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:16:05.480589 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:8,page_num:2,lsn=0, dwb size=4 +[2025-10-13 14:16:05.480611 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:05.480674 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:8,page_num:0,lsn=0, dwb size=4 +[2025-10-13 14:16:05.480689 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=2, lsn=0, this=0x7cee59d14ae0 +[2025-10-13 14:16:05.480743 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:7,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:16:05.480758 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:05.480818 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:7,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:16:05.480838 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=2, lsn=0, this=0x7cee59d10a10 +[2025-10-13 14:16:05.480848 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:16:05.480864 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:16:05.486076 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:7,page_num:0,lsn=0 +[2025-10-13 14:16:05.486181 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:7, page_num:0, lsn=0, check_sum=-912993664 +[2025-10-13 14:16:05.486211 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:8,page_num:2,lsn=0 +[2025-10-13 14:16:05.486274 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:8, page_num:2, lsn=0, check_sum=-1770321888 +[2025-10-13 14:16:05.486299 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:8,page_num:0,lsn=0 +[2025-10-13 14:16:05.486329 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:8, page_num:0, lsn=0, check_sum=1763154353 +[2025-10-13 14:16:05.486347 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:8,page_num:1,lsn=0 +[2025-10-13 14:16:05.486366 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:8, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 14:16:05.486384 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:7,page_num:1,lsn=0 +[2025-10-13 14:16:05.486400 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:7, page_num:1, lsn=0, check_sum=-1198617865 +[2025-10-13 14:16:05.486419 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:16:05.486566 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:16:05.486588 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:16:05.486596 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:16:05.486642 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:11.552637 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:16:11.552697 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:16:11.552710 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:11.552719 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:16:11.552726 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:11.552745 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:11.552773 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:11.552784 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:11.552793 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:11.552798 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:11.552805 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:11.552830 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:11.552944 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:11.553036 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:11.553094 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:11.553156 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:16:11.553190 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:8,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:11.553265 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:16:11.553341 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:16:11.553464 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:12.795001 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:16:12.795085 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:16:12.795100 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:12.795107 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:16:12.795113 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:12.795120 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:12.795132 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:12.795138 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:12.795147 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:12.795154 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:12.795174 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:12.795183 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:12.795241 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:12.795282 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:12.795308 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:12.795334 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:16:12.795343 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:8,page_num:2, dirty=1, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:12.795356 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:16:12.795378 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:16:12.795485 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:16.332753 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:16:16.332837 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:16:16.332850 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:16.332860 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:16:16.332868 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:16.332875 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:16.332884 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:16.332890 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:16.332910 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:16.332919 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:16.332933 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:16.332955 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:16.333067 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:16.333161 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:16.333265 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:16.333327 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:16:16.333346 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:8,page_num:2, dirty=1, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:16.333378 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:16:16.333423 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:16:16.333527 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:34.901788 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:16:34.901855 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:16:34.901874 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:34.902214 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:34.902448 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:16:34.902502 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:16:34.902882 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:34.902956 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:34.902977 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:16:34.903100 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:16:34.903481 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:16:34.903579 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 14:16:34.903645 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 14:16:34.903669 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:16:34.903710 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 14:16:34.903733 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 14:16:34.903827 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:44.174572 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:16:44.174631 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:16:44.174645 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:16:44.174655 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:44.174664 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:16:44.174675 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:44.174684 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:44.174692 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:44.174698 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:44.174725 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:44.174849 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 WARN: create@create_index_stmt.cpp:52] >> index with name(index_id) already exists. table name=unique_table +[2025-10-13 14:16:44.174924 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 WARN: handle_request@resolve_stage.cpp:50] >> failed to create stmt. rc=30:SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:16:44.174954 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:16:44.174975 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:16:44.175029 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:47.718788 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:16:47.718874 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:16:47.718893 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:47.718901 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:16:47.718907 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:47.718954 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:47.718985 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:47.718994 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:47.719017 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:47.719026 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:47.719082 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:47.719103 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:47.719214 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:47.719299 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:47.719349 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:47.719407 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:16:47.719419 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:8,page_num:2, dirty=1, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:47.719449 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:16:47.719495 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:16:47.719590 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:51.207573 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:16:51.207607 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:16:51.207619 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:51.207625 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:16:51.207637 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:16:51.207644 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:51.207667 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:51.207676 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:51.207687 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:16:51.207693 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:16:51.207701 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:16:51.207717 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:16:51.207831 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:51.208015 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:51.208095 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:51.208149 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:16:51.208172 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:8,page_num:2, dirty=1, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:16:51.208224 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:16:51.208256 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1549] >> insert entry success +[2025-10-13 14:16:51.208402 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:16:53.218965 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:16:53.219058 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:16:53.219074 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:16:53.219229 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:16:53.219263 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:16:53.219290 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:16:53.219348 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=1, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:16:53.219390 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:16:53.219406 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:16:53.219463 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:16:53.219519 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:16:53.219563 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 14:16:53.219597 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 14:16:53.219620 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:16:53.219640 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 14:16:53.219710 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 14:16:53.219770 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:4 +[2025-10-13 14:16:53.219792 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 14:16:53.219824 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:5 +[2025-10-13 14:16:53.219844 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:16:53.219910 pid:20913 tid:7cee5e2cf7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:17:05.641191 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-13 14:17:05.641277 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 14:17:05.641499 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:8,page_num:2,lsn=0, dwb size:1 +[2025-10-13 14:17:05.641669 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:2, dirty=0, pin=1, lsn=0, this=0x7cee59d18bb0 +[2025-10-13 14:17:05.641798 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:8,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:17:05.641870 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d16b48 +[2025-10-13 14:17:05.641928 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:8,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:17:05.641957 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=2, lsn=0, this=0x7cee59d14ae0 +[2025-10-13 14:17:05.642033 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:7,page_num:1,lsn=0, dwb size:4 +[2025-10-13 14:17:05.642083 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7cee59d12a78 +[2025-10-13 14:17:05.642211 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:7,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:17:05.642282 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=2, lsn=0, this=0x7cee59d10a10 +[2025-10-13 14:17:05.642304 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:17:05.642342 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:17:05.647878 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:7,page_num:0,lsn=0 +[2025-10-13 14:17:05.647972 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:7, page_num:0, lsn=0, check_sum=-912993664 +[2025-10-13 14:17:05.648005 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:7,page_num:1,lsn=0 +[2025-10-13 14:17:05.648039 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:7, page_num:1, lsn=0, check_sum=2114290639 +[2025-10-13 14:17:05.648057 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:8,page_num:0,lsn=0 +[2025-10-13 14:17:05.648074 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:8, page_num:0, lsn=0, check_sum=1763154353 +[2025-10-13 14:17:05.648099 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:8,page_num:1,lsn=0 +[2025-10-13 14:17:05.648110 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:8, page_num:1, lsn=0, check_sum=-1063137841 +[2025-10-13 14:17:05.648121 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:8,page_num:2,lsn=0 +[2025-10-13 14:17:05.648134 pid:20913 tid:7cee5e2cf7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:8, page_num:2, lsn=0, check_sum=-749264134 +[2025-10-13 14:17:05.648153 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:17:05.648379 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:17:05.648421 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:17:05.648463 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d12a78, page 1 frame_id=buffer_pool_id:7,page_num:1 +[2025-10-13 14:17:05.648546 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d10a10, page 0 frame_id=buffer_pool_id:7,page_num:0 +[2025-10-13 14:17:05.648593 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 14:17:05.648609 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table.data. +[2025-10-13 14:17:05.648627 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:17:05.648640 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:17:05.648683 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d18bb0, page 2 frame_id=buffer_pool_id:8,page_num:2 +[2025-10-13 14:17:05.648739 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d16b48, page 1 frame_id=buffer_pool_id:8,page_num:1 +[2025-10-13 14:17:05.648756 pid:20913 tid:7cee5e2cf7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7cee59d14ae0, page 0 frame_id=buffer_pool_id:8,page_num:0 +[2025-10-13 14:17:05.648771 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 14:17:05.648782 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:17:05.648819 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:17:05.648853 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:17:05.648897 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:17:05.648911 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:17:05.655248 pid:20913 tid:7cee5b1146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 14:17:05.849157 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 14:17:05.865034 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 14:17:05.865244 pid:20913 tid:7cee5e2cf7c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-13 14:19:47.704865 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 14:19:47.705957 pid:26235 tid:7c0d61f1a7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 14:19:47.706822 pid:26235 tid:7c0d5ed146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 14:19:47.708233 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.708778 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.709331 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.709805 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.710443 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.710965 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.711462 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.711951 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.712473 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.712950 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.713410 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.713947 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.714660 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.715261 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.715833 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.716370 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.716894 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.717345 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.717792 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.718288 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.718333 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 14:19:47.718341 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 14:19:47.719100 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=5 +[2025-10-13 14:19:47.719335 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 14:19:47.720470 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:19:47.720513 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:19:47.720530 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:19:47.720893 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:19:47.721042 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7c0d5d906808 +[2025-10-13 14:19:47.721129 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d906808, page num 0, frame=frame id:buffer_pool_id:7,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7c0d5d906808 +[2025-10-13 14:19:47.721271 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=7, page_num:0, lsn:0 +[2025-10-13 14:19:47.721303 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=8, hdr_frame=0x7c0d5d906808, file header=pageCount:2, allocatedCount:2 +[2025-10-13 14:19:47.721366 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5969b4 0xe1bae 0x3246f2 0x327fce 0x14a109 0x117e87 0x122416 0x12de38 0x13152b 0x5113e 0x589c1 0x4052f 0x21ca 0x228b 0x44415 +[2025-10-13 14:19:47.723150 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d908870 +[2025-10-13 14:19:47.723301 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d908870, page num 1, frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d908870 +[2025-10-13 14:19:47.723407 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=7, page_num:1, lsn:0 +[2025-10-13 14:19:47.723441 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:19:47.723498 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-13 14:19:47.723530 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:19:47.723690 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:19:47.723910 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d90a8d8 +[2025-10-13 14:19:47.723997 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d90a8d8, page num 0, frame=frame id:buffer_pool_id:8,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d90a8d8 +[2025-10-13 14:19:47.724084 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=8, page_num:0, lsn:0 +[2025-10-13 14:19:47.724113 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=9, hdr_frame=0x7c0d5d90a8d8, file header=pageCount:3, allocatedCount:3 +[2025-10-13 14:19:47.724178 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e000000f20, lbt=0x4d1e0 0x5969b4 0xe1bae 0x42d2f9 0x47a0dd 0x3282dc 0x14a109 0x117e87 0x122416 0x12de38 0x13152b 0x5113e 0x589c1 0x4052f 0x21ca 0x228b 0x44415 +[2025-10-13 14:19:47.724307 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d90c940 +[2025-10-13 14:19:47.724396 pid:26235 tid:7c0d61f1a7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d90c940, page num 1, frame=frame id:buffer_pool_id:8,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d90c940 +[2025-10-13 14:19:47.724529 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=8, page_num:1, lsn:0 +[2025-10-13 14:19:47.724657 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:19:47.724691 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:19:47.724705 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open@bplus_tree.cpp:969] >> Successfully open index +[2025-10-13 14:19:47.724713 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open@bplus_tree.cpp:929] >> open b+tree success. filename=miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:19:47.724725 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open@bplus_tree_index.cpp:67] >> Successfully open index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:19:47.724949 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: unique_table, file: unique_table.table +[2025-10-13 14:19:47.724989 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-13 14:19:48.784907 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:7,page_num:0,lsn=0 +[2025-10-13 14:19:48.785047 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:7,page_num:1,lsn=0 +[2025-10-13 14:19:48.785080 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:8,page_num:0,lsn=0 +[2025-10-13 14:19:48.785105 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:8,page_num:1,lsn=0 +[2025-10-13 14:19:48.785137 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:8,page_num:2,lsn=0 +[2025-10-13 14:19:48.785172 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 14:19:48.785202 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 14:19:48.785259 pid:26235 tid:7c0d61f1a7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 14:19:48.785275 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 14:19:48.785311 pid:26235 tid:7c0d61f1a7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 14:19:55.655184 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:19:55.655331 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:19:55.655393 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:19:55.656037 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:19:55.656132 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:19:55.656160 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:19:55.656515 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:7,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d908870 +[2025-10-13 14:19:55.656597 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:19:55.656624 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:19:55.656730 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:19:55.656914 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:1 +[2025-10-13 14:19:55.656974 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 2, 1, 1] +[2025-10-13 14:19:55.657031 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:2 +[2025-10-13 14:19:55.657088 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:19:55.657155 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:3 +[2025-10-13 14:19:55.657209 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 14:19:55.657259 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:4 +[2025-10-13 14:19:55.657362 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 2, 1] +[2025-10-13 14:19:55.657418 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:5 +[2025-10-13 14:19:55.657464 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 3, 2, 1] +[2025-10-13 14:19:55.657588 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:03.026673 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:20:03.026725 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:20:03.026741 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:03.026841 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 14:20:03.027717 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d908870, page 1 frame_id=buffer_pool_id:7,page_num:1 +[2025-10-13 14:20:03.027840 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d906808, page 0 frame_id=buffer_pool_id:7,page_num:0 +[2025-10-13 14:20:03.027910 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 14:20:03.028288 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/unique_table.data. +[2025-10-13 14:20:03.028458 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:20:03.028515 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:20:03.028588 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d90c940, page 1 frame_id=buffer_pool_id:8,page_num:1 +[2025-10-13 14:20:03.028657 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d90a8d8, page 0 frame_id=buffer_pool_id:8,page_num:0 +[2025-10-13 14:20:03.028712 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 14:20:03.028815 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:20:03.028946 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:20:03.029017 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:20:03.029055 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:20:03.029076 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:20:03.029096 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 14:20:03.035655 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:20:03.036358 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:20:03.036437 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:20:03.036455 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:20:03.036544 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:07.247732 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:20:07.247830 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:20:07.247846 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.247854 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:20:07.247907 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.247928 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:20:07.247942 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:07.247968 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.247981 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:20:07.247990 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:07.248013 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.248018 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:20:07.248027 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:20:07.248036 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:20:07.248102 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 14:20:07.248224 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 14:20:07.248422 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:20:07.248442 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:20:07.248456 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:20:07.248473 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=4, name=unique_table +[2025-10-13 14:20:07.249038 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 14:20:07.249165 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:20:07.249319 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:9,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d90e9a8 +[2025-10-13 14:20:07.249387 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d90e9a8, page num 0, frame=frame id:buffer_pool_id:9,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d90e9a8 +[2025-10-13 14:20:07.249528 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:9, frame=frame id:buffer_pool_id:9,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d90e9a8 +[2025-10-13 14:20:07.249610 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=9, hdr_frame=0x7c0d5d90e9a8, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:20:07.249684 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e000012f00, lbt=0x4d1e0 0x5969b4 0xe1bae 0x3246f2 0x327fce 0x145987 0x11015e 0x1ca9e0 0x1c6412 0x7653b 0x6e707 0x6f20b 0x6b9dc 0x40578 0x21ca 0x228b 0x44415 +[2025-10-13 14:20:07.249840 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 14:20:07.249861 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:20:07.249879 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 14:20:07.249909 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:4 +[2025-10-13 14:20:07.250043 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:9,page_num:0,lsn=0, dwb size:1 +[2025-10-13 14:20:07.250118 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:9,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d90e9a8 +[2025-10-13 14:20:07.250240 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:20:07.250262 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:20:07.257420 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:9,page_num:0,lsn=0 +[2025-10-13 14:20:07.257569 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:9, page_num:0, lsn=0, check_sum=-699034568 +[2025-10-13 14:20:07.257632 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:20:07.257991 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:20:07.258037 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:20:07.258049 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:20:07.258128 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:07.258403 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:20:07.258435 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:20:07.258447 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.258455 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:20:07.258461 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:20:07.258471 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:07.258492 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:07.258500 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:07.258520 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:07.258534 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:07.258554 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:20:07.258578 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:20:07.258661 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:20:07.258753 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:07.258802 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d910a10, page num 1, frame=frame id:buffer_pool_id:9,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:07.258841 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=9, pageNum=1, pin=1 +[2025-10-13 14:20:07.258902 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:9,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:20:07.258937 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:9,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:07.259134 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=0, pin=2, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:07.259229 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:07.259402 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:07.264437 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:20:07.264517 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:20:07.264528 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:20:07.264540 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.264553 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:20:07.264564 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.264572 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:20:07.264581 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:07.264590 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:20:07.264620 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:20:07.264635 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:20:07.264678 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 14:20:07.265065 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:20:07.265091 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:20:07.265136 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:20:07.265211 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:10,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d912a78 +[2025-10-13 14:20:07.265301 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d912a78, page num 0, frame=frame id:buffer_pool_id:10,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d912a78 +[2025-10-13 14:20:07.265371 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:13, frame=frame id:buffer_pool_id:10,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d912a78 +[2025-10-13 14:20:07.265441 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=13, hdr_frame=0x7c0d5d912a78, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:20:07.265525 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e000013b40, lbt=0x4d1e0 0x5969b4 0xe1bae 0x428ab8 0x478aed 0x32bc0b 0x1c6306 0x7653b 0x6e707 0x6f20b 0x6b9dc 0x40578 0x21ca 0x228b 0x44415 +[2025-10-13 14:20:07.265612 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:20:07.265667 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:10,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d914ae0 +[2025-10-13 14:20:07.265748 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d914ae0, page num 1, frame=frame id:buffer_pool_id:10,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d914ae0 +[2025-10-13 14:20:07.265837 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=10, pageNum=1, pin=1 +[2025-10-13 14:20:07.265948 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:10,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:20:07.266009 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d914ae0 +[2025-10-13 14:20:07.266117 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:20:07.266133 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:20:07.266211 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:10,page_num:1,lsn=0, dwb size=2 +[2025-10-13 14:20:07.266242 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:1, dirty=0, pin=2, lsn=0, this=0x7c0d5d914ae0 +[2025-10-13 14:20:07.266348 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:10,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:20:07.266416 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d912a78 +[2025-10-13 14:20:07.266438 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:908] >> Successfully create index +[2025-10-13 14:20:07.266467 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:20:07.266475 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:20:07.266522 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:07.266642 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:07.266780 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:07.266833 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d916b48, page num 2, frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:07.266889 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=10, pageNum=2, pin=1 +[2025-10-13 14:20:07.266948 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:10,page_num:2,lsn=0, dwb size:4 +[2025-10-13 14:20:07.266998 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:07.267075 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d914ae0 +[2025-10-13 14:20:07.267200 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1475] >> set root page to 2 +[2025-10-13 14:20:07.267363 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 14:20:07.268489 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 14:20:07.268547 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d914ae0 +[2025-10-13 14:20:07.268652 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:10,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:20:07.268699 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d914ae0 +[2025-10-13 14:20:07.268833 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:10,page_num:2,lsn=0, dwb size=4 +[2025-10-13 14:20:07.268878 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:07.268933 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:10,page_num:0,lsn=0, dwb size=4 +[2025-10-13 14:20:07.268946 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d912a78 +[2025-10-13 14:20:07.269010 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:9,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:20:07.269029 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:9,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:07.269094 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:9,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:20:07.269116 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:9,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d90e9a8 +[2025-10-13 14:20:07.269130 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:20:07.269140 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:20:07.273572 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:9,page_num:0,lsn=0 +[2025-10-13 14:20:07.273685 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:9, page_num:0, lsn=0, check_sum=-1788306642 +[2025-10-13 14:20:07.273730 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:10,page_num:0,lsn=0 +[2025-10-13 14:20:07.273755 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:10, page_num:0, lsn=0, check_sum=-1183939970 +[2025-10-13 14:20:07.273774 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:10,page_num:1,lsn=0 +[2025-10-13 14:20:07.273795 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:10, page_num:1, lsn=0, check_sum=-1119116183 +[2025-10-13 14:20:07.273849 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:10,page_num:2,lsn=0 +[2025-10-13 14:20:07.273871 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:10, page_num:2, lsn=0, check_sum=-1770321888 +[2025-10-13 14:20:07.273936 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:9,page_num:1,lsn=0 +[2025-10-13 14:20:07.273972 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:9, page_num:1, lsn=0, check_sum=-1198617865 +[2025-10-13 14:20:07.274019 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:20:07.274209 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:20:07.274232 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:20:07.274241 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:20:07.274312 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:10.549370 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:20:10.549401 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:20:10.549413 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:10.549420 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:20:10.549431 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:20:10.549438 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:10.549452 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:10.549459 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:10.549477 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:10.549488 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:10.549498 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:20:10.549529 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:20:10.549605 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:20:10.549682 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:10.549747 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:10.549808 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:20:10.549865 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:10.549923 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:20:10.549948 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry_into_leaf_node@bplus_tree.cpp:1277] >> unique index: entry exists, reject insert +[2025-10-13 14:20:10.549957 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1558] >> Failed to insert into leaf of index, rid:PageNum:1, SlotNum:1. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:20:10.550032 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:20:10.550065 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:10.550094 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_entry_internal@bplus_tree.cpp:1791] >> no data need to remove +[2025-10-13 14:20:10.550102 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:20:10.550137 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 ERROR: insert_record@heap_table_engine.cpp:52] >> Failed to rollback index data when insert index entries failed. table name=unique_table, rc=20:RECORD_NOT_EXIST +[2025-10-13 14:20:10.550191 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:10.550235 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:10.550258 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_record@record_manager.cpp:677] >> add free page 1 to free page list +[2025-10-13 14:20:10.550270 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:20:10.550316 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:22.582866 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-13 14:20:22.582900 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-13 14:20:22.582916 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:22.583260 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:20:22.583305 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-13 14:20:22.583317 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-13 14:20:22.583386 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:22.583512 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:22.583529 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-13 14:20:22.583589 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, 1, 1] +[2025-10-13 14:20:22.583655 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:26.987438 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:20:26.987528 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:20:26.987541 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:20:26.987564 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:26.987572 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:20:26.987581 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:26.987588 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:20:26.987600 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:26.987606 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:20:26.987619 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:20:26.987652 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: create@create_index_stmt.cpp:52] >> index with name(index_id) already exists. table name=unique_table +[2025-10-13 14:20:26.987664 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: handle_request@resolve_stage.cpp:50] >> failed to create stmt. rc=30:SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:20:26.987673 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:20:26.987684 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_INDEX_NAME_REPEAT +[2025-10-13 14:20:26.987779 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:31.494692 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:20:31.494754 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:20:31.494765 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:31.494775 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:20:31.494784 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:20:31.494792 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:31.494803 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:31.494812 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:31.494822 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:31.494829 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:31.494837 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:20:31.494849 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:20:31.494918 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:20:31.494991 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:31.495023 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:31.495056 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:20:31.495069 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:31.495094 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:20:31.495122 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry_into_leaf_node@bplus_tree.cpp:1277] >> unique index: entry exists, reject insert +[2025-10-13 14:20:31.495134 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1558] >> Failed to insert into leaf of index, rid:PageNum:1, SlotNum:1. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:20:31.495166 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:20:31.495177 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:31.495197 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_entry_internal@bplus_tree.cpp:1791] >> no data need to remove +[2025-10-13 14:20:31.495204 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:20:31.495214 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 ERROR: insert_record@heap_table_engine.cpp:52] >> Failed to rollback index data when insert index entries failed. table name=unique_table, rc=20:RECORD_NOT_EXIST +[2025-10-13 14:20:31.495259 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:31.495277 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:31.495296 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_record@record_manager.cpp:677] >> add free page 1 to free page list +[2025-10-13 14:20:31.495304 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:20:31.495345 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:20:36.272229 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:20:36.272325 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:20:36.272339 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:20:36.272346 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:20:36.272355 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:20:36.272361 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:36.272371 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:36.272377 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:36.272389 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:20:36.272395 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:20:36.272402 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:20:36.272411 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:20:36.272475 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:20:36.272532 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:20:36.272562 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:20:36.272588 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:20:36.272608 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:20:36.272640 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:20:36.272670 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1562] >> insert entry success +[2025-10-13 14:20:36.272792 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:21:00.725694 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:21:00.725776 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:21:00.725793 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:21:00.725900 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:21:00.725916 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:21:00.725947 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:21:00.726103 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:21:00.726166 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:21:00.726266 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:21:00.726312 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:21:00.726326 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:21:00.726509 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:21:00.726862 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:21:00.727159 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:21:00.727268 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:21:00.727338 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:21:00.727355 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=1, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:21:00.727384 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:21:00.727407 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1562] >> insert entry success +[2025-10-13 14:21:00.727568 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:21:03.787702 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:21:03.787794 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:21:03.787809 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:21:03.787817 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:21:03.787825 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:21:03.787837 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:21:03.787848 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:21:03.787868 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:21:03.787877 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:21:03.787884 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:21:03.787892 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:21:03.787902 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:21:03.787976 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:21:03.788054 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:21:03.788099 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:21:03.788147 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:21:03.788158 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=1, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:21:03.788178 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:21:03.788232 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry_into_leaf_node@bplus_tree.cpp:1277] >> unique index: entry exists, reject insert +[2025-10-13 14:21:03.788259 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1558] >> Failed to insert into leaf of index, rid:PageNum:1, SlotNum:3. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:21:03.788297 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:21:03.788309 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:10,page_num:2, dirty=1, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:21:03.788353 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:21:03.788377 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_entry_internal@bplus_tree.cpp:1791] >> no data need to remove +[2025-10-13 14:21:03.788389 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 ERROR: insert_record@heap_table_engine.cpp:52] >> Failed to rollback index data when insert index entries failed. table name=unique_table, rc=20:RECORD_NOT_EXIST +[2025-10-13 14:21:03.788476 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:9,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:21:03.788589 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:21:03.788609 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_record@record_manager.cpp:677] >> add free page 1 to free page list +[2025-10-13 14:21:03.788618 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:21:03.788672 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS diff --git a/src/observer/storage/index/bplus_tree.cpp b/src/observer/storage/index/bplus_tree.cpp index 606135ebc..eb0432d60 100644 --- a/src/observer/storage/index/bplus_tree.cpp +++ b/src/observer/storage/index/bplus_tree.cpp @@ -29,16 +29,16 @@ using namespace common; */ #define FIRST_INDEX_PAGE 1 -int calc_internal_page_capacity(int attr_length) +int calc_internal_page_capacity(int key_length) { - int item_size = attr_length + sizeof(RID) + sizeof(PageNum); + int item_size = key_length + sizeof(PageNum); int capacity = ((int)BP_PAGE_DATA_SIZE - InternalIndexNode::HEADER_SIZE) / item_size; return capacity; } -int calc_leaf_page_capacity(int attr_length) +int calc_leaf_page_capacity(int key_length) { - int item_size = attr_length + sizeof(RID) + sizeof(RID); + int item_size = key_length + sizeof(RID); int capacity = ((int)BP_PAGE_DATA_SIZE - LeafIndexNode::HEADER_SIZE) / item_size; return capacity; } @@ -798,6 +798,7 @@ RC BplusTreeHandler::create(LogHandler &log_handler, const char *file_name, AttrType attr_type, int attr_length, + bool unique, int internal_max_size /* = -1*/, int leaf_max_size /* = -1 */) { @@ -817,7 +818,7 @@ RC BplusTreeHandler::create(LogHandler &log_handler, } LOG_INFO("Successfully open index file %s.", file_name); - rc = this->create(log_handler, *bp, attr_type, attr_length, internal_max_size, leaf_max_size); + rc = this->create(log_handler, *bp, attr_type, attr_length, unique, internal_max_size, leaf_max_size); if (OB_FAIL(rc)) { bpm.close_file(file_name); return rc; @@ -831,18 +832,21 @@ RC BplusTreeHandler::create(LogHandler &log_handler, DiskBufferPool &buffer_pool, AttrType attr_type, int attr_length, + bool unique, int internal_max_size /* = -1 */, int leaf_max_size /* = -1 */) { + int key_length = unique ? attr_length : attr_length + sizeof(RID); if (internal_max_size < 0) { - internal_max_size = calc_internal_page_capacity(attr_length); + internal_max_size = calc_internal_page_capacity(key_length); } if (leaf_max_size < 0) { - leaf_max_size = calc_leaf_page_capacity(attr_length); + leaf_max_size = calc_leaf_page_capacity(key_length); } log_handler_ = &log_handler; disk_buffer_pool_ = &buffer_pool; + unique_ = unique; RC rc = RC::SUCCESS; @@ -865,11 +869,12 @@ RC BplusTreeHandler::create(LogHandler &log_handler, char *pdata = header_frame->data(); IndexFileHeader *file_header = (IndexFileHeader *)pdata; file_header->attr_length = attr_length; - file_header->key_length = attr_length + sizeof(RID); + file_header->key_length = unique ? attr_length : attr_length + sizeof(RID); file_header->attr_type = attr_type; file_header->internal_max_size = internal_max_size; file_header->leaf_max_size = leaf_max_size; file_header->root_page = BP_INVALID_PAGE_NUM; + file_header->unique = unique; // 取消记录日志的原因请参考下面的sync调用的地方。 // mtr.logger().init_header_page(header_frame, *file_header); @@ -947,6 +952,7 @@ RC BplusTreeHandler::open(LogHandler &log_handler, DiskBufferPool &buffer_pool) header_dirty_ = false; disk_buffer_pool_ = &buffer_pool; log_handler_ = &log_handler; + unique_ = file_header_.unique; mem_pool_item_ = make_unique("b+tree"); if (mem_pool_item_->init(file_header_.key_length) < 0) { @@ -958,8 +964,8 @@ RC BplusTreeHandler::open(LogHandler &log_handler, DiskBufferPool &buffer_pool) // close old page_handle buffer_pool.unpin_page(frame); - key_comparator_.init(file_header_.attr_type, file_header_.attr_length); - key_printer_.init(file_header_.attr_type, file_header_.attr_length); + key_comparator_.init(file_header_.attr_type, file_header_.attr_length, unique_); + key_printer_.init(file_header_.attr_type, file_header_.attr_length, unique_); LOG_INFO("Successfully open index"); return RC::SUCCESS; } @@ -1262,17 +1268,28 @@ RC BplusTreeHandler::crabing_protocal_fetch_page( RC BplusTreeHandler::insert_entry_into_leaf_node(BplusTreeMiniTransaction &mtr, Frame *frame, const char *key, const RID *rid) { LeafIndexNodeHandler leaf_node(mtr, file_header_, frame); - bool exists = false; // 该数据是否已经存在指定的叶子节点中了 - int insert_position = leaf_node.lookup(key_comparator_, key, &exists); - if (exists) { - LOG_TRACE("entry exists"); - return RC::RECORD_DUPLICATE_KEY; + int insert_position = leaf_node.lookup(key_comparator_, key, nullptr); + if (unique_) { + for (int i = 0; i < leaf_node.size(); i++) { + Value v1(file_header_.attr_type, const_cast(leaf_node.key_at(i)), file_header_.attr_length); + Value v2(file_header_.attr_type, const_cast(key), file_header_.attr_length); + if (v1.compare(v2) == 0) { + LOG_TRACE("unique index: entry exists, reject insert"); + return RC::RECORD_DUPLICATE_KEY; + } + } + } else { + // 非unique模式下,属性值+RID都相同才拒绝 + bool exists = false; + leaf_node.lookup(key_comparator_, key, &exists); + if (exists) { + LOG_TRACE("non-unique index: entry exists, reject insert"); + return RC::RECORD_DUPLICATE_KEY; + } } - if (leaf_node.size() < leaf_node.max_size()) { leaf_node.insert(insert_position, key, (const char *)rid); frame->mark_dirty(); - // disk_buffer_pool_->unpin_page(frame); // unpin pages 由latch memo 来操作 return RC::SUCCESS; } @@ -1437,8 +1454,9 @@ RC BplusTreeHandler::recover_init_header_page(BplusTreeMiniTransaction &mtr, Fra header_dirty_ = false; frame->mark_dirty(); - key_comparator_.init(file_header_.attr_type, file_header_.attr_length); - key_printer_.init(file_header_.attr_type, file_header_.attr_length); + unique_ = file_header_.unique; + key_comparator_.init(file_header_.attr_type, file_header_.attr_length, unique_); + key_printer_.init(file_header_.attr_type, file_header_.attr_length, unique_); return RC::SUCCESS; } @@ -1492,7 +1510,9 @@ MemPoolItem::item_unique_ptr BplusTreeHandler::make_key(const char *user_key, co return nullptr; } memcpy(static_cast(key.get()), user_key, file_header_.attr_length); - memcpy(static_cast(key.get()) + file_header_.attr_length, &rid, sizeof(rid)); + if (!unique_) { + memcpy(static_cast(key.get()) + file_header_.attr_length, &rid, sizeof(rid)); + } return key; } diff --git a/src/observer/storage/index/bplus_tree.h b/src/observer/storage/index/bplus_tree.h index dd7520564..7b353be7a 100644 --- a/src/observer/storage/index/bplus_tree.h +++ b/src/observer/storage/index/bplus_tree.h @@ -89,14 +89,17 @@ class AttrComparator class KeyComparator { public: - void init(AttrType type, int length) { attr_comparator_.init(type, length); } + void init(AttrType type, int length, bool unique = false) { + attr_comparator_.init(type, length); + unique_ = unique; + } const AttrComparator &attr_comparator() const { return attr_comparator_; } int operator()(const char *v1, const char *v2) const { int result = attr_comparator_(v1, v2); - if (result != 0) { + if (result != 0 || unique_) { return result; } @@ -107,6 +110,7 @@ class KeyComparator private: AttrComparator attr_comparator_; + bool unique_ = false; }; /** @@ -142,22 +146,28 @@ class AttrPrinter class KeyPrinter { public: - void init(AttrType type, int length) { attr_printer_.init(type, length); } + void init(AttrType type, int length, bool unique = false) { + attr_printer_.init(type, length); + unique_ = unique; + } const AttrPrinter &attr_printer() const { return attr_printer_; } string operator()(const char *v) const { stringstream ss; - ss << "{key:" << attr_printer_(v) << ","; - - const RID *rid = (const RID *)(v + attr_printer_.attr_length()); - ss << "rid:{" << rid->to_string() << "}}"; + ss << "{key:" << attr_printer_(v); + if (!unique_) { + const RID *rid = (const RID *)(v + attr_printer_.attr_length()); + ss << ",rid:{" << rid->to_string() << "}"; + } + ss << "}"; return ss.str(); } private: AttrPrinter attr_printer_; + bool unique_ = false; }; /** @@ -179,6 +189,7 @@ struct IndexFileHeader int32_t attr_length; ///< 键值的长度 int32_t key_length; ///< attr length + sizeof(RID) AttrType attr_type; ///< 键值的类型 + bool unique; ///< 是否是唯一索引 const string to_string() const { @@ -189,7 +200,8 @@ struct IndexFileHeader << "attr_type:" << attr_type_to_string(attr_type) << "," << "root_page:" << root_page << "," << "internal_max_size:" << internal_max_size << "," - << "leaf_max_size:" << leaf_max_size << ";"; + << "leaf_max_size:" << leaf_max_size << "," + << "unique:" << unique << ";"; return ss.str(); } @@ -456,12 +468,13 @@ class BplusTreeHandler * @param file_name 文件名 * @param attr_type 属性类型 * @param attr_length 属性长度 + * @param unique 是否唯一索引 * @param internal_max_size 内部节点最大大小 * @param leaf_max_size 叶子节点最大大小 */ - RC create(LogHandler &log_handler, BufferPoolManager &bpm, const char *file_name, AttrType attr_type, int attr_length, + RC create(LogHandler &log_handler, BufferPoolManager &bpm, const char *file_name, AttrType attr_type, int attr_length, bool unique, int internal_max_size = -1, int leaf_max_size = -1); - RC create(LogHandler &log_handler, DiskBufferPool &buffer_pool, AttrType attr_type, int attr_length, + RC create(LogHandler &log_handler, DiskBufferPool &buffer_pool, AttrType attr_type, int attr_length, bool unique, int internal_max_size = -1, int leaf_max_size = -1); /** @@ -647,6 +660,7 @@ class BplusTreeHandler KeyComparator key_comparator_; KeyPrinter key_printer_; + bool unique_ = false; unique_ptr mem_pool_item_; diff --git a/src/observer/storage/index/bplus_tree_index.cpp b/src/observer/storage/index/bplus_tree_index.cpp index 1b181c2df..e194e4d51 100644 --- a/src/observer/storage/index/bplus_tree_index.cpp +++ b/src/observer/storage/index/bplus_tree_index.cpp @@ -30,7 +30,7 @@ RC BplusTreeIndex::create(Table *table, const char *file_name, const IndexMeta & Index::init(index_meta, field_meta); BufferPoolManager &bpm = table->db()->buffer_pool_manager(); - RC rc = index_handler_.create(table->db()->log_handler(), bpm, file_name, field_meta.type(), field_meta.len()); + RC rc = index_handler_.create(table->db()->log_handler(), bpm, file_name, field_meta.type(), field_meta.len(), index_meta.unique()); if (RC::SUCCESS != rc) { LOG_WARN("Failed to create index_handler, file_name:%s, index:%s, field:%s, rc:%s", file_name, index_meta.name(), index_meta.field(), strrc(rc)); diff --git a/unittest/observer/bplus_tree_log_test.cpp b/unittest/observer/bplus_tree_log_test.cpp index a300e2845..64233a50f 100644 --- a/unittest/observer/bplus_tree_log_test.cpp +++ b/unittest/observer/bplus_tree_log_test.cpp @@ -74,7 +74,7 @@ TEST(BplusTreeLog, base) ASSERT_EQ(RC::SUCCESS, log_handler->start()); auto bplus_tree = make_unique(); - ASSERT_EQ(RC::SUCCESS, bplus_tree->create(*log_handler, *buffer_pool, AttrType::INTS, 4)); + ASSERT_EQ(RC::SUCCESS, bplus_tree->create(*log_handler, *buffer_pool, AttrType::INTS, 4, false)); // 2. insert some key-value pairs into the bplus tree const int insert_num = 10000; @@ -192,7 +192,7 @@ TEST(BplusTreeLog, concurrency) vector> bplus_trees; for (DiskBufferPool *buffer_pool : buffer_pools) { auto bplus_tree = make_unique(); - ASSERT_EQ(RC::SUCCESS, bplus_tree->create(*log_handler, *buffer_pool, AttrType::INTS, 4)); + ASSERT_EQ(RC::SUCCESS, bplus_tree->create(*log_handler, *buffer_pool, AttrType::INTS, 4, false)); bplus_trees.push_back(std::move(bplus_tree)); } diff --git a/unittest/observer/bplus_tree_test.cpp b/unittest/observer/bplus_tree_test.cpp index 6f33db2e5..b1430dfa2 100644 --- a/unittest/observer/bplus_tree_test.cpp +++ b/unittest/observer/bplus_tree_test.cpp @@ -346,6 +346,7 @@ TEST(test_bplus_tree, test_leaf_index_node_handle) *buffer_pool, index_file_header.attr_type, index_file_header.attr_length, + false, index_file_header.internal_max_size, index_file_header.leaf_max_size)); BplusTreeMiniTransaction mtr(tree_handler); @@ -428,6 +429,7 @@ TEST(test_bplus_tree, test_internal_index_node_handle) *buffer_pool, index_file_header.attr_type, index_file_header.attr_length, + false, index_file_header.internal_max_size, index_file_header.leaf_max_size)); BplusTreeMiniTransaction mtr(tree_handler); @@ -538,7 +540,7 @@ TEST(test_bplus_tree, test_chars) ASSERT_NE(nullptr, buffer_pool); BplusTreeHandler handler; - ASSERT_EQ(RC::SUCCESS, handler.create(log_handler, *buffer_pool, AttrType::CHARS, 8, ORDER, ORDER)); + ASSERT_EQ(RC::SUCCESS, handler.create(log_handler, *buffer_pool, AttrType::CHARS, 8, false, ORDER, ORDER)); char keys[][9] = {"abcdefg", "12345678", "12345678", "abcdefg", "abcdefga"}; @@ -588,7 +590,7 @@ TEST(test_bplus_tree, test_scanner) ASSERT_NE(nullptr, buffer_pool); BplusTreeHandler handler; - ASSERT_EQ(RC::SUCCESS, handler.create(log_handler, *buffer_pool, AttrType::INTS, sizeof(int), ORDER, ORDER)); + ASSERT_EQ(RC::SUCCESS, handler.create(log_handler, *buffer_pool, AttrType::INTS, sizeof(int), false, ORDER, ORDER)); int count = 0; RC rc = RC::SUCCESS; @@ -813,7 +815,7 @@ TEST(test_bplus_tree, test_bplus_tree_insert) ASSERT_NE(nullptr, buffer_pool); BplusTreeHandler *handler = new BplusTreeHandler(); - ASSERT_EQ(RC::SUCCESS, handler->create(log_handler, *buffer_pool, AttrType::INTS, sizeof(int), ORDER, ORDER)); + ASSERT_EQ(RC::SUCCESS, handler->create(log_handler, *buffer_pool, AttrType::INTS, sizeof(int), false, ORDER, ORDER)); test_insert(handler); @@ -826,6 +828,50 @@ TEST(test_bplus_tree, test_bplus_tree_insert) handler = nullptr; } +TEST(test_bplus_tree, test_bplus_tree_unique_insert) +{ + LoggerFactory::init_default("test.log"); + + filesystem::path test_directory("bplus_tree"); + filesystem::path buffer_pool_file = test_directory / "test_bplus_tree_unique_insert.btree"; + filesystem::remove_all(test_directory); + filesystem::create_directory(test_directory); + + VacuousLogHandler log_handler; + + BufferPoolManager bpm; + ASSERT_EQ(RC::SUCCESS, bpm.init(make_unique())); + ASSERT_EQ(RC::SUCCESS, bpm.create_file(buffer_pool_file.c_str())); + + DiskBufferPool *buffer_pool = nullptr; + ASSERT_EQ(RC::SUCCESS, bpm.open_file(log_handler, buffer_pool_file.c_str(), buffer_pool)); + ASSERT_NE(nullptr, buffer_pool); + + BplusTreeHandler *handler = new BplusTreeHandler(); + ASSERT_EQ(RC::SUCCESS, handler->create(log_handler, *buffer_pool, AttrType::INTS, sizeof(int), true, ORDER, ORDER)); + + // Test unique index: insert same key twice should fail + RID rid1 = {0, 0}; + RID rid2 = {0, 1}; + int key = 42; + + // First insert should succeed + RC rc = handler->insert_entry((const char *)&key, &rid1); + ASSERT_EQ(RC::SUCCESS, rc); + + // Second insert with same key but different RID should fail for unique index + rc = handler->insert_entry((const char *)&key, &rid2); + ASSERT_EQ(RC::RECORD_DUPLICATE_KEY, rc); + + // Insert different key should succeed + int key2 = 43; + rc = handler->insert_entry((const char *)&key2, &rid2); + ASSERT_EQ(RC::SUCCESS, rc); + + delete handler; + bpm.close_file(buffer_pool_file.c_str()); +} + int main(int argc, char **argv) { From 2c57b875dafdd17ae1369a5f91f31e78807da8bd Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Mon, 13 Oct 2025 14:52:19 +0000 Subject: [PATCH 06/13] feat.DATE1 --- .miniob.history | 42 +- miniob/db/sys/dblwr.db | Bin 41044 -> 49252 bytes miniob/db/sys/unique_table-index_id.index | Bin 24576 -> 0 bytes miniob/db/sys/unique_table.data | Bin 16384 -> 0 bytes miniob/db/sys/unique_table.table | 42 -- observer.log.20251013 | 478 ++++++++++++++++++++++ src/observer/common/type/attr_type.cpp | 2 +- src/observer/common/type/attr_type.h | 1 + src/observer/common/type/data_type.cpp | 3 + src/observer/common/type/data_type.h | 1 + src/observer/common/type/date_type.cpp | 59 +++ src/observer/common/type/date_type.h | 29 ++ src/observer/common/value.cpp | 26 ++ src/observer/common/value.h | 15 + src/observer/sql/parser/lex_sql.l | 1 + src/observer/sql/parser/yacc_sql.y | 85 ++-- src/observer/storage/index/bplus_tree.cpp | 2 - 17 files changed, 687 insertions(+), 99 deletions(-) delete mode 100644 miniob/db/sys/unique_table-index_id.index delete mode 100644 miniob/db/sys/unique_table.data delete mode 100644 miniob/db/sys/unique_table.table create mode 100644 src/observer/common/type/date_type.cpp create mode 100644 src/observer/common/type/date_type.h diff --git a/.miniob.history b/.miniob.history index ffa9d1c20..f4d5b172b 100644 --- a/.miniob.history +++ b/.miniob.history @@ -32,25 +32,37 @@ INSERT INTO unique_table VALUES (3,2,1);INSERT INTO unique_table VALUES (1,2,1) REATE UNIQUE INDEX index_id on unique_table(id); ### 2025-10-13 14:15:23.530 show tables -### 2025-10-13 14:15:48.645 -drop table unique_table; ### 2025-10-13 14:17:05.639 exit; -### 2025-10-13 14:20:03.024 -drop table unique_table -### 2025-10-13 14:20:07.247 -create table unique_table(id int, col1 int, col2 int); -### 2025-10-13 14:20:07.264 -CREATE UNIQUE INDEX index_id on unique_table(id);INSERT INTO unique_table VALUES (2,1,1);INSERT INTO unique_table VALUES (3,2,1); -### 2025-10-13 14:20:10.547 -INSERT INTO unique_table VALUES (1,2,1); ### 2025-10-13 14:20:22.581 select * from unique_table -### 2025-10-13 14:20:26.987 +### 2025-10-13 14:21:03.787 +INSERT INTO unique_table VALUES (2,1,1); +### 2025-10-13 14:26:45.744 +drop table unique_table; +### 2025-10-13 14:26:58.971 +CREATE UNIQUE INDEX index_id on unique_table(id);INSERT INTO unique_table VALUES (2,1,1);INSERT INTO unique_table VALUES (3,2,1); +### 2025-10-13 14:27:08.223 +create table unique_table(id int, col1 int, col2 int); +### 2025-10-13 14:27:12.114 CREATE UNIQUE INDEX index_id on unique_table(id); -### 2025-10-13 14:20:31.493 +### 2025-10-13 14:27:15.814 INSERT INTO unique_table VALUES (1,1,1); -### 2025-10-13 14:20:36.272 +### 2025-10-13 14:27:24.242 +INSERT INTO unique_table VALUES (1,2,1); +### 2025-10-13 14:27:37.388 INSERT INTO unique_table VALUES (3,2,1); -### 2025-10-13 14:21:00.723 -INSERT INTO unique_table VALUES (2,1,1); +### 2025-10-13 14:28:04.660 +create table good(key1 int,key2 int); +### 2025-10-13 14:28:18.950 +INSERT INTO good(1,2); +### 2025-10-13 14:28:27.173 +INSERT INTO VALUES good(1,2); +### 2025-10-13 14:28:46.382 +INSERT INTO good VALUES(1,2); +### 2025-10-13 14:28:51.961 +DROP TABLE GOOD; +### 2025-10-13 14:28:57.406 +DROP TABLE good +### 2025-10-13 14:29:08.349 +drop table unique_table diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db index f3fdb4faba6217459cd9a457ea4c7bd15055da97..914fa7a59050b91f3a31ed1e6a6d58a5e0ce06f5 100644 GIT binary patch delta 251 zcmca|faysCvn?wF0|O5bGXXIe?Ax~w#thQnOJxLdKyv?~0K^Aj5MbWeI9Yz;0vAS} z&7unY3bG(`KmcqOk~w)RrU>zDc69hGFUt*-25DyosY6n7wQ%Mh*LQ!xGj delta 184 zcmaFTzNB7vA9`!GqGEPzCjA(()I6;d!7O74W&!6@&fFQ2bEz1A+}TlaZd zF3}!qPIc}eK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1pY^0d|uy&Soaej z0AA7b(PwhjMHB%71PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNC9zQAz4J@TDD vv)20E+uz=X1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZVBZ28TI~-& diff --git a/miniob/db/sys/unique_table.data b/miniob/db/sys/unique_table.data deleted file mode 100644 index 1a90c2cb16431f175d13c76043679f9547a5b54e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeIuF$#b%3kmad30;BHm2gj94ePZo(^k5>gt> add free page 1 to free page list [2025-10-13 14:21:03.788618 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY [2025-10-13 14:21:03.788672 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:26:45.746435 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:26:45.746502 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:26:45.746518 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:26:45.746592 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:26:45.746725 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 14:26:45.747294 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:9,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:26:45.747383 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:9,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d910a10 +[2025-10-13 14:26:45.747541 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d910a10, page 1 frame_id=buffer_pool_id:9,page_num:1 +[2025-10-13 14:26:45.747613 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d90e9a8, page 0 frame_id=buffer_pool_id:9,page_num:0 +[2025-10-13 14:26:45.747648 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=1 +[2025-10-13 14:26:45.747679 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:9, page_num:1, lsn=0, check_sum=-528402825 +[2025-10-13 14:26:45.747754 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/unique_table.data. +[2025-10-13 14:26:45.747808 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:26:45.747831 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:26:45.747918 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:10,page_num:2,lsn=0, dwb size:1 +[2025-10-13 14:26:45.747959 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:10,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d916b48 +[2025-10-13 14:26:45.748047 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d916b48, page 2 frame_id=buffer_pool_id:10,page_num:2 +[2025-10-13 14:26:45.748073 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d914ae0, page 1 frame_id=buffer_pool_id:10,page_num:1 +[2025-10-13 14:26:45.748084 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d912a78, page 0 frame_id=buffer_pool_id:10,page_num:0 +[2025-10-13 14:26:45.748102 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=1 +[2025-10-13 14:26:45.748136 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:10, page_num:2, lsn=0, check_sum=-74686489 +[2025-10-13 14:26:45.748199 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:26:45.748217 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:26:45.748254 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:26:45.748286 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:26:45.748318 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:26:45.748354 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 14:26:46.715842 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:26:46.716203 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:26:46.716236 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:26:46.716246 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:26:46.716338 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:26:58.972515 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:26:58.972562 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:26:58.972591 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:26:58.972606 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:26:58.972632 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:26:58.972642 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:26:58.972650 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:26:58.972658 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:26:58.972667 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:26:58.972693 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:26:58.972709 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:26:58.972752 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-13 14:26:58.972867 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: create@create_index_stmt.cpp:39] >> no such table. db=sys, table_name=unique_table +[2025-10-13 14:26:58.973027 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: handle_request@resolve_stage.cpp:50] >> failed to create stmt. rc=25:SCHEMA_TABLE_NOT_EXIST +[2025-10-13 14:26:58.973045 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=SCHEMA_TABLE_NOT_EXIST +[2025-10-13 14:26:58.973215 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_TABLE_NOT_EXIST +[2025-10-13 14:26:58.973374 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:27:08.224201 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:27:08.224249 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:27:08.224263 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:08.224271 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:27:08.224279 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:08.224289 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:27:08.224300 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:08.224313 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:08.224320 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:27:08.224336 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:08.224344 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:08.224350 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:27:08.224358 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:27:08.224367 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:27:08.224589 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name unique_table] +[2025-10-13 14:27:08.224698 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:unique_table +[2025-10-13 14:27:08.226324 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-13 14:27:08.226378 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-13 14:27:08.226396 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-13 14:27:08.226404 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=5, name=unique_table +[2025-10-13 14:27:08.227194 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table.data. +[2025-10-13 14:27:08.227251 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table.data. +[2025-10-13 14:27:08.227282 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:11,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d918bb0 +[2025-10-13 14:27:08.227422 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d918bb0, page num 0, frame=frame id:buffer_pool_id:11,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d918bb0 +[2025-10-13 14:27:08.227485 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table.data:0, file_desc:13, frame=frame id:buffer_pool_id:11,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d918bb0 +[2025-10-13 14:27:08.227506 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table.data. file_desc=13, hdr_frame=0x7c0d5d918bb0, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:27:08.227531 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e0000314a0, lbt=0x4d1e0 0x5969b4 0xe1bae 0x3246f2 0x327fce 0x145987 0x11015e 0x1ca9e0 0x1c6412 0x7653b 0x6e707 0x6f20b 0x6b9dc 0x40578 0x21ca 0x228b 0x44415 +[2025-10-13 14:27:08.227864 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 14:27:08.227935 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:27:08.227965 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:unique_table +[2025-10-13 14:27:08.227995 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_table@db.cpp:175] >> Create table success. table name=unique_table, table_id:5 +[2025-10-13 14:27:08.228084 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:11,page_num:0,lsn=0, dwb size:1 +[2025-10-13 14:27:08.228140 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d918bb0 +[2025-10-13 14:27:08.228188 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:27:08.228200 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:27:08.240885 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:11,page_num:0,lsn=0 +[2025-10-13 14:27:08.241060 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:11, page_num:0, lsn=0, check_sum=103583735 +[2025-10-13 14:27:08.241106 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:27:08.241385 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:27:08.241420 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:27:08.241430 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:27:08.241486 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:27:08.241743 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:27:08.241797 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:27:08.241813 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:08.241821 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:27:08.241829 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:27:08.241840 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:08.241855 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:08.241862 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:08.241873 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:08.241880 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:08.241889 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:27:08.241903 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:27:08.242172 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:27:08.242722 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:08.242793 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d91ac18, page num 1, frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:08.242826 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=11, pageNum=1, pin=1 +[2025-10-13 14:27:08.242887 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:11,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:27:08.242928 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:08.242966 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=2, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:08.242981 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:08.243067 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:27:12.114950 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:27:12.115017 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:94] >> UNIQUE +[2025-10-13 14:27:12.115028 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-13 14:27:12.115037 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:12.115046 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-13 14:27:12.115056 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:12.115062 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:27:12.115068 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:12.115076 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:27:12.115086 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:27:12.115396 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:27:12.115428 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/unique_table-index_id.index +[2025-10-13 14:27:12.115455 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:27:12.116595 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:12,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d91cc80 +[2025-10-13 14:27:12.116666 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d91cc80, page num 0, frame=frame id:buffer_pool_id:12,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d91cc80 +[2025-10-13 14:27:12.116944 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/unique_table-index_id.index:0, file_desc:16, frame=frame id:buffer_pool_id:12,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d91cc80 +[2025-10-13 14:27:12.117015 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/unique_table-index_id.index. file_desc=16, hdr_frame=0x7c0d5d91cc80, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:27:12.117040 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=16, bp=0x50e0000320e0, lbt=0x4d1e0 0x5969b4 0xe1bae 0x428ab8 0x478aed 0x32bc0b 0x1c6306 0x7653b 0x6e707 0x6f20b 0x6b9dc 0x40578 0x21ca 0x228b 0x44415 +[2025-10-13 14:27:12.117078 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:27:12.118150 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:27:12.118196 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d91ece8, page num 1, frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:27:12.118230 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=12, pageNum=1, pin=1 +[2025-10-13 14:27:12.119292 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:27:12.119348 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:27:12.119406 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:27:12.119418 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:4, item_num_per_pool:128, this->name:b+tree. +[2025-10-13 14:27:12.119468 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:12,page_num:1,lsn=0, dwb size=2 +[2025-10-13 14:27:12.119481 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=2, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:27:12.119540 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:27:12.119712 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d91cc80 +[2025-10-13 14:27:12.119763 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:908] >> Successfully create index +[2025-10-13 14:27:12.119939 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:27:12.119975 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/unique_table-index_id.index, index:index_id, field:id +[2025-10-13 14:27:12.120061 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:12.120085 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:12.120158 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:12.120196 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d920d50, page num 2, frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:12.120223 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=12, pageNum=2, pin=1 +[2025-10-13 14:27:12.120383 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:2,lsn=0, dwb size:4 +[2025-10-13 14:27:12.120422 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:12.120576 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:27:12.120622 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1475] >> set root page to 2 +[2025-10-13 14:27:12.120726 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:179] >> inserted all records into new index. table=unique_table, index=index_id +[2025-10-13 14:27:12.121293 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_index@heap_table_engine.cpp:220] >> Successfully added a new index (index_id) on the table (unique_table) +[2025-10-13 14:27:12.121332 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:27:12.121387 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:12,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:27:12.121403 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:27:12.121448 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:12,page_num:2,lsn=0, dwb size=4 +[2025-10-13 14:27:12.121458 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:12.121511 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:12,page_num:0,lsn=0, dwb size=4 +[2025-10-13 14:27:12.122495 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d91cc80 +[2025-10-13 14:27:12.122641 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:11,page_num:1,lsn=0, dwb size=4 +[2025-10-13 14:27:12.122705 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:12.122778 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:11,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:27:12.122797 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d918bb0 +[2025-10-13 14:27:12.122813 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:27:12.122823 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:27:12.128569 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:11,page_num:0,lsn=0 +[2025-10-13 14:27:12.128648 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:11, page_num:0, lsn=0, check_sum=1158775009 +[2025-10-13 14:27:12.128679 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:2,lsn=0 +[2025-10-13 14:27:12.128704 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:2, lsn=0, check_sum=-1770321888 +[2025-10-13 14:27:12.128718 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:0,lsn=0 +[2025-10-13 14:27:12.128729 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:0, lsn=0, check_sum=311732334 +[2025-10-13 14:27:12.128738 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:1,lsn=0 +[2025-10-13 14:27:12.128781 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:1, lsn=0, check_sum=-1119116183 +[2025-10-13 14:27:12.128795 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:11,page_num:1,lsn=0 +[2025-10-13 14:27:12.128808 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:11, page_num:1, lsn=0, check_sum=-1198617865 +[2025-10-13 14:27:12.128820 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:27:12.128972 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:27:12.128990 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:27:12.128996 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:27:12.129044 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:27:15.815481 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:27:15.815523 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:27:15.815533 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:15.815539 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:27:15.815544 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:27:15.815552 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:15.815562 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:15.815567 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:15.815574 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:15.815580 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:15.815586 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:27:15.815597 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:27:15.815708 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:27:15.815901 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:15.815941 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:15.815968 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:27:15.815979 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:15.816009 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:27:15.816023 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry_into_leaf_node@bplus_tree.cpp:1277] >> unique index: entry exists, reject insert +[2025-10-13 14:27:15.816029 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1558] >> Failed to insert into leaf of index, rid:PageNum:1, SlotNum:1. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:27:15.816051 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:27:15.816057 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:15.816071 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_entry_internal@bplus_tree.cpp:1791] >> no data need to remove +[2025-10-13 14:27:15.816077 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:27:15.816172 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 ERROR: insert_record@heap_table_engine.cpp:52] >> Failed to rollback index data when insert index entries failed. table name=unique_table, rc=20:RECORD_NOT_EXIST +[2025-10-13 14:27:15.816223 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:15.816272 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:15.816284 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_record@record_manager.cpp:677] >> add free page 1 to free page list +[2025-10-13 14:27:15.816293 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:27:15.816329 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:27:24.243183 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:27:24.243227 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:27:24.243240 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:24.243250 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:27:24.243256 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:27:24.243263 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:24.243278 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:24.243284 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:24.243292 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:24.243298 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:24.243306 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:27:24.243317 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:27:24.243371 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:27:24.243450 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:24.243514 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:24.243593 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:27:24.243624 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:24.243658 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:27:24.243769 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry_into_leaf_node@bplus_tree.cpp:1277] >> unique index: entry exists, reject insert +[2025-10-13 14:27:24.243823 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1558] >> Failed to insert into leaf of index, rid:PageNum:1, SlotNum:1. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:27:24.243893 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:27:24.243908 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:24.243948 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_entry_internal@bplus_tree.cpp:1791] >> no data need to remove +[2025-10-13 14:27:24.243957 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:27:24.243968 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 ERROR: insert_record@heap_table_engine.cpp:52] >> Failed to rollback index data when insert index entries failed. table name=unique_table, rc=20:RECORD_NOT_EXIST +[2025-10-13 14:27:24.244090 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:24.244174 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:24.244192 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_record@record_manager.cpp:677] >> add free page 1 to free page list +[2025-10-13 14:27:24.244201 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:27:24.244247 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:27:27.924609 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:27:27.924700 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:27:27.924715 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:27.924724 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:27:27.924733 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:27:27.924742 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:27.924753 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:27.924760 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:27.924770 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:27.924779 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:27.924786 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:27:27.924802 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:27:27.924859 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:27:27.924955 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:27.925014 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:27.925059 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:27:27.925084 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:27.925104 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:27:27.925126 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1562] >> insert entry success +[2025-10-13 14:27:27.925191 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:27:37.389718 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:27:37.389768 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:27:37.389783 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:27:37.389792 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:27:37.389799 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:27:37.389806 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:37.389819 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:37.389825 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:37.389833 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:27:37.389838 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:27:37.389847 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:27:37.389859 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:27:37.390058 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:27:37.390193 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:37.390241 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:37.390375 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:27:37.390431 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=1, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:37.390469 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:27:37.390490 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry_into_leaf_node@bplus_tree.cpp:1277] >> unique index: entry exists, reject insert +[2025-10-13 14:27:37.390497 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: insert_entry@bplus_tree.cpp:1558] >> Failed to insert into leaf of index, rid:PageNum:1, SlotNum:2. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:27:37.390523 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-13 14:27:37.390558 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:12,page_num:2, dirty=1, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:27:37.390602 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-13 14:27:37.390613 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_entry_internal@bplus_tree.cpp:1791] >> no data need to remove +[2025-10-13 14:27:37.390625 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 ERROR: insert_record@heap_table_engine.cpp:52] >> Failed to rollback index data when insert index entries failed. table name=unique_table, rc=20:RECORD_NOT_EXIST +[2025-10-13 14:27:37.390668 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:11,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:27:37.390697 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:27:37.390709 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: delete_record@record_manager.cpp:677] >> add free page 1 to free page list +[2025-10-13 14:27:37.390718 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: open@insert_physical_operator.cpp:37] >> failed to insert record by transaction. rc=RECORD_DUPLICATE_KEY +[2025-10-13 14:27:37.390759 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:28:04.662124 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 14:28:04.662156 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:28:04.662167 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:04.662175 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:28:04.662186 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:04.662194 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:28:04.662203 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:28:04.662216 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:04.662225 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 14:28:04.662232 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:28:04.662242 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:28:04.662273 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name good] +[2025-10-13 14:28:04.662313 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:good +[2025-10-13 14:28:04.662375 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=key1 +[2025-10-13 14:28:04.662385 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@field_meta.cpp:57] >> Init a field with name=key2 +[2025-10-13 14:28:04.662393 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=6, name=good +[2025-10-13 14:28:04.662902 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/good.data. +[2025-10-13 14:28:04.662963 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-13 14:28:04.662993 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:13,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d922db8 +[2025-10-13 14:28:04.663040 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d922db8, page num 0, frame=frame id:buffer_pool_id:13,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d922db8 +[2025-10-13 14:28:04.663091 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/good.data:0, file_desc:18, frame=frame id:buffer_pool_id:13,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d922db8 +[2025-10-13 14:28:04.663117 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=18, hdr_frame=0x7c0d5d922db8, file header=pageCount:1, allocatedCount:1 +[2025-10-13 14:28:04.663138 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=18, bp=0x50e00002f360, lbt=0x4d1e0 0x5969b4 0xe1bae 0x3246f2 0x327fce 0x145987 0x11015e 0x1ca9e0 0x1c6412 0x7653b 0x6e707 0x6f20b 0x6b9dc 0x40578 0x21ca 0x228b 0x44415 +[2025-10-13 14:28:04.663210 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-13 14:28:04.663222 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-13 14:28:04.663268 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:good +[2025-10-13 14:28:04.663287 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: create_table@db.cpp:175] >> Create table success. table name=good, table_id:6 +[2025-10-13 14:28:04.663386 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:13,page_num:0,lsn=0, dwb size:1 +[2025-10-13 14:28:04.663423 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=18, frame=frame id:buffer_pool_id:13,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d922db8 +[2025-10-13 14:28:04.663450 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=good +[2025-10-13 14:28:04.663459 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-13 14:28:04.663518 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:2,lsn=0, dwb size:2 +[2025-10-13 14:28:04.663540 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:28:04.663598 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:1,lsn=0, dwb size:3 +[2025-10-13 14:28:04.663615 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:28:04.663713 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:0,lsn=0, dwb size:4 +[2025-10-13 14:28:04.663773 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d91cc80 +[2025-10-13 14:28:04.663879 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:11,page_num:1,lsn=0, dwb size:5 +[2025-10-13 14:28:04.663917 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:28:04.663975 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:11,page_num:0,lsn=0, dwb size:6 +[2025-10-13 14:28:04.664020 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d918bb0 +[2025-10-13 14:28:04.664038 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:28:04.664046 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:28:04.668349 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:11,page_num:0,lsn=0 +[2025-10-13 14:28:04.668466 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:11, page_num:0, lsn=0, check_sum=1158775009 +[2025-10-13 14:28:04.668492 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:11,page_num:1,lsn=0 +[2025-10-13 14:28:04.668506 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:11, page_num:1, lsn=0, check_sum=-1634111019 +[2025-10-13 14:28:04.668519 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:0,lsn=0 +[2025-10-13 14:28:04.668545 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:0, lsn=0, check_sum=311732334 +[2025-10-13 14:28:04.668557 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:2,lsn=0 +[2025-10-13 14:28:04.668570 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:2, lsn=0, check_sum=1695426642 +[2025-10-13 14:28:04.668582 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:1,lsn=0 +[2025-10-13 14:28:04.668595 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:1, lsn=0, check_sum=-1119116183 +[2025-10-13 14:28:04.668607 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:13,page_num:0,lsn=0 +[2025-10-13 14:28:04.668620 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:13, page_num:0, lsn=0, check_sum=-1378441753 +[2025-10-13 14:28:04.668636 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:28:04.668793 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:28:04.668812 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:28:04.668821 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:28:04.668884 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:28:18.952026 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:28:18.952078 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:28:18.952095 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:18.952103 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:28:18.952178 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-13 14:28:18.952192 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-13 14:28:18.952293 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:28:27.174938 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:28:27.175012 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:28:27.175026 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:28:27.175064 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-13 14:28:27.175079 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-13 14:28:27.175127 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:28:43.698609 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:28:43.698661 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:28:43.698674 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:43.698683 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:28:43.698690 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:28:43.698772 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:28:43.698837 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:28:43.698858 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:28:43.698869 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:28:43.698931 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:28:43.699036 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:28:43.699166 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:13,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d924e20 +[2025-10-13 14:28:43.699238 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7c0d5d924e20, page num 1, frame=frame id:buffer_pool_id:13,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d924e20 +[2025-10-13 14:28:43.699271 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=13, pageNum=1, pin=1 +[2025-10-13 14:28:43.699334 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:13,page_num:1,lsn=0, dwb size:1 +[2025-10-13 14:28:43.699387 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=18, frame=frame id:buffer_pool_id:13,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d924e20 +[2025-10-13 14:28:43.699415 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:13,page_num:1, dirty=0, pin=2, lsn=0, this=0x7c0d5d924e20 +[2025-10-13 14:28:43.699447 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:28:43.699511 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:28:46.382375 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-13 14:28:46.382462 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-13 14:28:46.382475 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:46.382483 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-13 14:28:46.382490 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 14:28:46.382497 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:28:46.382508 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 14:28:46.382513 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-13 14:28:46.382522 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:134] >> RBRACE +[2025-10-13 14:28:46.382575 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:28:46.382653 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-13 14:28:46.382712 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:13,page_num:1, dirty=1, pin=1, lsn=0, this=0x7c0d5d924e20 +[2025-10-13 14:28:46.382760 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-13 14:28:46.382809 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:28:51.963256 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:28:51.963303 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:28:51.963314 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:51.963344 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-13 14:28:51.963405 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name GOOD] +[2025-10-13 14:28:51.963447 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 WARN: drop_table@db.cpp:202] >> GOOD does not exist. +[2025-10-13 14:28:51.963456 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=SCHEMA_TABLE_NOT_EXIST +[2025-10-13 14:28:51.963469 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_TABLE_NOT_EXIST +[2025-10-13 14:28:51.963511 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:28:57.408052 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:28:57.408083 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:28:57.408094 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:28:57.408123 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name good] +[2025-10-13 14:28:57.408418 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:13,page_num:1,lsn=0, dwb size=1 +[2025-10-13 14:28:57.408473 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=18, frame=frame id:buffer_pool_id:13,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d924e20 +[2025-10-13 14:28:57.408502 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d924e20, page 1 frame_id=buffer_pool_id:13,page_num:1 +[2025-10-13 14:28:57.408601 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:13,page_num:0,lsn=0, dwb size:2 +[2025-10-13 14:28:57.408645 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=18, frame=frame id:buffer_pool_id:13,page_num:0, dirty=0, pin=1, lsn=0, this=0x7c0d5d922db8 +[2025-10-13 14:28:57.408663 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d922db8, page 0 frame_id=buffer_pool_id:13,page_num:0 +[2025-10-13 14:28:57.408695 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=2 +[2025-10-13 14:28:57.408716 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:13, page_num:0, lsn=0, check_sum=-286545167 +[2025-10-13 14:28:57.408751 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:13, page_num:1, lsn=0, check_sum=848244618 +[2025-10-13 14:28:57.408815 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 18:miniob/db/sys/good.data. +[2025-10-13 14:28:57.408831 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:28:57.408841 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-13 14:28:57.408851 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=good +[2025-10-13 14:28:57.408912 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:2,lsn=0, dwb size:1 +[2025-10-13 14:28:57.408950 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:2, dirty=0, pin=1, lsn=0, this=0x7c0d5d920d50 +[2025-10-13 14:28:57.409009 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:1,lsn=0, dwb size:2 +[2025-10-13 14:28:57.409020 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ece8 +[2025-10-13 14:28:57.409085 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:12,page_num:0,lsn=0, dwb size:3 +[2025-10-13 14:28:57.409104 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=16, frame=frame id:buffer_pool_id:12,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d91cc80 +[2025-10-13 14:28:57.409175 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:11,page_num:1,lsn=0, dwb size:4 +[2025-10-13 14:28:57.409192 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:1, dirty=0, pin=1, lsn=0, this=0x7c0d5d91ac18 +[2025-10-13 14:28:57.409294 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:11,page_num:0,lsn=0, dwb size:5 +[2025-10-13 14:28:57.409346 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:11,page_num:0, dirty=0, pin=2, lsn=0, this=0x7c0d5d918bb0 +[2025-10-13 14:28:57.409369 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@heap_table_engine.cpp:266] >> Sync table over. table=unique_table +[2025-10-13 14:28:57.409377 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:unique_table. +[2025-10-13 14:28:57.413309 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:11,page_num:0,lsn=0 +[2025-10-13 14:28:57.413443 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:11, page_num:0, lsn=0, check_sum=1158775009 +[2025-10-13 14:28:57.413469 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:11,page_num:1,lsn=0 +[2025-10-13 14:28:57.413491 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:11, page_num:1, lsn=0, check_sum=-1634111019 +[2025-10-13 14:28:57.413518 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:0,lsn=0 +[2025-10-13 14:28:57.413603 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:0, lsn=0, check_sum=311732334 +[2025-10-13 14:28:57.413620 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:1,lsn=0 +[2025-10-13 14:28:57.413635 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:1, lsn=0, check_sum=-1119116183 +[2025-10-13 14:28:57.413662 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:12,page_num:2,lsn=0 +[2025-10-13 14:28:57.413678 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:12, page_num:2, lsn=0, check_sum=1695426642 +[2025-10-13 14:28:57.413693 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:28:57.413855 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:28:57.413875 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:28:57.413885 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:28:57.413937 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 14:29:08.351214 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-13 14:29:08.351246 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 14:29:08.351269 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 14:29:08.351305 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name unique_table] +[2025-10-13 14:29:08.351559 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d91ac18, page 1 frame_id=buffer_pool_id:11,page_num:1 +[2025-10-13 14:29:08.351686 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d918bb0, page 0 frame_id=buffer_pool_id:11,page_num:0 +[2025-10-13 14:29:08.351788 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table.data, page count=0 +[2025-10-13 14:29:08.351863 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/unique_table.data. +[2025-10-13 14:29:08.351884 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:29:08.351913 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-13 14:29:08.351930 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d920d50, page 2 frame_id=buffer_pool_id:12,page_num:2 +[2025-10-13 14:29:08.351953 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d91ece8, page 1 frame_id=buffer_pool_id:12,page_num:1 +[2025-10-13 14:29:08.351964 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7c0d5d91cc80, page 0 frame_id=buffer_pool_id:12,page_num:0 +[2025-10-13 14:29:08.351975 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/unique_table-index_id.index, page count=0 +[2025-10-13 14:29:08.352018 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 16:miniob/db/sys/unique_table-index_id.index. +[2025-10-13 14:29:08.352031 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-13 14:29:08.352039 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-13 14:29:08.352066 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-13 14:29:08.352074 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: unique_table +[2025-10-13 14:29:08.352087 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: drop_table@db.cpp:242] >> Drop table success. table name=unique_table +[2025-10-13 14:29:08.357703 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 14:29:08.358166 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 14:29:08.358210 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 14:29:08.358221 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 +[2025-10-13 14:29:08.358322 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS diff --git a/src/observer/common/type/attr_type.cpp b/src/observer/common/type/attr_type.cpp index e8af0084a..26d4b90f7 100644 --- a/src/observer/common/type/attr_type.cpp +++ b/src/observer/common/type/attr_type.cpp @@ -12,7 +12,7 @@ See the Mulan PSL v2 for more details. */ #include "common/lang/string.h" #include "common/type/attr_type.h" -const char *ATTR_TYPE_NAME[] = {"undefined", "chars", "ints", "floats", "vectors", "booleans"}; +const char *ATTR_TYPE_NAME[] = {"undefined", "chars", "ints", "floats", "vectors", "dates", "booleans"}; const char *attr_type_to_string(AttrType type) { diff --git a/src/observer/common/type/attr_type.h b/src/observer/common/type/attr_type.h index d1c07e3a2..5c78cceb4 100644 --- a/src/observer/common/type/attr_type.h +++ b/src/observer/common/type/attr_type.h @@ -21,6 +21,7 @@ enum class AttrType INTS, ///< 整数类型(4字节) FLOATS, ///< 浮点数类型(4字节) VECTORS, ///< 向量类型 + DATES, ///< 日期类型 BOOLEANS, ///< boolean类型,当前不是由parser解析出来的,是程序内部使用的 MAXTYPE, ///< 请在 UNDEFINED 与 MAXTYPE 之间增加新类型 }; diff --git a/src/observer/common/type/data_type.cpp b/src/observer/common/type/data_type.cpp index 6df3fa6ac..f835e71cf 100644 --- a/src/observer/common/type/data_type.cpp +++ b/src/observer/common/type/data_type.cpp @@ -12,7 +12,9 @@ See the Mulan PSL v2 for more details. */ #include "common/type/float_type.h" #include "common/type/integer_type.h" #include "common/type/data_type.h" + #include "common/type/vector_type.h" +#include "common/type/date_type.h" // Todo: 实现新数据类型 // your code here @@ -23,5 +25,6 @@ array, static_cast(AttrType::MAXTYPE)> DataType::type_ make_unique(), make_unique(), make_unique(), + make_unique(), make_unique(AttrType::BOOLEANS), }; \ No newline at end of file diff --git a/src/observer/common/type/data_type.h b/src/observer/common/type/data_type.h index 54f0f3dc0..960e07462 100644 --- a/src/observer/common/type/data_type.h +++ b/src/observer/common/type/data_type.h @@ -16,6 +16,7 @@ See the Mulan PSL v2 for more details. */ #include "common/sys/rc.h" #include "common/type/attr_type.h" + class Value; class Column; diff --git a/src/observer/common/type/date_type.cpp b/src/observer/common/type/date_type.cpp new file mode 100644 index 000000000..c3ea2ff4f --- /dev/null +++ b/src/observer/common/type/date_type.cpp @@ -0,0 +1,59 @@ +/* + * date_type.cpp - DATE 类型支持实现 + */ +#include "common/type/date_type.h" +#include "common/value.h" +#include +#include + +// 判断闰年 +static bool is_leap(int year) { + return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0); +} + +// 校验日期是否合法 +bool DateType::is_valid_date(int year, int month, int day) { + if (year < 0 || month < 1 || month > 12 || day < 1) return false; + static const int days[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; + int mdays = days[month-1]; + if (month == 2 && is_leap(year)) mdays = 29; + return day <= mdays; +} + +int DateType::compare(const Value &left, const Value &right) const { + int ly, lm, ld, ry, rm, rd; + left.get_date(ly, lm, ld); + right.get_date(ry, rm, rd); + if (ly != ry) return ly < ry ? -1 : 1; + if (lm != rm) return lm < rm ? -1 : 1; + if (ld != rd) return ld < rd ? -1 : 1; + return 0; +} + +RC DateType::cast_to(const Value &val, AttrType type, Value &result) const { + if (type == AttrType::DATES) { + result = val; + return RC::SUCCESS; + } + return RC::UNSUPPORTED; +} + +RC DateType::to_string(const Value &val, std::string &str) const { + int y, m, d; + val.get_date(y, m, d); + std::ostringstream oss; + oss << std::setw(4) << std::setfill('0') << y << "-" + << std::setw(2) << std::setfill('0') << m << "-" + << std::setw(2) << std::setfill('0') << d; + str = oss.str(); + return RC::SUCCESS; +} + +RC DateType::set_value_from_str(Value &val, const std::string &data) const { + int y, m, d; + if (sscanf(data.c_str(), "%d-%d-%d", &y, &m, &d) == 3 && is_valid_date(y, m, d)) { + val.set_date(y, m, d); + return RC::SUCCESS; + } + return RC::INVALID_ARGUMENT; +} diff --git a/src/observer/common/type/date_type.h b/src/observer/common/type/date_type.h new file mode 100644 index 000000000..6811b92de --- /dev/null +++ b/src/observer/common/type/date_type.h @@ -0,0 +1,29 @@ +/* + * date_type.h - DATE 类型支持 + */ +#pragma once + +// 前向声明 Value +class Value; + +#include +#include "common/type/data_type.h" + +class DateType : public DataType { +public: + DateType() : DataType(AttrType::DATES) {} + ~DateType() override = default; + + int compare(const Value &left, const Value &right) const override; + RC cast_to(const Value &val, AttrType type, Value &result) const override; + RC to_string(const Value &val, std::string &str) const override; + RC set_value_from_str(Value &val, const std::string &data) const override; + RC add(const Value &left, const Value &right, Value &result) const override { return RC::UNSUPPORTED; } + RC subtract(const Value &left, const Value &right, Value &result) const override { return RC::UNSUPPORTED; } + RC multiply(const Value &left, const Value &right, Value &result) const override { return RC::UNSUPPORTED; } + RC divide(const Value &left, const Value &right, Value &result) const override { return RC::UNSUPPORTED; } + RC negative(const Value &val, Value &result) const override { return RC::UNSUPPORTED; } + + // 日期合法性校验 + static bool is_valid_date(int year, int month, int day); +}; diff --git a/src/observer/common/value.cpp b/src/observer/common/value.cpp index 424c67350..579939511 100644 --- a/src/observer/common/value.cpp +++ b/src/observer/common/value.cpp @@ -30,6 +30,9 @@ Value::Value(const char *s, int len /*= 0*/) { set_string(s, len); } Value::Value(const string_t& s) { set_string(s.data(), s.size()); } +// DATE 类型构造函数 +Value::Value(int year, int month, int day) { set_date(year, month, day); } + Value::Value(const Value &other) { @@ -157,6 +160,29 @@ void Value::set_boolean(bool val) length_ = sizeof(val); } +// DATE 类型设置 +void Value::set_date(int year, int month, int day) +{ + reset(); + attr_type_ = AttrType::DATES; + value_.date_value_.year = year; + value_.date_value_.month = month; + value_.date_value_.day = day; + length_ = sizeof(value_.date_value_); +} + +// DATE 类型获取 +void Value::get_date(int &year, int &month, int &day) const +{ + if (attr_type_ == AttrType::DATES) { + year = value_.date_value_.year; + month = value_.date_value_.month; + day = value_.date_value_.day; + } else { + year = month = day = 0; + } +} + void Value::set_string(const char *s, int len /*= 0*/) { reset(); diff --git a/src/observer/common/value.h b/src/observer/common/value.h index ca31eedc4..833567293 100644 --- a/src/observer/common/value.h +++ b/src/observer/common/value.h @@ -49,6 +49,9 @@ class Value final explicit Value(const char *s, int len = 0); explicit Value(const string_t &val); + // DATE 类型构造函数 + explicit Value(int year, int month, int day); + Value(const Value &other); Value(Value &&other); @@ -113,6 +116,9 @@ class Value final string_t get_string_t() const; bool get_boolean() const; + // DATE 类型获取 + void get_date(int &year, int &month, int &day) const; + public: void set_int(int val); void set_float(float val); @@ -120,16 +126,25 @@ class Value final void set_empty_string(int len); void set_string_from_other(const Value &other); + // DATE 类型设置 + void set_date(int year, int month, int day); + private: AttrType attr_type_ = AttrType::UNDEFINED; int length_ = 0; + union Val { int32_t int_value_; float float_value_; bool bool_value_; char *pointer_value_; + struct { + int16_t year; + int8_t month; + int8_t day; + } date_value_; } value_ = {.int_value_ = 0}; /// 是否申请并占有内存, 目前对于 CHARS 类型 own_data_ 为true, 其余类型 own_data_ 为false diff --git a/src/observer/sql/parser/lex_sql.l b/src/observer/sql/parser/lex_sql.l index 529e13df5..279374855 100644 --- a/src/observer/sql/parser/lex_sql.l +++ b/src/observer/sql/parser/lex_sql.l @@ -115,6 +115,7 @@ INT RETURN_TOKEN(INT_T); CHAR RETURN_TOKEN(STRING_T); FLOAT RETURN_TOKEN(FLOAT_T); VECTOR RETURN_TOKEN(VECTOR_T); +DATE RETURN_TOKEN(DATE_T); LOAD RETURN_TOKEN(LOAD); DATA RETURN_TOKEN(DATA); INFILE RETURN_TOKEN(INFILE); diff --git a/src/observer/sql/parser/yacc_sql.y b/src/observer/sql/parser/yacc_sql.y index f8327d8d1..7d80d4d00 100644 --- a/src/observer/sql/parser/yacc_sql.y +++ b/src/observer/sql/parser/yacc_sql.y @@ -1,6 +1,4 @@ - %{ - #include #include #include @@ -11,6 +9,7 @@ #include "sql/parser/yacc_sql.hpp" #include "sql/parser/lex_sql.h" #include "sql/expr/expression.h" +#include "common/type/date_type.h" using namespace std; @@ -67,37 +66,38 @@ UnboundAggregateExpr *create_aggregate_expression(const char *aggregate_name, //标识tokens %token SEMICOLON - BY - CREATE - DROP - GROUP - TABLE - TABLES - INDEX - UNIQUE - CALC - SELECT - DESC - SHOW - SYNC - INSERT - DELETE - UPDATE - LBRACE - RBRACE - COMMA - TRX_BEGIN - TRX_COMMIT - TRX_ROLLBACK - INT_T - STRING_T - FLOAT_T - VECTOR_T - HELP - EXIT - DOT //QUOTE - INTO - VALUES + BY + CREATE + DROP + GROUP + TABLE + TABLES + INDEX + UNIQUE + CALC + SELECT + DESC + SHOW + SYNC + INSERT + DELETE + UPDATE + LBRACE + RBRACE + COMMA + TRX_BEGIN + TRX_COMMIT + TRX_ROLLBACK + INT_T + STRING_T + FLOAT_T + VECTOR_T + DATE_T + HELP + EXIT + DOT //QUOTE + INTO + VALUES FROM WHERE AND @@ -394,11 +394,12 @@ number: NUMBER {$$ = $1;} ; type: - INT_T { $$ = static_cast(AttrType::INTS); } - | STRING_T { $$ = static_cast(AttrType::CHARS); } - | FLOAT_T { $$ = static_cast(AttrType::FLOATS); } - | VECTOR_T { $$ = static_cast(AttrType::VECTORS); } - ; + INT_T { $$ = static_cast(AttrType::INTS); } + | STRING_T { $$ = static_cast(AttrType::CHARS); } + | FLOAT_T { $$ = static_cast(AttrType::FLOATS); } + | VECTOR_T { $$ = static_cast(AttrType::VECTORS); } + | DATE_T { $$ = static_cast(AttrType::DATES); } + ; primary_key: /* empty */ { @@ -460,7 +461,13 @@ value: } |SSS { char *tmp = common::substr($1,1,strlen($1)-2); - $$ = new Value(tmp); + // 尝试解析为日期格式 'YYYY-MM-DD' + int y, m, d; + if (sscanf(tmp, "%d-%d-%d", &y, &m, &d) == 3 && DateType::is_valid_date(y, m, d)) { + $$ = new Value(y, m, d); + } else { + $$ = new Value(tmp); + } free(tmp); } ; diff --git a/src/observer/storage/index/bplus_tree.cpp b/src/observer/storage/index/bplus_tree.cpp index eb0432d60..e1966c918 100644 --- a/src/observer/storage/index/bplus_tree.cpp +++ b/src/observer/storage/index/bplus_tree.cpp @@ -1274,7 +1274,6 @@ RC BplusTreeHandler::insert_entry_into_leaf_node(BplusTreeMiniTransaction &mtr, Value v1(file_header_.attr_type, const_cast(leaf_node.key_at(i)), file_header_.attr_length); Value v2(file_header_.attr_type, const_cast(key), file_header_.attr_length); if (v1.compare(v2) == 0) { - LOG_TRACE("unique index: entry exists, reject insert"); return RC::RECORD_DUPLICATE_KEY; } } @@ -1283,7 +1282,6 @@ RC BplusTreeHandler::insert_entry_into_leaf_node(BplusTreeMiniTransaction &mtr, bool exists = false; leaf_node.lookup(key_comparator_, key, &exists); if (exists) { - LOG_TRACE("non-unique index: entry exists, reject insert"); return RC::RECORD_DUPLICATE_KEY; } } From a4b23cc94b50451fe7550a6ba75d8b7c580b3ef2 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Tue, 14 Oct 2025 02:01:45 +0000 Subject: [PATCH 07/13] =?UTF-8?q?fix.unique=E5=B0=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .miniob.history | 6 ++- observer.log.20251013 | 69 ++++++++++++++++++++++++++++++ src/observer/sql/parser/yacc_sql.y | 6 ++- 3 files changed, 78 insertions(+), 3 deletions(-) diff --git a/.miniob.history b/.miniob.history index f4d5b172b..e9e091ba5 100644 --- a/.miniob.history +++ b/.miniob.history @@ -32,8 +32,6 @@ INSERT INTO unique_table VALUES (3,2,1);INSERT INTO unique_table VALUES (1,2,1) REATE UNIQUE INDEX index_id on unique_table(id); ### 2025-10-13 14:15:23.530 show tables -### 2025-10-13 14:17:05.639 -exit; ### 2025-10-13 14:20:22.581 select * from unique_table ### 2025-10-13 14:21:03.787 @@ -66,3 +64,7 @@ DROP TABLE GOOD; DROP TABLE good ### 2025-10-13 14:29:08.349 drop table unique_table +### 2025-10-13 15:01:34.433 +CREATE TABLE date_table(id int, u_date date); +### 2025-10-13 15:01:40.442 +exit; diff --git a/observer.log.20251013 b/observer.log.20251013 index 52956bea7..eac6a6f05 100644 --- a/observer.log.20251013 +++ b/observer.log.20251013 @@ -3475,3 +3475,72 @@ Finish dump configuration [2025-10-13 14:29:08.358210 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys [2025-10-13 14:29:08.358221 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: execute@command_executor.cpp:106] >> sync db after ddl. rc=0 [2025-10-13 14:29:08.358322 pid:26235 tid:7c0d61f1a7c0 ctx:504000000750 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 15:01:32.233425 pid:58819 tid:75dd809e57c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-13 15:01:32.235670 pid:58819 tid:75dd809e57c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-13 15:01:32.237418 pid:58819 tid:75dd7d8146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-13 15:01:32.241603 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.242154 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.242737 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.243455 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.244171 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.244923 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.245593 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.246292 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.246968 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.247626 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.248323 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.249406 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.250141 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.250795 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.251422 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.251922 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.252564 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.253683 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.254466 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.255634 pid:58819 tid:75dd809e57c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.255686 pid:58819 tid:75dd809e57c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-13 15:01:32.255698 pid:58819 tid:75dd809e57c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-13 15:01:32.258474 pid:58819 tid:75dd809e57c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=5 +[2025-10-13 15:01:32.260231 pid:58819 tid:75dd809e57c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-13 15:01:32.261081 pid:58819 tid:75dd809e57c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=0 +[2025-10-13 15:01:32.267784 pid:58819 tid:75dd809e57c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:11,page_num:0,lsn=0 +[2025-10-13 15:01:32.267878 pid:58819 tid:75dd809e57c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:11,page_num:1,lsn=0 +[2025-10-13 15:01:32.267941 pid:58819 tid:75dd809e57c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:12,page_num:0,lsn=0 +[2025-10-13 15:01:32.267956 pid:58819 tid:75dd809e57c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:12,page_num:1,lsn=0 +[2025-10-13 15:01:32.267972 pid:58819 tid:75dd809e57c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:12,page_num:2,lsn=0 +[2025-10-13 15:01:32.267995 pid:58819 tid:75dd809e57c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-13 15:01:32.268444 pid:58819 tid:75dd809e57c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-13 15:01:32.268527 pid:58819 tid:75dd809e57c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-13 15:01:32.268542 pid:58819 tid:75dd809e57c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-13 15:01:32.268565 pid:58819 tid:75dd809e57c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-13 15:01:34.437499 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-13 15:01:34.437955 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-13 15:01:34.438110 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 15:01:34.438128 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> LBRACE +[2025-10-13 15:01:34.438140 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 15:01:34.438148 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-13 15:01:34.438158 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:136] >> COMMA +[2025-10-13 15:01:34.438184 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 15:01:34.438199 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:132] >> ID +[2025-10-13 15:01:34.438314 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2025-10-13 15:01:34.438339 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2025-10-13 15:01:34.438397 pid:58819 tid:75dd809e57c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-13 15:01:40.444583 pid:58819 tid:75dd809e57c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-13 15:01:40.444844 pid:58819 tid:75dd809e57c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-13 15:01:40.448832 pid:58819 tid:75dd809e57c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-13 15:01:40.449285 pid:58819 tid:75dd809e57c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-13 15:01:40.449324 pid:58819 tid:75dd809e57c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-13 15:01:40.451669 pid:58819 tid:75dd7d8146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-13 15:01:40.649578 pid:58819 tid:75dd809e57c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-13 15:01:40.661684 pid:58819 tid:75dd809e57c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-13 15:01:40.661863 pid:58819 tid:75dd809e57c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! diff --git a/src/observer/sql/parser/yacc_sql.y b/src/observer/sql/parser/yacc_sql.y index 7d80d4d00..63a2cc474 100644 --- a/src/observer/sql/parser/yacc_sql.y +++ b/src/observer/sql/parser/yacc_sql.y @@ -387,7 +387,11 @@ attr_def: $$ = new AttrInfoSqlNode; $$->type = (AttrType)$2; $$->name = $1; - $$->length = 4; + if ($$->type == AttrType::DATES) { + $$->length = 4; + } else { + $$->length = 4; + } } ; number: From 403cacacc9e02d5c50176a1e4693cbfff5911ba6 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Tue, 14 Oct 2025 12:08:33 +0000 Subject: [PATCH 08/13] feat.UPDATE1 --- .../sql/executor/command_executor.cpp | 4 + src/observer/sql/executor/update_executor.cpp | 108 ++++++++++++++++++ src/observer/sql/executor/update_executor.h | 4 + src/observer/sql/parser/yacc_sql.y | 1 + src/observer/sql/stmt/stmt.cpp | 4 + src/observer/sql/stmt/update_stmt.cpp | 48 +++++++- src/observer/sql/stmt/update_stmt.h | 12 +- .../storage/table/heap_table_engine.cpp | 73 ++++++++++++ .../storage/table/heap_table_engine.h | 5 +- 9 files changed, 249 insertions(+), 10 deletions(-) create mode 100644 src/observer/sql/executor/update_executor.cpp create mode 100644 src/observer/sql/executor/update_executor.h diff --git a/src/observer/sql/executor/command_executor.cpp b/src/observer/sql/executor/command_executor.cpp index 44efdea74..99cfab6c8 100644 --- a/src/observer/sql/executor/command_executor.cpp +++ b/src/observer/sql/executor/command_executor.cpp @@ -1,3 +1,4 @@ +#include "sql/executor/update_executor.h" /* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. miniob is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. @@ -34,6 +35,9 @@ RC CommandExecutor::execute(SQLStageEvent *sql_event) RC rc = RC::SUCCESS; switch (stmt->type()) { + case StmtType::UPDATE: { + rc = update_execute(sql_event); + } break; case StmtType::CREATE_INDEX: { CreateIndexExecutor executor; rc = executor.execute(sql_event); diff --git a/src/observer/sql/executor/update_executor.cpp b/src/observer/sql/executor/update_executor.cpp new file mode 100644 index 000000000..6631a53cc --- /dev/null +++ b/src/observer/sql/executor/update_executor.cpp @@ -0,0 +1,108 @@ + +#include "event/sql_event.h" +#include "event/session_event.h" +#include "sql/stmt/update_stmt.h" +#include "sql/stmt/filter_stmt.h" +#include "session/session.h" +#include "storage/table/table.h" +#include "storage/table/table_meta.h" +#include "storage/trx/trx.h" +#include "common/log/log.h" +#include "storage/record/record.h" +#include "storage/record/record_scanner.h" +#include "storage/common/condition_filter.h" + + +RC update_execute(SQLStageEvent *sql_event) { + auto *update_stmt = static_cast(sql_event->stmt()); + Table *table = update_stmt->table(); + Value *values = update_stmt->values(); + int value_amount = update_stmt->value_amount(); + FilterStmt *filter_stmt = update_stmt->filter_stmt(); + Session *session = sql_event->session_event()->session(); + Trx *trx = session ? session->current_trx() : nullptr; + + // 这里只实现单字段 update + if (value_amount != 1) { + LOG_ERROR("Only single field update is supported"); + return RC::UNIMPLEMENTED; + } + + const std::string &update_field_name = update_stmt->update_field_name(); + const TableMeta &table_meta = table->table_meta(); + const FieldMeta *field = table_meta.field(update_field_name.c_str()); + if (!field) { + LOG_ERROR("Field not found: %s", update_field_name); + return RC::SCHEMA_FIELD_MISSING; + } + + // 遍历表,找到需要更新的记录 + RecordScanner *scanner = nullptr; + RC rc = table->get_record_scanner(scanner, trx, ReadWriteMode::READ_WRITE); + if (rc != RC::SUCCESS) { + LOG_ERROR("Failed to get record scanner"); + return rc; + } + int update_count = 0; + Record record; + while (scanner->next(record) == RC::SUCCESS) { + // 判断是否满足 where 条件 + bool pass = true; + if (filter_stmt) { + // 只支持 AND 关系 + for (auto unit : filter_stmt->filter_units()) { + const FilterObj &left = unit->left(); + const FilterObj &right = unit->right(); + Value left_val, right_val; + if (left.is_attr) { + const FieldMeta *fm = left.field.meta(); + left_val.set_data(record.data() + fm->offset(), fm->len()); + } else { + left_val = left.value; + } + if (right.is_attr) { + const FieldMeta *fm = right.field.meta(); + right_val.set_data(record.data() + fm->offset(), fm->len()); + } else { + right_val = right.value; + } + // 只支持等值判断,可扩展 + if (unit->comp() == CompOp::EQUAL_TO) { + if (left_val.compare(right_val) != 0) { + pass = false; + break; + } + } else { + // 其他操作符可按需扩展 + pass = false; + break; + } + } + } + if (!pass) continue; + // 修改字段:构造一份可写的 new_record,再调用 table 的 update 接口 + Record new_record; + RC rc2 = new_record.copy_data(record.data(), record.len()); + if (rc2 != RC::SUCCESS) { + LOG_ERROR("Failed to copy record data before update. rc=%d", rc2); + continue; + } + new_record.set_rid(record.rid()); + // 使用 Record::set_field 修改字段(要求 new_record 拥有内存) + rc2 = new_record.set_field(field->offset(), field->len(), values[0].data()); + if (rc2 != RC::SUCCESS) { + LOG_ERROR("Failed to set field in new record. rc=%d", rc2); + continue; + } + + rc = table->update_record_with_trx(record, new_record, trx); + if (rc == RC::SUCCESS) { + update_count++; + } else { + LOG_WARN("update_record_with_trx failed. rc=%d", rc); + } + } + delete scanner; + if (update_count == 0) return RC::NOTFOUND; + return RC::SUCCESS; +} diff --git a/src/observer/sql/executor/update_executor.h b/src/observer/sql/executor/update_executor.h new file mode 100644 index 000000000..37212a670 --- /dev/null +++ b/src/observer/sql/executor/update_executor.h @@ -0,0 +1,4 @@ +#pragma once +#include "event/sql_event.h" + +RC update_execute(SQLStageEvent *sql_event); diff --git a/src/observer/sql/parser/yacc_sql.y b/src/observer/sql/parser/yacc_sql.y index 63a2cc474..fef1772f4 100644 --- a/src/observer/sql/parser/yacc_sql.y +++ b/src/observer/sql/parser/yacc_sql.y @@ -504,6 +504,7 @@ update_stmt: /* update 语句的语法解析树*/ $$->update.relation_name = $2; $$->update.attribute_name = $4; $$->update.value = *$6; + delete $6; /* 防止 Value 泄漏 */ if ($7 != nullptr) { $$->update.conditions.swap(*$7); delete $7; diff --git a/src/observer/sql/stmt/stmt.cpp b/src/observer/sql/stmt/stmt.cpp index 175e7b3c5..76f51426d 100644 --- a/src/observer/sql/stmt/stmt.cpp +++ b/src/observer/sql/stmt/stmt.cpp @@ -15,6 +15,7 @@ See the Mulan PSL v2 for more details. */ #include "sql/stmt/stmt.h" #include "common/log/log.h" #include "sql/stmt/analyze_table_stmt.h" +#include "sql/stmt/update_stmt.h" #include "sql/stmt/calc_stmt.h" #include "sql/stmt/create_index_stmt.h" #include "sql/stmt/create_table_stmt.h" @@ -60,6 +61,9 @@ RC Stmt::create_stmt(Db *db, ParsedSqlNode &sql_node, Stmt *&stmt) case SCF_SELECT: { return SelectStmt::create(db, sql_node.selection, stmt); } + case SCF_UPDATE: { + return UpdateStmt::create(db, sql_node.update, stmt); + } case SCF_EXPLAIN: { return ExplainStmt::create(db, sql_node.explain, stmt); diff --git a/src/observer/sql/stmt/update_stmt.cpp b/src/observer/sql/stmt/update_stmt.cpp index 92df6a6dc..34168ff64 100644 --- a/src/observer/sql/stmt/update_stmt.cpp +++ b/src/observer/sql/stmt/update_stmt.cpp @@ -1,3 +1,10 @@ +// 必须包含头文件后再定义析构函数 +#include "sql/stmt/update_stmt.h" +#include "sql/stmt/filter_stmt.h" + +UpdateStmt::~UpdateStmt() { + delete[] values_; +} /* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved. miniob is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. @@ -12,15 +19,46 @@ See the Mulan PSL v2 for more details. */ // Created by Wangyunlai on 2022/5/22. // + #include "sql/stmt/update_stmt.h" +#include "sql/stmt/filter_stmt.h" +#include "storage/db/db.h" +#include +StmtType UpdateStmt::type() const { + return StmtType::UPDATE; +} + -UpdateStmt::UpdateStmt(Table *table, Value *values, int value_amount) - : table_(table), values_(values), value_amount_(value_amount) -{} +UpdateStmt::UpdateStmt(Table *table, const std::string &update_field_name, Value *values, int value_amount, FilterStmt *filter_stmt) + : table_(table), update_field_name_(update_field_name), values_(values), value_amount_(value_amount), filter_stmt_(filter_stmt) {} RC UpdateStmt::create(Db *db, const UpdateSqlNode &update, Stmt *&stmt) { - // TODO stmt = nullptr; - return RC::INTERNAL; + if (db == nullptr) { + return RC::INVALID_ARGUMENT; + } + // 查找表 + Table *table = db->find_table(update.relation_name.c_str()); + if (table == nullptr) { + return RC::SCHEMA_TABLE_NOT_EXIST; + } + + // 构造 filter_stmt(条件) + unordered_map table_map; + table_map.insert(std::make_pair(update.relation_name, table)); + FilterStmt *filter_stmt = nullptr; + RC rc = RC::SUCCESS; + if (!update.conditions.empty()) { + rc = FilterStmt::create(db, table, &table_map, update.conditions.data(), static_cast(update.conditions.size()), filter_stmt); + if (rc != RC::SUCCESS) { + return rc; + } + } + + // 构造 update 的值 + Value *values = new Value[1]; + values[0] = update.value; + stmt = new UpdateStmt(table, update.attribute_name, values, 1, filter_stmt); + return RC::SUCCESS; } diff --git a/src/observer/sql/stmt/update_stmt.h b/src/observer/sql/stmt/update_stmt.h index 28e13268e..3f4bed5ef 100644 --- a/src/observer/sql/stmt/update_stmt.h +++ b/src/observer/sql/stmt/update_stmt.h @@ -14,10 +14,14 @@ See the Mulan PSL v2 for more details. */ #pragma once + #include "common/sys/rc.h" #include "sql/stmt/stmt.h" +#include + class Table; +class FilterStmt; /** * @brief 更新语句 @@ -26,19 +30,25 @@ class Table; class UpdateStmt : public Stmt { public: + ~UpdateStmt(); + StmtType type() const override; UpdateStmt() = default; - UpdateStmt(Table *table, Value *values, int value_amount); + UpdateStmt(Table *table, const std::string &update_field_name, Value *values, int value_amount, FilterStmt *filter_stmt = nullptr); public: static RC create(Db *db, const UpdateSqlNode &update_sql, Stmt *&stmt); public: Table *table() const { return table_; } + const std::string &update_field_name() const { return update_field_name_; } Value *values() const { return values_; } int value_amount() const { return value_amount_; } + FilterStmt *filter_stmt() const { return filter_stmt_; } private: Table *table_ = nullptr; + std::string update_field_name_; Value *values_ = nullptr; int value_amount_ = 0; + FilterStmt *filter_stmt_ = nullptr; }; diff --git a/src/observer/storage/table/heap_table_engine.cpp b/src/observer/storage/table/heap_table_engine.cpp index 88fcf046f..534a98983 100644 --- a/src/observer/storage/table/heap_table_engine.cpp +++ b/src/observer/storage/table/heap_table_engine.cpp @@ -113,6 +113,79 @@ RC HeapTableEngine::get_record_scanner(RecordScanner *&scanner, Trx *trx, ReadWr return rc; } +RC HeapTableEngine::update_record_with_trx(const Record &old_record, const Record &new_record, Trx *trx) +{ + RC rc = RC::SUCCESS; + // 1. 删除旧的索引条目 + for (Index *index : indexes_) { + rc = index->delete_entry(old_record.data(), &old_record.rid()); + if (rc != RC::SUCCESS) { + LOG_ERROR("failed to delete entry from index before update. table name=%s, index name=%s, rid=%s, rc=%s", + table_meta_->name(), index->index_meta().name(), old_record.rid().to_string().c_str(), strrc(rc)); + return rc; + } + } + + // 2. 更新数据页 + // 使用 visit_record 来安全更新页面内数据(visit_record 会复制页面数据并在页处理器中调用 update) + rc = record_handler_->visit_record(old_record.rid(), [&](Record &record) -> bool { + // 将 new_record 的数据复制到 visitor 提供的 record(它是一个拥有内存的副本) + RC rc_copy = record.copy_data(new_record.data(), new_record.len()); + if (rc_copy != RC::SUCCESS) { + LOG_ERROR("failed to copy new record data in visitor. rc=%d", rc_copy); + return false; + } + record.set_rid(old_record.rid()); + return true; + }); + if (rc != RC::SUCCESS) { + LOG_ERROR("failed to update record on page. table=%s, rid=%s, rc=%s", + table_meta_->name(), old_record.rid().to_string().c_str(), strrc(rc)); + // 尝试回滚:将旧索引重新插入 + for (Index *index : indexes_) { + RC rc2 = index->insert_entry(old_record.data(), &old_record.rid()); + if (rc2 != RC::SUCCESS) { + LOG_PANIC("failed to rollback index after update failure. table=%s, index=%s, rid=%s, rc=%s", + table_meta_->name(), index->index_meta().name(), old_record.rid().to_string().c_str(), strrc(rc2)); + } + } + return rc; + } + + // 3. 插入新的索引条目 + for (Index *index : indexes_) { + rc = index->insert_entry(new_record.data(), &new_record.rid()); + if (rc != RC::SUCCESS) { + LOG_ERROR("failed to insert entry into index after update. table=%s, index=%s, rid=%s, rc=%s", + table_meta_->name(), index->index_meta().name(), new_record.rid().to_string().c_str(), strrc(rc)); + // 回滚:恢复数据页为旧数据,并恢复旧索引 + RC rc2 = record_handler_->visit_record(old_record.rid(), [&](Record &record) -> bool { + RC rc_copy = record.copy_data(old_record.data(), old_record.len()); + if (rc_copy != RC::SUCCESS) { + LOG_ERROR("failed to copy old record data in rollback visitor. rc=%d", rc_copy); + return false; + } + record.set_rid(old_record.rid()); + return true; + }); + if (rc2 != RC::SUCCESS) { + LOG_PANIC("failed to rollback page data after index insert failure. table=%s, rid=%s, rc=%s", + table_meta_->name(), old_record.rid().to_string().c_str(), strrc(rc2)); + } + for (Index *idx2 : indexes_) { + RC rc3 = idx2->insert_entry(old_record.data(), &old_record.rid()); + if (rc3 != RC::SUCCESS) { + LOG_PANIC("failed to restore old index after index insert failure. table=%s, index=%s, rid=%s, rc=%s", + table_meta_->name(), idx2->index_meta().name(), old_record.rid().to_string().c_str(), strrc(rc3)); + } + } + return rc; + } + } + + return RC::SUCCESS; +} + RC HeapTableEngine::get_chunk_scanner(ChunkFileScanner &scanner, Trx *trx, ReadWriteMode mode) { RC rc = scanner.open_scan_chunk(table_, *data_buffer_pool_, db_->log_handler(), mode); diff --git a/src/observer/storage/table/heap_table_engine.h b/src/observer/storage/table/heap_table_engine.h index 1022fa40b..f2ecca139 100644 --- a/src/observer/storage/table/heap_table_engine.h +++ b/src/observer/storage/table/heap_table_engine.h @@ -31,10 +31,7 @@ class HeapTableEngine : public TableEngine RC delete_record(const Record &record) override; RC insert_record_with_trx(Record &record, Trx *trx) override { return RC::UNSUPPORTED; } RC delete_record_with_trx(const Record &record, Trx *trx) override { return RC::UNSUPPORTED; } - RC update_record_with_trx(const Record &old_record, const Record &new_record, Trx *trx) override - { - return RC::UNSUPPORTED; - } + RC update_record_with_trx(const Record &old_record, const Record &new_record, Trx *trx) override; RC get_record(const RID &rid, Record &record) override; RC create_index(Trx *trx, const FieldMeta *field_meta, const char *index_name, bool unique = false) override; From b87cc6e9bcf7efc3376f9bffcf38abe4c789eac0 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Tue, 14 Oct 2025 12:29:56 +0000 Subject: [PATCH 09/13] feat.UPDATE2 --- .miniob.history | 14 +- miniob/db/sys/dblwr.db | Bin 49252 -> 49252 bytes miniob/db/sys/good.data | Bin 0 -> 16384 bytes miniob/db/sys/good.table | 27 ++ observer.log.20251014 | 363 ++++++++++++++++++ src/observer/sql/executor/update_executor.cpp | 8 +- src/observer/sql/stmt/filter_stmt.cpp | 4 + src/observer/sql/stmt/update_stmt.cpp | 1 + 8 files changed, 414 insertions(+), 3 deletions(-) create mode 100644 miniob/db/sys/good.data create mode 100644 miniob/db/sys/good.table create mode 100644 observer.log.20251014 diff --git a/.miniob.history b/.miniob.history index e9e091ba5..6340fd4ef 100644 --- a/.miniob.history +++ b/.miniob.history @@ -66,5 +66,17 @@ DROP TABLE good drop table unique_table ### 2025-10-13 15:01:34.433 CREATE TABLE date_table(id int, u_date date); -### 2025-10-13 15:01:40.442 +### 2025-10-14 12:15:12.228 +create table good(id int,k1 int); +### 2025-10-14 12:15:21.524 +insert into good values(1,1); +### 2025-10-14 12:15:25.254 +insert into good values(2,2); +### 2025-10-14 12:16:10.134 +exit; +### 2025-10-14 12:21:16.822 +UPDATE good SET k1=2 WHERE id=1; +### 2025-10-14 12:21:21.324 exit; +### 2025-10-14 12:29:11.100 +show tables; diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db index 914fa7a59050b91f3a31ed1e6a6d58a5e0ce06f5..57948f77faa1d85d15fd5169b53abfb81776e9ca 100644 GIT binary patch delta 125 zcmaFT!2G0v*_Mfcfq@ZMTVmk07#B!L{Tk;q0(_>q^yxH+-mv;1Zi2Zsg#0_PYx delta 142 zcmaFT!2G0v*_D-nfq@5znSdA!_U+pTV+LvPr7{9JAi4ig0OEr%2rvUNn7{F&v;4#d qJ-Q%+;0llo%3R{T7i7p^ppF$l1`CkQviV{{vHZk> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-14 12:14:57.497837 pid:90880 tid:7dba2f8987c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-14 12:14:57.498679 pid:90880 tid:7dba2c6146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-14 12:14:57.500856 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.501669 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.502457 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.503236 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.504257 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.504941 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.505999 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.506736 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.507957 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.509389 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.510511 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.511283 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.512380 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.513774 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.514470 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.515141 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.516014 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.516722 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.517374 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.518089 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.518138 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:14:57.518149 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-14 12:14:57.518599 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=5 +[2025-10-14 12:14:57.518857 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-14 12:14:57.519771 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=0 +[2025-10-14 12:14:57.531965 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:11,page_num:0,lsn=0 +[2025-10-14 12:14:57.532098 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:11,page_num:1,lsn=0 +[2025-10-14 12:14:57.532149 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:12,page_num:0,lsn=0 +[2025-10-14 12:14:57.532166 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:12,page_num:1,lsn=0 +[2025-10-14 12:14:57.532180 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:12,page_num:2,lsn=0 +[2025-10-14 12:14:57.532205 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-14 12:14:57.532273 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-14 12:14:57.532323 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-14 12:14:57.532352 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-14 12:14:57.532370 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-14 12:15:12.230405 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-14 12:15:12.230495 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-14 12:15:12.230530 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:12.230543 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:15:12.230559 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:12.230573 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:15:12.230586 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:15:12.230607 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:12.230623 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:15:12.230630 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:15:12.230650 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:15:12.230746 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name good] +[2025-10-14 12:15:12.230876 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:good +[2025-10-14 12:15:12.231109 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-14 12:15:12.231181 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-14 12:15:12.231194 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=0, name=good +[2025-10-14 12:15:12.231661 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/good.data. +[2025-10-14 12:15:12.231840 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-14 12:15:12.231931 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7dba2b206808 +[2025-10-14 12:15:12.232035 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7dba2b206808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7dba2b206808 +[2025-10-14 12:15:12.232141 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/good.data:0, file_desc:10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0, this=0x7dba2b206808 +[2025-10-14 12:15:12.232197 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=10, hdr_frame=0x7dba2b206808, file header=pageCount:1, allocatedCount:1 +[2025-10-14 12:15:12.232295 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=10, bp=0x50e000006da0, lbt=0x4d1e0 0x5a68d4 0xe541e 0x331e32 0x337efe 0x148977 0x1139ce 0x1d0750 0x1cc157 0x76c9b 0x6ee67 0x6f96b 0x6c13c 0x40ae8 0x21ca 0x228b 0x44b75 +[2025-10-14 12:15:12.232678 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-14 12:15:12.232713 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-14 12:15:12.232736 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:good +[2025-10-14 12:15:12.232762 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: create_table@db.cpp:175] >> Create table success. table name=good, table_id:0 +[2025-10-14 12:15:12.232851 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:1 +[2025-10-14 12:15:12.232883 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7dba2b206808 +[2025-10-14 12:15:12.232927 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:15:12.232947 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:15:12.237948 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:15:12.238066 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=559150982 +[2025-10-14 12:15:12.238105 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:15:12.238399 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:15:12.238442 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:15:12.238460 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-14 12:15:12.238589 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:15:21.526412 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:15:21.526458 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:15:21.526470 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:21.526538 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:15:21.526596 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:15:21.526624 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:15:21.526685 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:15:21.526703 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:15:21.526719 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:15:21.526745 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:15:21.527045 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:15:21.527250 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:15:21.527344 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7dba2b208870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:15:21.527392 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=1, pageNum=1, pin=1 +[2025-10-14 12:15:21.527466 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:15:21.527521 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:15:21.527571 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=2, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:15:21.527612 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:15:21.527730 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:15:25.255051 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:15:25.255143 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:15:25.255156 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:25.255169 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:15:25.255175 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:15:25.255184 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:15:25.255195 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:15:25.255207 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:15:25.255217 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:15:25.255229 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:15:25.255311 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:15:25.255473 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:15:25.255576 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:15:25.255670 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:15:54.272832 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-14 12:15:54.272924 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:54.272984 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-14 12:15:54.272999 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:54.273007 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:15:54.273017 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:15:54.273029 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-14 12:15:54.273043 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:15:54.273050 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:15:54.273061 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:15:54.273091 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:15:54.273270 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:15:54.273399 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:15:54.273434 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 WARN: set_data@value.cpp:135] >> unknown data type: 0 +[2025-10-14 12:15:54.273454 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 WARN: set_data@value.cpp:135] >> unknown data type: 0 +[2025-10-14 12:15:54.273467 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=NOTFOUND +[2025-10-14 12:15:54.273481 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=NOTFOUND +[2025-10-14 12:15:54.273540 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:16:06.955679 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-14 12:16:06.955734 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:16:06.955748 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-14 12:16:06.955759 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:16:06.955765 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:16:06.955778 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:16:06.955791 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-14 12:16:06.955800 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:16:06.955806 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:16:06.955820 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:16:06.955832 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:16:06.955958 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=1, pin=1, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:16:06.956021 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:16:06.956046 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 WARN: set_data@value.cpp:135] >> unknown data type: 0 +[2025-10-14 12:16:06.956061 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 WARN: set_data@value.cpp:135] >> unknown data type: 0 +[2025-10-14 12:16:06.956071 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=NOTFOUND +[2025-10-14 12:16:06.956083 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=NOTFOUND +[2025-10-14 12:16:06.956144 pid:90880 tid:7dba2f8987c0 ctx:5040000002d0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:16:10.134723 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-14 12:16:10.134842 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-14 12:16:10.134929 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size=1 +[2025-10-14 12:16:10.134969 pid:90880 tid:7dba2f8987c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7dba2b208870 +[2025-10-14 12:16:10.135070 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:16:10.135112 pid:90880 tid:7dba2f8987c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=10, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7dba2b206808 +[2025-10-14 12:16:10.135131 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:16:10.135149 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:16:10.140871 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:16:10.140994 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:16:10.141033 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:16:10.141066 pid:90880 tid:7dba2f8987c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=974638397 +[2025-10-14 12:16:10.141086 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:16:10.141285 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:16:10.141333 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:16:10.141413 pid:90880 tid:7dba2f8987c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7dba2b208870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-14 12:16:10.141490 pid:90880 tid:7dba2f8987c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7dba2b206808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-14 12:16:10.141539 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-14 12:16:10.141568 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 10:miniob/db/sys/good.data. +[2025-10-14 12:16:10.141593 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:16:10.141607 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-14 12:16:10.150562 pid:90880 tid:7dba2c6146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-14 12:16:10.341832 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-14 12:16:10.352293 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-14 12:16:10.352463 pid:90880 tid:7dba2f8987c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-14 12:21:12.202471 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-14 12:21:12.203644 pid:96487 tid:76fa7ed4b7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-14 12:21:12.204647 pid:96487 tid:76fa7bb146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-14 12:21:12.206619 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.207278 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.207891 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.208497 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.209079 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.209608 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.210246 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.210945 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.211541 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.212090 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.212572 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.213021 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.213540 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.214072 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.214626 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.215196 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.215643 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.216055 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.216438 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.216851 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.216882 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:21:12.216891 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-14 12:21:12.217081 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=2 +[2025-10-14 12:21:12.217273 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-14 12:21:12.218532 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-14 12:21:12.218789 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-14 12:21:12.219056 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-14 12:21:12.219604 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x76fa7a706808 +[2025-10-14 12:21:12.219795 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76fa7a706808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x76fa7a706808 +[2025-10-14 12:21:12.219994 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-14 12:21:12.220066 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x76fa7a706808, file header=pageCount:2, allocatedCount:2 +[2025-10-14 12:21:12.220166 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a6964 0xe533e 0x331ec2 0x337f8e 0x14d019 0x11b617 0x125ba6 0x130d48 0x13443b 0x5189e 0x59121 0x40a9f 0x21ca 0x228b 0x44b75 +[2025-10-14 12:21:12.221160 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76fa7a708870 +[2025-10-14 12:21:12.221250 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76fa7a708870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76fa7a708870 +[2025-10-14 12:21:12.221344 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-14 12:21:12.221381 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:21:12.221412 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-14 12:21:12.221446 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-14 12:21:12.221551 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-14 12:21:12.221566 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-14 12:21:12.346623 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:21:12.346835 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:21:12.346884 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-14 12:21:12.346917 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-14 12:21:12.346974 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-14 12:21:12.347003 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-14 12:21:12.347034 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-14 12:21:16.824242 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-14 12:21:16.824380 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:21:16.824399 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-14 12:21:16.824415 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:21:16.824424 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:21:16.824436 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:21:16.824452 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-14 12:21:16.824473 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:21:16.824483 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:21:16.824498 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:21:16.824545 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:21:16.824773 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76fa7a708870 +[2025-10-14 12:21:16.824896 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:21:16.824931 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 WARN: set_data@value.cpp:135] >> unknown data type: 0 +[2025-10-14 12:21:16.824949 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 WARN: set_data@value.cpp:135] >> unknown data type: 0 +[2025-10-14 12:21:16.824969 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=NOTFOUND +[2025-10-14 12:21:16.824993 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=NOTFOUND +[2025-10-14 12:21:16.825127 pid:96487 tid:76fa7ed4b7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:21:21.325006 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-14 12:21:21.325106 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-14 12:21:21.325182 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:21:21.325250 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76fa7a708870 +[2025-10-14 12:21:21.325363 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:21:21.325379 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x76fa7a706808 +[2025-10-14 12:21:21.325396 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:21:21.325409 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:21:21.329155 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:21:21.329310 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:21:21.329369 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:21:21.329389 pid:96487 tid:76fa7ed4b7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=974638397 +[2025-10-14 12:21:21.329410 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:21:21.329817 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:21:21.329868 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:21:21.329924 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76fa7a708870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-14 12:21:21.330027 pid:96487 tid:76fa7ed4b7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76fa7a706808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-14 12:21:21.330085 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-14 12:21:21.330139 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-14 12:21:21.330164 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:21:21.330214 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-14 12:21:21.338112 pid:96487 tid:76fa7bb146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-14 12:21:21.530583 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-14 12:21:21.536626 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-14 12:21:21.536740 pid:96487 tid:76fa7ed4b7c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-14 12:29:07.421803 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-14 12:29:07.422240 pid:103215 tid:73f14a9207c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-14 12:29:07.423166 pid:103215 tid:73f1477146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-14 12:29:07.425162 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.425944 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.426463 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.427092 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.427729 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.428640 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.429179 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.429592 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.430038 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.430470 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.431027 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.431619 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.432097 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.432651 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.433249 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.433861 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.434384 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.434917 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.435459 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.435966 pid:103215 tid:73f14a9207c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.436006 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:29:07.436018 pid:103215 tid:73f14a9207c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-14 12:29:07.436259 pid:103215 tid:73f14a9207c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=2 +[2025-10-14 12:29:07.436608 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-14 12:29:07.437649 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-14 12:29:07.437720 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-14 12:29:07.437888 pid:103215 tid:73f14a9207c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-14 12:29:07.438028 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x73f146306808 +[2025-10-14 12:29:07.438107 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x73f146306808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x73f146306808 +[2025-10-14 12:29:07.438187 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-14 12:29:07.438212 pid:103215 tid:73f14a9207c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x73f146306808, file header=pageCount:2, allocatedCount:2 +[2025-10-14 12:29:07.438310 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a6494 0xe52ce 0x3319f2 0x337abe 0x14cfa9 0x11b5a7 0x125b36 0x130cd8 0x1343cb 0x5182e 0x590b1 0x40a2f 0x21ca 0x228b 0x44b05 +[2025-10-14 12:29:07.438685 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x73f146308870 +[2025-10-14 12:29:07.438763 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x73f146308870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x73f146308870 +[2025-10-14 12:29:07.438825 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-14 12:29:07.438852 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:29:07.438872 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-14 12:29:07.438889 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-14 12:29:07.438922 pid:103215 tid:73f14a9207c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-14 12:29:07.438932 pid:103215 tid:73f14a9207c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-14 12:29:07.559558 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:29:07.559766 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:29:07.559803 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-14 12:29:07.559832 pid:103215 tid:73f14a9207c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-14 12:29:07.559927 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-14 12:29:07.559945 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-14 12:29:07.559981 pid:103215 tid:73f14a9207c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-14 12:29:11.102160 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:96] >> SHOW +[2025-10-14 12:29:11.102242 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-14 12:29:11.102258 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:29:11.102530 pid:103215 tid:73f14a9207c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:29:16.564666 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-14 12:29:16.564831 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:29:16.564849 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-14 12:29:16.564897 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:29:16.564915 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:29:16.564927 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:29:16.564939 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-14 12:29:16.564948 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:29:16.564953 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:29:16.564964 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:29:16.564989 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:29:16.565195 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x73f146308870 +[2025-10-14 12:29:16.565275 pid:103215 tid:73f14a9207c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:29:16.565337 pid:103215 tid:73f14a9207c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=2, lsn=0, this=0x73f146308870 +[2025-10-14 12:29:16.565422 pid:103215 tid:73f14a9207c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:29:16.565556 pid:103215 tid:73f14a9207c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS diff --git a/src/observer/sql/executor/update_executor.cpp b/src/observer/sql/executor/update_executor.cpp index 6631a53cc..a3f99f317 100644 --- a/src/observer/sql/executor/update_executor.cpp +++ b/src/observer/sql/executor/update_executor.cpp @@ -32,7 +32,7 @@ RC update_execute(SQLStageEvent *sql_event) { const TableMeta &table_meta = table->table_meta(); const FieldMeta *field = table_meta.field(update_field_name.c_str()); if (!field) { - LOG_ERROR("Field not found: %s", update_field_name); + LOG_ERROR("Field not found: %s", update_field_name.c_str()); return RC::SCHEMA_FIELD_MISSING; } @@ -40,7 +40,7 @@ RC update_execute(SQLStageEvent *sql_event) { RecordScanner *scanner = nullptr; RC rc = table->get_record_scanner(scanner, trx, ReadWriteMode::READ_WRITE); if (rc != RC::SUCCESS) { - LOG_ERROR("Failed to get record scanner"); + LOG_ERROR("Failed to get record scanner. rc=%d", rc); return rc; } int update_count = 0; @@ -56,12 +56,16 @@ RC update_execute(SQLStageEvent *sql_event) { Value left_val, right_val; if (left.is_attr) { const FieldMeta *fm = left.field.meta(); + // set the value type first so set_data can interpret raw bytes correctly + left_val.set_type(fm->type()); left_val.set_data(record.data() + fm->offset(), fm->len()); } else { left_val = left.value; } if (right.is_attr) { const FieldMeta *fm = right.field.meta(); + // set the value type first so set_data can interpret raw bytes correctly + right_val.set_type(fm->type()); right_val.set_data(record.data() + fm->offset(), fm->len()); } else { right_val = right.value; diff --git a/src/observer/sql/stmt/filter_stmt.cpp b/src/observer/sql/stmt/filter_stmt.cpp index aa078bcbb..61a8810ff 100644 --- a/src/observer/sql/stmt/filter_stmt.cpp +++ b/src/observer/sql/stmt/filter_stmt.cpp @@ -97,6 +97,8 @@ RC FilterStmt::create_filter_unit(Db *db, Table *default_table, unordered_map Date: Tue, 14 Oct 2025 12:33:10 +0000 Subject: [PATCH 10/13] fix.fix --- .miniob.history | 8 ++++---- miniob/db/sys/dblwr.db | Bin 49252 -> 49252 bytes miniob/db/sys/good.data | Bin 16384 -> 16384 bytes observer.log.20251014 | 25 +++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/.miniob.history b/.miniob.history index 6340fd4ef..51541f4a3 100644 --- a/.miniob.history +++ b/.miniob.history @@ -74,9 +74,9 @@ insert into good values(1,1); insert into good values(2,2); ### 2025-10-14 12:16:10.134 exit; -### 2025-10-14 12:21:16.822 -UPDATE good SET k1=2 WHERE id=1; -### 2025-10-14 12:21:21.324 -exit; ### 2025-10-14 12:29:11.100 show tables; +### 2025-10-14 12:29:16.564 +UPDATE good SET k1=2 WHERE id=1; +### 2025-10-14 12:30:32.172 +exit; diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db index 57948f77faa1d85d15fd5169b53abfb81776e9ca..f24f579e51fa12ba08c2b2a567381e94b05fb969 100644 GIT binary patch delta 41 ucmaFT!2G0vd4defM2E=D6BU+lGBGePfbqtQ&hirjSSB7|*({;pvj6}WF$}c; delta 41 vcmaFT!2G0vd4dd!?OAcFi3&?N85tNDm_T^rMQ8bm0W1>_uxyr4@L2!=2s;ci diff --git a/miniob/db/sys/good.data b/miniob/db/sys/good.data index 701e941a75ef87a8307bc61bbe5b94183f671d7a..64e4a525aa16da009a7447cfd3fbe9229cddca31 100644 GIT binary patch delta 25 hcmZo@U~Fh$+`ys0GSMM&^JE@{C5%j)H!Aqc0|0BN2owMS delta 25 gcmZo@U~Fh$+`ys0VtZEHYBG<)5=O?&8x{QJ0cB> got a frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=2, lsn=0, this=0x73f146308870 [2025-10-14 12:29:16.565422 pid:103215 tid:73f14a9207c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. [2025-10-14 12:29:16.565556 pid:103215 tid:73f14a9207c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:30:32.174222 pid:103215 tid:73f14a9207c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-14 12:30:32.174271 pid:103215 tid:73f14a9207c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-14 12:30:32.174387 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:30:32.174452 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x73f146308870 +[2025-10-14 12:30:32.174557 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:30:32.174582 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x73f146306808 +[2025-10-14 12:30:32.174601 pid:103215 tid:73f14a9207c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:30:32.174622 pid:103215 tid:73f14a9207c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:30:32.178978 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:30:32.179145 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:30:32.179203 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:30:32.179226 pid:103215 tid:73f14a9207c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:30:32.179247 pid:103215 tid:73f14a9207c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:30:32.179549 pid:103215 tid:73f14a9207c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:30:32.179588 pid:103215 tid:73f14a9207c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:30:32.179639 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x73f146308870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-14 12:30:32.179704 pid:103215 tid:73f14a9207c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x73f146306808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-14 12:30:32.179752 pid:103215 tid:73f14a9207c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-14 12:30:32.179772 pid:103215 tid:73f14a9207c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-14 12:30:32.179818 pid:103215 tid:73f14a9207c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:30:32.179861 pid:103215 tid:73f14a9207c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-14 12:30:32.189893 pid:103215 tid:73f1477146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-14 12:30:32.380176 pid:103215 tid:73f14a9207c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-14 12:30:32.393684 pid:103215 tid:73f14a9207c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-14 12:30:32.393813 pid:103215 tid:73f14a9207c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! From 0283bf6a58508999f0a4eb1ed99ded23b5c1a366 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Thu, 16 Oct 2025 01:54:24 +0000 Subject: [PATCH 11/13] =?UTF-8?q?fix.UPDATE=E7=9A=84id=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E6=97=B6=E4=B9=9F=E8=BF=94=E5=9B=9ESUCCESS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .miniob.history | 28 +- miniob/db/sys/dblwr.db | Bin 49252 -> 49252 bytes observer.log.20251014 | 758 ++++++++++++++++++ src/observer/sql/executor/update_executor.cpp | 2 +- 4 files changed, 786 insertions(+), 2 deletions(-) diff --git a/.miniob.history b/.miniob.history index 51541f4a3..a47b1fd2f 100644 --- a/.miniob.history +++ b/.miniob.history @@ -78,5 +78,31 @@ exit; show tables; ### 2025-10-14 12:29:16.564 UPDATE good SET k1=2 WHERE id=1; -### 2025-10-14 12:30:32.172 +### 2025-10-14 12:44:55.173 +CREATE INDEX index_id on Update_table_1(id);INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1);INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2);INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3); +### 2025-10-14 12:45:05.565 +select* from Update_table_1; +### 2025-10-14 12:45:11.176 + INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2); +### 2025-10-14 12:45:12.139 + INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3); +### 2025-10-14 12:45:34.538 +UPDATE Update_table_1 SET t_name='N01' WHERE id=1; +### 2025-10-14 12:47:09.331 +CREATE TABLE Update_table_1(id int, t_name char(4), col1 int, col2 int); +### 2025-10-14 12:47:10.241 +CREATE INDEX index_id on Update_table_1(id); +### 2025-10-14 12:47:16.317 +INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1); +### 2025-10-14 12:47:16.322 +INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2); +### 2025-10-14 12:47:16.990 +INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3); +### 2025-10-14 12:47:33.960 +INSERT INTO Update_table_1 VALUES (100, 'N100', 100, 100); +### 2025-10-14 12:47:40.416 +UPDATE Update_table_1 SET t_name='N01' WHERE id=100; +### 2025-10-14 12:47:53.557 +drop table Update_table_1; +### 2025-10-14 12:47:56.178 exit; diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db index f24f579e51fa12ba08c2b2a567381e94b05fb969..313f3f13f8017265e6da1fd389b7b14a972a0782 100644 GIT binary patch delta 66 zcmaFT!2G0vd4r0BEHeWHFoCFj`}RS(4D9dUoMzta==gB0GR>OgTdc;(OG_CfCeYXG7w> Db has been closed: sys [2025-10-14 12:30:32.393684 pid:103215 tid:73f14a9207c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. [2025-10-14 12:30:32.393813 pid:103215 tid:73f14a9207c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-14 12:44:39.897798 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-14 12:44:39.900189 pid:112513 tid:7f1f410f47c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-14 12:44:39.901634 pid:112513 tid:7f1f3df146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-14 12:44:39.904433 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.904853 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.905386 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.905801 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.906298 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.907039 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.907621 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.908789 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.909457 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.909993 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.910560 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.911133 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.911687 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.912639 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.913459 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.914471 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.915740 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.916526 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.917100 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.917706 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.917738 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:44:39.917747 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-14 12:44:39.918877 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=2 +[2025-10-14 12:44:39.920184 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-14 12:44:39.921733 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-14 12:44:39.921790 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-14 12:44:39.922800 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-14 12:44:39.923183 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7f1f3cb06808 +[2025-10-14 12:44:39.923262 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f1f3cb06808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7f1f3cb06808 +[2025-10-14 12:44:39.923362 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-14 12:44:39.923381 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x7f1f3cb06808, file header=pageCount:2, allocatedCount:2 +[2025-10-14 12:44:39.923508 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a6494 0xe52ce 0x3319f2 0x337abe 0x14cfa9 0x11b5a7 0x125b36 0x130cd8 0x1343cb 0x5182e 0x590b1 0x40a2f 0x21ca 0x228b 0x44b05 +[2025-10-14 12:44:39.925142 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb08870 +[2025-10-14 12:44:39.925207 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f1f3cb08870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb08870 +[2025-10-14 12:44:39.925304 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-14 12:44:39.925619 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:44:39.925658 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-14 12:44:39.925684 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-14 12:44:39.925755 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-14 12:44:39.925766 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-14 12:44:39.928611 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:44:39.928698 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:44:39.928753 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-14 12:44:39.928771 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-14 12:44:39.928851 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-14 12:44:39.928877 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-14 12:44:39.928908 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-14 12:44:41.563222 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-14 12:44:41.563862 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-14 12:44:41.563920 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:41.563938 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:44:41.563950 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:41.563961 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:44:41.563993 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:44:41.564035 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:41.564219 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:115] >> STRING_T +[2025-10-14 12:44:41.564260 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:44:41.564272 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:44:41.564282 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:44:41.564320 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:44:41.564333 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:41.564339 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:44:41.564347 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:44:41.564358 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:41.564365 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:44:41.564371 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:44:41.564385 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:44:41.564597 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name Update_table_1] +[2025-10-14 12:44:41.565050 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:Update_table_1 +[2025-10-14 12:44:41.565595 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-14 12:44:41.565647 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=t_name +[2025-10-14 12:44:41.565664 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-14 12:44:41.565677 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-14 12:44:41.565683 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=1, name=Update_table_1 +[2025-10-14 12:44:41.566894 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/Update_table_1.data. +[2025-10-14 12:44:41.567129 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/Update_table_1.data. +[2025-10-14 12:44:41.567210 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0a8d8 +[2025-10-14 12:44:41.567279 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f1f3cb0a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0a8d8 +[2025-10-14 12:44:41.568444 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/Update_table_1.data:0, file_desc:11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0a8d8 +[2025-10-14 12:44:41.569113 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/Update_table_1.data. file_desc=11, hdr_frame=0x7f1f3cb0a8d8, file header=pageCount:1, allocatedCount:1 +[2025-10-14 12:44:41.569169 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=11, bp=0x50e00000ffc0, lbt=0x4d1e0 0x5a6494 0xe52ce 0x3319f2 0x337abe 0x148827 0x11387e 0x1d0600 0x1cc007 0x76c2b 0x6edf7 0x6f8fb 0x6c0cc 0x40a78 0x21ca 0x228b 0x44b05 +[2025-10-14 12:44:41.569231 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-14 12:44:41.569701 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-14 12:44:41.569743 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:Update_table_1 +[2025-10-14 12:44:41.569770 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create_table@db.cpp:175] >> Create table success. table name=Update_table_1, table_id:1 +[2025-10-14 12:44:41.569907 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:1 +[2025-10-14 12:44:41.569968 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb0a8d8 +[2025-10-14 12:44:41.570022 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=Update_table_1 +[2025-10-14 12:44:41.570039 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:Update_table_1. +[2025-10-14 12:44:41.570184 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:2 +[2025-10-14 12:44:41.570246 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb08870 +[2025-10-14 12:44:41.570372 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:44:41.570422 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb06808 +[2025-10-14 12:44:41.570447 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:44:41.570461 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:44:41.574842 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:44:41.574950 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:44:41.574989 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:44:41.575013 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:44:41.575034 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-14 12:44:41.575073 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-14 12:44:41.575093 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:44:41.575888 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:44:41.575981 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:44:41.575998 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-14 12:44:41.576278 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:44:55.175297 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-14 12:44:55.175334 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-14 12:44:55.175352 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:55.175359 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-14 12:44:55.175370 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:55.175378 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:44:55.175386 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:44:55.175392 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:44:55.175405 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:44:55.175415 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:44:55.175444 pid:112513 tid:7f1f410f47c0 ctx:504000000490 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-14 12:44:55.176668 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:44:55.176698 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/Update_table_1-index_id.index +[2025-10-14 12:44:55.176748 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:44:55.176794 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0c940 +[2025-10-14 12:44:55.176839 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f1f3cb0c940, page num 0, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0c940 +[2025-10-14 12:44:55.176905 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/Update_table_1-index_id.index:0, file_desc:13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0c940 +[2025-10-14 12:44:55.176947 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/Update_table_1-index_id.index. file_desc=13, hdr_frame=0x7f1f3cb0c940, file header=pageCount:1, allocatedCount:1 +[2025-10-14 12:44:55.176994 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e000014320, lbt=0x4d1e0 0x5a6494 0xe52ce 0x438aa8 0x487dcd 0x33b6fb 0x1cbefb 0x76c2b 0x6edf7 0x6f8fb 0x6c0cc 0x40a78 0x21ca 0x228b 0x44b05 +[2025-10-14 12:44:55.177031 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:44:55.177482 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0e9a8 +[2025-10-14 12:44:55.177559 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f1f3cb0e9a8, page num 1, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0e9a8 +[2025-10-14 12:44:55.177649 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=1, pin=1 +[2025-10-14 12:44:55.177726 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:44:55.177789 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0e9a8 +[2025-10-14 12:44:55.177935 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:12, item_num_per_pool:128, this->name:b+tree. +[2025-10-14 12:44:55.177969 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:12, item_num_per_pool:128, this->name:b+tree. +[2025-10-14 12:44:55.178024 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=1 +[2025-10-14 12:44:55.178060 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f1f3cb0e9a8 +[2025-10-14 12:44:55.178145 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:44:55.178185 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb0c940 +[2025-10-14 12:44:55.178210 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create@bplus_tree.cpp:908] >> Successfully create index +[2025-10-14 12:44:55.178267 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:44:55.178299 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/Update_table_1-index_id.index, index:index_id, field:id +[2025-10-14 12:44:55.178396 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create_index@heap_table_engine.cpp:252] >> inserted all records into new index. table=Update_table_1, index=index_id +[2025-10-14 12:44:55.179008 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: create_index@heap_table_engine.cpp:293] >> Successfully added a new index (index_id) on the table (Update_table_1) +[2025-10-14 12:44:55.179118 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=2 +[2025-10-14 12:44:55.179163 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0e9a8 +[2025-10-14 12:44:55.179277 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size=2 +[2025-10-14 12:44:55.179312 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb0c940 +[2025-10-14 12:44:55.179408 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:44:55.179434 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb0a8d8 +[2025-10-14 12:44:55.179468 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=Update_table_1 +[2025-10-14 12:44:55.179481 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:Update_table_1. +[2025-10-14 12:44:55.179564 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:4 +[2025-10-14 12:44:55.179600 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb08870 +[2025-10-14 12:44:55.179686 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-14 12:44:55.179729 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb06808 +[2025-10-14 12:44:55.179748 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:44:55.179757 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:44:55.183142 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:44:55.183231 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:44:55.183313 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:44:55.183336 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:44:55.183359 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2025-10-14 12:44:55.183380 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-1307057313 +[2025-10-14 12:44:55.183423 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-14 12:44:55.183445 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-14 12:44:55.183466 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:1,lsn=0 +[2025-10-14 12:44:55.183492 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=1028209143 +[2025-10-14 12:44:55.183508 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:44:55.183704 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:44:55.183725 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:44:55.183737 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-14 12:44:55.183835 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:05.567072 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-14 12:45:05.567123 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-14 12:45:05.567147 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:05.567172 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:45:05.569266 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:45:05.569767 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-14 12:45:05.569820 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-14 12:45:05.570043 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:11.173188 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:45:11.173214 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:45:11.173228 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:11.173236 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:45:11.173246 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:45:11.173254 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:11.173269 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:11.173277 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:45:11.173312 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:11.173323 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:11.173335 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:11.173341 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:11.173352 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:45:11.173373 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:45:11.173467 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:45:11.173547 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:11.173593 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f1f3cb10a10, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:11.173636 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=1, pin=1 +[2025-10-14 12:45:11.173703 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:45:11.173737 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:11.173820 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=2, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:11.173845 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:45:11.175580 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:11.175701 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7f1f3cb12a78, page num 2, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:11.175732 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=2, pin=1 +[2025-10-14 12:45:11.175804 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:2,lsn=0, dwb size:2 +[2025-10-14 12:45:11.175851 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:11.175946 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0e9a8 +[2025-10-14 12:45:11.176059 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1473] >> set root page to 2 +[2025-10-14 12:45:11.176204 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:11.176747 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:45:11.176783 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:45:11.176797 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:11.176804 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:45:11.176811 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:45:11.176822 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:11.176883 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:11.176895 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:45:11.176913 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:11.176922 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:11.176933 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:11.176939 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:11.176946 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:45:11.176959 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:45:11.177033 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:45:11.177114 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:11.177159 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:45:11.177259 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:45:11.177278 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:11.177343 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:45:11.177389 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-14 12:45:11.177465 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:12.139952 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:45:12.140038 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:45:12.140055 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:12.140064 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:45:12.140074 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:45:12.140086 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:12.140099 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:12.140108 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:45:12.140126 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:12.140134 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:12.140144 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:45:12.140150 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:12.140161 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:45:12.140173 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:45:12.140255 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:45:12.140340 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:12.140398 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:45:12.140435 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:45:12.140453 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:12.140472 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:45:12.140504 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-14 12:45:12.140579 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:32.425516 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-14 12:45:32.425551 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:32.425564 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-14 12:45:32.425572 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:32.425581 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:45:32.425592 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:45:32.425608 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-14 12:45:32.425617 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:32.425625 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:45:32.425642 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:32.425664 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:45:32.425822 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:32.425892 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:45:32.425933 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=NOTFOUND +[2025-10-14 12:45:32.425947 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=NOTFOUND +[2025-10-14 12:45:32.425999 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:34.539000 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-14 12:45:34.539083 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:34.539097 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-14 12:45:34.539107 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:34.539112 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:45:34.539122 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:45:34.539135 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-14 12:45:34.539143 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:34.539155 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:45:34.539166 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:45:34.539177 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:45:34.539270 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:34.539320 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:45:34.539363 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:45:34.539378 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:34.539403 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:45:34.539494 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=2, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:34.539570 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:45:34.539631 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:45:34.539649 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:34.539671 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:45:34.539705 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-14 12:45:34.539846 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:45.416818 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-14 12:45:45.416848 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-14 12:45:45.416859 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:45:45.416873 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:45:45.416906 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name Update_table_1] +[2025-10-14 12:45:45.417244 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=2 +[2025-10-14 12:45:45.417298 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb10a10 +[2025-10-14 12:45:45.417332 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f1f3cb10a10, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-14 12:45:45.417423 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:45:45.417474 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0a8d8 +[2025-10-14 12:45:45.417500 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f1f3cb0a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-14 12:45:45.417536 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/Update_table_1.data, page count=2 +[2025-10-14 12:45:45.417556 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=932441496 +[2025-10-14 12:45:45.417581 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=-239809603 +[2025-10-14 12:45:45.417629 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 11:miniob/db/sys/Update_table_1.data. +[2025-10-14 12:45:45.417654 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:45:45.417671 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-14 12:45:45.417718 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:2,lsn=0, dwb size=1 +[2025-10-14 12:45:45.417755 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7f1f3cb12a78 +[2025-10-14 12:45:45.417775 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f1f3cb12a78, page 2 frame_id=buffer_pool_id:3,page_num:2 +[2025-10-14 12:45:45.417842 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:2 +[2025-10-14 12:45:45.417883 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0e9a8 +[2025-10-14 12:45:45.417906 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f1f3cb0e9a8, page 1 frame_id=buffer_pool_id:3,page_num:1 +[2025-10-14 12:45:45.417969 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:45:45.417989 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7f1f3cb0c940 +[2025-10-14 12:45:45.418003 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f1f3cb0c940, page 0 frame_id=buffer_pool_id:3,page_num:0 +[2025-10-14 12:45:45.418021 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/Update_table_1-index_id.index, page count=3 +[2025-10-14 12:45:45.418036 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-873664761 +[2025-10-14 12:45:45.418052 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=-1257644959 +[2025-10-14 12:45:45.418069 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:2, lsn=0, check_sum=-1294300631 +[2025-10-14 12:45:45.418122 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:45:45.418141 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:45:45.418162 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-14 12:45:45.418206 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-14 12:45:45.418218 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: Update_table_1 +[2025-10-14 12:45:45.418233 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: drop_table@db.cpp:242] >> Drop table success. table name=Update_table_1 +[2025-10-14 12:45:45.418302 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:45:45.418315 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb08870 +[2025-10-14 12:45:45.418394 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:45:45.418443 pid:112513 tid:7f1f410f47c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb06808 +[2025-10-14 12:45:45.418472 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:45:45.418482 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:45:45.422957 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:45:45.423057 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:45:45.423083 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:45:45.423097 pid:112513 tid:7f1f410f47c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:45:45.423117 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:45:45.423263 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:45:45.423280 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:45:45.423287 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-14 12:45:45.423344 pid:112513 tid:7f1f410f47c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:45:51.671445 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-14 12:45:51.671478 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-14 12:45:51.671575 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:45:51.671625 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7f1f3cb08870 +[2025-10-14 12:45:51.671706 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:45:51.671723 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7f1f3cb06808 +[2025-10-14 12:45:51.671739 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:45:51.671750 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:45:51.675902 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:45:51.675995 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:45:51.676043 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:45:51.676058 pid:112513 tid:7f1f410f47c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:45:51.676078 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:45:51.676230 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:45:51.676257 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:45:51.676287 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f1f3cb08870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-14 12:45:51.676325 pid:112513 tid:7f1f410f47c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7f1f3cb06808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-14 12:45:51.676342 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-14 12:45:51.676355 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-14 12:45:51.676375 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:45:51.676384 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-14 12:45:51.684527 pid:112513 tid:7f1f3df146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-14 12:45:51.876581 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-14 12:45:51.890779 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-14 12:45:51.890892 pid:112513 tid:7f1f410f47c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-14 12:47:03.423976 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-14 12:47:03.424299 pid:114115 tid:76a07b6077c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-14 12:47:03.425003 pid:114115 tid:76a0784146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-14 12:47:03.425964 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.426455 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.426946 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.427505 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.428097 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.428753 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.429302 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.429751 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.430220 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.430668 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.431128 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.431565 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.432000 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.432476 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.433050 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.433498 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.433910 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.434274 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.434656 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.435082 pid:114115 tid:76a07b6077c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.435125 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-14 12:47:03.435135 pid:114115 tid:76a07b6077c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-14 12:47:03.435334 pid:114115 tid:76a07b6077c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=2 +[2025-10-14 12:47:03.435534 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-14 12:47:03.436312 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-14 12:47:03.436364 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-14 12:47:03.436761 pid:114115 tid:76a07b6077c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-14 12:47:03.436858 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x76a077006808 +[2025-10-14 12:47:03.436979 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76a077006808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x76a077006808 +[2025-10-14 12:47:03.437077 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-14 12:47:03.437100 pid:114115 tid:76a07b6077c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x76a077006808, file header=pageCount:2, allocatedCount:2 +[2025-10-14 12:47:03.437181 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a6494 0xe52ce 0x3319f2 0x337abe 0x14cfa9 0x11b5a7 0x125b36 0x130cd8 0x1343cb 0x5182e 0x590b1 0x40a2f 0x21ca 0x228b 0x44b05 +[2025-10-14 12:47:03.437491 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077008870 +[2025-10-14 12:47:03.437559 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76a077008870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077008870 +[2025-10-14 12:47:03.437636 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-14 12:47:03.437668 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:47:03.437697 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-14 12:47:03.437729 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-14 12:47:03.437767 pid:114115 tid:76a07b6077c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-14 12:47:03.437779 pid:114115 tid:76a07b6077c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-14 12:47:03.441406 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:47:03.441574 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:47:03.441612 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-14 12:47:03.441649 pid:114115 tid:76a07b6077c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-14 12:47:03.441699 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-14 12:47:03.441713 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-14 12:47:03.441741 pid:114115 tid:76a07b6077c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-14 12:47:09.333479 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-14 12:47:09.333524 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-14 12:47:09.333539 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:09.333552 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:47:09.333562 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:09.333574 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:47:09.333582 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:09.333606 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:09.333619 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:115] >> STRING_T +[2025-10-14 12:47:09.333628 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:47:09.333636 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:09.333644 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:47:09.333669 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:09.333684 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:09.333690 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:47:09.333698 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:09.333710 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:09.333718 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-14 12:47:09.333724 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:47:09.333738 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:09.333814 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name Update_table_1] +[2025-10-14 12:47:09.333947 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:Update_table_1 +[2025-10-14 12:47:09.334039 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-14 12:47:09.334052 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=t_name +[2025-10-14 12:47:09.334064 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-14 12:47:09.334075 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-14 12:47:09.334081 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=1, name=Update_table_1 +[2025-10-14 12:47:09.334992 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/Update_table_1.data. +[2025-10-14 12:47:09.335329 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/Update_table_1.data. +[2025-10-14 12:47:09.335426 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700a8d8 +[2025-10-14 12:47:09.335624 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76a07700a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700a8d8 +[2025-10-14 12:47:09.335701 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/Update_table_1.data:0, file_desc:11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700a8d8 +[2025-10-14 12:47:09.335784 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/Update_table_1.data. file_desc=11, hdr_frame=0x76a07700a8d8, file header=pageCount:1, allocatedCount:1 +[2025-10-14 12:47:09.335824 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=11, bp=0x50e00000ffc0, lbt=0x4d1e0 0x5a6494 0xe52ce 0x3319f2 0x337abe 0x148827 0x11387e 0x1d0600 0x1cc007 0x76c2b 0x6edf7 0x6f8fb 0x6c0cc 0x40a78 0x21ca 0x228b 0x44b05 +[2025-10-14 12:47:09.335919 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-14 12:47:09.335945 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-14 12:47:09.336009 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:Update_table_1 +[2025-10-14 12:47:09.336028 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create_table@db.cpp:175] >> Create table success. table name=Update_table_1, table_id:1 +[2025-10-14 12:47:09.336227 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:1 +[2025-10-14 12:47:09.336284 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a07700a8d8 +[2025-10-14 12:47:09.336372 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=Update_table_1 +[2025-10-14 12:47:09.336382 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:Update_table_1. +[2025-10-14 12:47:09.336437 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:2 +[2025-10-14 12:47:09.336482 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077008870 +[2025-10-14 12:47:09.336570 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:47:09.336594 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a077006808 +[2025-10-14 12:47:09.336612 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:47:09.336625 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:47:09.346650 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:47:09.346816 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:47:09.346850 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:47:09.346869 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:47:09.346891 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-14 12:47:09.346940 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-14 12:47:09.347000 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:47:09.347271 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:47:09.347323 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:47:09.347337 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-14 12:47:09.347578 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:10.241149 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-14 12:47:10.241238 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-14 12:47:10.241255 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:10.241263 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-14 12:47:10.241273 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:10.241282 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:47:10.241291 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:10.241298 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:47:10.241314 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:10.241599 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:47:10.241635 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/Update_table_1-index_id.index +[2025-10-14 12:47:10.241677 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:47:10.241717 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700c940 +[2025-10-14 12:47:10.241795 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76a07700c940, page num 0, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700c940 +[2025-10-14 12:47:10.241849 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/Update_table_1-index_id.index:0, file_desc:13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700c940 +[2025-10-14 12:47:10.241910 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/Update_table_1-index_id.index. file_desc=13, hdr_frame=0x76a07700c940, file header=pageCount:1, allocatedCount:1 +[2025-10-14 12:47:10.241947 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e0000105e0, lbt=0x4d1e0 0x5a6494 0xe52ce 0x438aa8 0x487dcd 0x33b6fb 0x1cbefb 0x76c2b 0x6edf7 0x6f8fb 0x6c0cc 0x40a78 0x21ca 0x228b 0x44b05 +[2025-10-14 12:47:10.242007 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:47:10.242131 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a07700e9a8 +[2025-10-14 12:47:10.242234 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76a07700e9a8, page num 1, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a07700e9a8 +[2025-10-14 12:47:10.242282 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=1, pin=1 +[2025-10-14 12:47:10.242379 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:47:10.242413 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a07700e9a8 +[2025-10-14 12:47:10.242628 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:12, item_num_per_pool:128, this->name:b+tree. +[2025-10-14 12:47:10.242667 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:12, item_num_per_pool:128, this->name:b+tree. +[2025-10-14 12:47:10.242870 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=1 +[2025-10-14 12:47:10.242934 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=2, lsn=0, this=0x76a07700e9a8 +[2025-10-14 12:47:10.243062 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:47:10.243116 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a07700c940 +[2025-10-14 12:47:10.243149 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create@bplus_tree.cpp:908] >> Successfully create index +[2025-10-14 12:47:10.243181 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:47:10.243192 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/Update_table_1-index_id.index, index:index_id, field:id +[2025-10-14 12:47:10.243392 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create_index@heap_table_engine.cpp:252] >> inserted all records into new index. table=Update_table_1, index=index_id +[2025-10-14 12:47:10.244045 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: create_index@heap_table_engine.cpp:293] >> Successfully added a new index (index_id) on the table (Update_table_1) +[2025-10-14 12:47:10.244135 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=2 +[2025-10-14 12:47:10.244157 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a07700e9a8 +[2025-10-14 12:47:10.244267 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size=2 +[2025-10-14 12:47:10.244285 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a07700c940 +[2025-10-14 12:47:10.244407 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:47:10.244456 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a07700a8d8 +[2025-10-14 12:47:10.244480 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=Update_table_1 +[2025-10-14 12:47:10.244491 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:Update_table_1. +[2025-10-14 12:47:10.244579 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:4 +[2025-10-14 12:47:10.244624 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077008870 +[2025-10-14 12:47:10.244709 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-14 12:47:10.244745 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a077006808 +[2025-10-14 12:47:10.244765 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:47:10.244772 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:47:10.248628 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:47:10.248717 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:47:10.248796 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:47:10.248817 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:47:10.248838 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2025-10-14 12:47:10.248863 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-1307057313 +[2025-10-14 12:47:10.248913 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-14 12:47:10.248935 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-14 12:47:10.248957 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:1,lsn=0 +[2025-10-14 12:47:10.248981 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=1028209143 +[2025-10-14 12:47:10.248997 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:47:10.249186 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:47:10.249208 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:47:10.249219 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-14 12:47:10.249286 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:16.319769 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:47:16.319821 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:47:16.319835 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:16.319845 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:47:16.319855 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:47:16.319867 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.319879 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.319904 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:47:16.319946 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.319959 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.319973 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.319989 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.320001 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:47:16.320029 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:16.320275 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:47:16.320411 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:16.320456 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76a077010a10, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:16.320487 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=1, pin=1 +[2025-10-14 12:47:16.320576 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:47:16.320609 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:16.320653 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=2, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:16.320684 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:47:16.320786 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:16.320825 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x76a077012a78, page num 2, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:16.320867 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=2, pin=1 +[2025-10-14 12:47:16.320934 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:2,lsn=0, dwb size:2 +[2025-10-14 12:47:16.320973 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:16.321037 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a07700e9a8 +[2025-10-14 12:47:16.321075 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1473] >> set root page to 2 +[2025-10-14 12:47:16.321938 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:16.322958 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:47:16.323005 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:47:16.323017 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:16.323032 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:47:16.323038 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:47:16.323046 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.323055 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.323074 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:47:16.323088 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.323096 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.323112 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.323125 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.323131 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:47:16.323142 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:16.323204 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:47:16.323257 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:16.323304 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:47:16.323350 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:47:16.323366 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:16.323418 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:47:16.323449 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-14 12:47:16.323522 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:16.990599 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:47:16.990709 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:47:16.990723 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:16.990736 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:47:16.990742 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:47:16.990751 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.990761 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.990772 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:47:16.990797 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.990809 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.990816 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:16.990825 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:16.990832 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:47:16.990846 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:16.990920 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:47:16.990998 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:16.991044 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:47:16.991092 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:47:16.991111 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:16.991231 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:47:16.991264 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-14 12:47:16.991382 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:33.962374 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-14 12:47:33.962411 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-14 12:47:33.962423 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:33.962434 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-14 12:47:33.962441 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-14 12:47:33.962451 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:33.962462 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:33.962478 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:47:33.962493 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:33.962501 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:33.962511 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-14 12:47:33.962520 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:33.962528 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-14 12:47:33.962540 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:33.962661 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-14 12:47:33.962755 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:33.962787 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:47:33.962832 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:47:33.962875 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:33.962979 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:47:33.963015 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-14 12:47:33.963096 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:40.418631 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-14 12:47:40.418665 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:40.418675 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-14 12:47:40.418687 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:40.418701 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:47:40.418711 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-14 12:47:40.418723 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-14 12:47:40.418736 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:40.418742 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-14 12:47:40.418753 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-14 12:47:40.418763 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:40.418889 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:40.418979 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:47:40.419059 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:47:40.419094 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:40.419125 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:47:40.419229 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=2, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:40.419272 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-14 12:47:40.419337 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-14 12:47:40.419350 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:40.419393 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-14 12:47:40.419440 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-14 12:47:40.419547 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:53.559219 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-14 12:47:53.559264 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-14 12:47:53.559282 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-14 12:47:53.559296 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-14 12:47:53.559345 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name Update_table_1] +[2025-10-14 12:47:53.559892 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=2 +[2025-10-14 12:47:53.559937 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077010a10 +[2025-10-14 12:47:53.560047 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76a077010a10, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-14 12:47:53.560137 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:47:53.560194 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700a8d8 +[2025-10-14 12:47:53.560212 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76a07700a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-14 12:47:53.560241 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/Update_table_1.data, page count=2 +[2025-10-14 12:47:53.560263 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=932441496 +[2025-10-14 12:47:53.560283 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=1507159109 +[2025-10-14 12:47:53.560341 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 11:miniob/db/sys/Update_table_1.data. +[2025-10-14 12:47:53.560376 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:47:53.560429 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-14 12:47:53.560500 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:2,lsn=0, dwb size=1 +[2025-10-14 12:47:53.560526 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x76a077012a78 +[2025-10-14 12:47:53.560619 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76a077012a78, page 2 frame_id=buffer_pool_id:3,page_num:2 +[2025-10-14 12:47:53.560718 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:2 +[2025-10-14 12:47:53.560740 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a07700e9a8 +[2025-10-14 12:47:53.560754 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76a07700e9a8, page 1 frame_id=buffer_pool_id:3,page_num:1 +[2025-10-14 12:47:53.560815 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:3 +[2025-10-14 12:47:53.560828 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x76a07700c940 +[2025-10-14 12:47:53.560837 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76a07700c940, page 0 frame_id=buffer_pool_id:3,page_num:0 +[2025-10-14 12:47:53.560871 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/Update_table_1-index_id.index, page count=3 +[2025-10-14 12:47:53.560893 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-873664761 +[2025-10-14 12:47:53.560910 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=-1257644959 +[2025-10-14 12:47:53.560936 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:2, lsn=0, check_sum=857897160 +[2025-10-14 12:47:53.561133 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/Update_table_1-index_id.index. +[2025-10-14 12:47:53.561197 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:47:53.561212 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-14 12:47:53.561242 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-14 12:47:53.561253 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: Update_table_1 +[2025-10-14 12:47:53.561264 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: drop_table@db.cpp:242] >> Drop table success. table name=Update_table_1 +[2025-10-14 12:47:53.561338 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:47:53.561419 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077008870 +[2025-10-14 12:47:53.561480 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:47:53.561494 pid:114115 tid:76a07b6077c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a077006808 +[2025-10-14 12:47:53.561521 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:47:53.561529 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:47:53.564969 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:47:53.565054 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:47:53.565137 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:47:53.565153 pid:114115 tid:76a07b6077c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:47:53.565170 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:47:53.565331 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:47:53.565356 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:47:53.565364 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-14 12:47:53.565416 pid:114115 tid:76a07b6077c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-14 12:47:56.178979 pid:114115 tid:76a07b6077c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-14 12:47:56.179077 pid:114115 tid:76a07b6077c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-14 12:47:56.179228 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-14 12:47:56.179329 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x76a077008870 +[2025-10-14 12:47:56.179402 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-14 12:47:56.179420 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x76a077006808 +[2025-10-14 12:47:56.179442 pid:114115 tid:76a07b6077c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-14 12:47:56.179454 pid:114115 tid:76a07b6077c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-14 12:47:56.183102 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-14 12:47:56.183190 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-14 12:47:56.183282 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-14 12:47:56.183304 pid:114115 tid:76a07b6077c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-14 12:47:56.183325 pid:114115 tid:76a07b6077c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-14 12:47:56.183514 pid:114115 tid:76a07b6077c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-14 12:47:56.183536 pid:114115 tid:76a07b6077c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-14 12:47:56.183562 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76a077008870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-14 12:47:56.183604 pid:114115 tid:76a07b6077c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x76a077006808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-14 12:47:56.183664 pid:114115 tid:76a07b6077c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-14 12:47:56.183705 pid:114115 tid:76a07b6077c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-14 12:47:56.183731 pid:114115 tid:76a07b6077c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-14 12:47:56.183749 pid:114115 tid:76a07b6077c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-14 12:47:56.188659 pid:114115 tid:76a0784146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-14 12:47:56.383928 pid:114115 tid:76a07b6077c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-14 12:47:56.400880 pid:114115 tid:76a07b6077c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-14 12:47:56.401021 pid:114115 tid:76a07b6077c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! diff --git a/src/observer/sql/executor/update_executor.cpp b/src/observer/sql/executor/update_executor.cpp index a3f99f317..aac0f9d19 100644 --- a/src/observer/sql/executor/update_executor.cpp +++ b/src/observer/sql/executor/update_executor.cpp @@ -107,6 +107,6 @@ RC update_execute(SQLStageEvent *sql_event) { } } delete scanner; - if (update_count == 0) return RC::NOTFOUND; + // 如果没有匹配任何行,依照 SQL 语义也应返回 SUCCESS,受影响行为 0 return RC::SUCCESS; } From c5b81a3a85847df42ab5d9a2e7c9f1443e303bc5 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Thu, 16 Oct 2025 02:12:33 +0000 Subject: [PATCH 12/13] feat.TEXT --- .miniob.history | 30 +- miniob/db/sys/dblwr.db | Bin 49252 -> 49252 bytes miniob/db/sys/text_table.data | Bin 0 -> 8192 bytes miniob/db/sys/text_table.table | 27 + observer.log.20251016 | 486 ++++++++++++++++++ src/observer/common/type/attr_type.cpp | 4 +- src/observer/common/type/attr_type.h | 1 + src/observer/common/type/data_type.cpp | 3 +- src/observer/common/value.cpp | 28 +- src/observer/sql/executor/update_executor.cpp | 20 +- src/observer/sql/parser/lex_sql.l | 1 + src/observer/sql/parser/yacc_sql.y | 10 +- src/observer/storage/common/codec.h | 1 + src/observer/storage/table/table.cpp | 10 + 14 files changed, 597 insertions(+), 24 deletions(-) create mode 100644 miniob/db/sys/text_table.data create mode 100644 miniob/db/sys/text_table.table create mode 100644 observer.log.20251016 diff --git a/.miniob.history b/.miniob.history index a47b1fd2f..2c0187b67 100644 --- a/.miniob.history +++ b/.miniob.history @@ -88,21 +88,31 @@ select* from Update_table_1; INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3); ### 2025-10-14 12:45:34.538 UPDATE Update_table_1 SET t_name='N01' WHERE id=1; -### 2025-10-14 12:47:09.331 -CREATE TABLE Update_table_1(id int, t_name char(4), col1 int, col2 int); ### 2025-10-14 12:47:10.241 CREATE INDEX index_id on Update_table_1(id); -### 2025-10-14 12:47:16.317 -INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1); -### 2025-10-14 12:47:16.322 -INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2); -### 2025-10-14 12:47:16.990 -INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3); ### 2025-10-14 12:47:33.960 INSERT INTO Update_table_1 VALUES (100, 'N100', 100, 100); ### 2025-10-14 12:47:40.416 UPDATE Update_table_1 SET t_name='N01' WHERE id=100; -### 2025-10-14 12:47:53.557 +### 2025-10-16 02:02:17.914 +CREATE TABLE Update_table_1(id int, t_name char(4), col1 int, col2 int); +### 2025-10-16 02:02:18.829 +CREATE INDEX index_id on Update_table_1(id);INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1); +### 2025-10-16 02:02:30.184 +select * from Update_table_1 +### 2025-10-16 02:02:36.551 +INSERT INTO Update_table_1 VALUES (1, 'N1', 1, 1); +### 2025-10-16 02:02:36.556 +INSERT INTO Update_table_1 VALUES (2, 'N2', 2, 2); +### 2025-10-16 02:02:37.291 +INSERT INTO Update_table_1 VALUES (3, 'N3', 3, 3); +### 2025-10-16 02:02:42.172 +UPDATE Update_table_1 SET col1='N01' WHERE id=1; +### 2025-10-16 02:02:55.932 +UPDATE Update_table_1 SET col1='N01' WHERE id=100; +### 2025-10-16 02:03:12.856 drop table Update_table_1; -### 2025-10-14 12:47:56.178 +### 2025-10-16 02:03:17.935 exit; +### 2025-10-16 02:12:22.428 +create table text_table(id int, info text); diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db index 313f3f13f8017265e6da1fd389b7b14a972a0782..5a54a877d0c34ae4b0acea1b3bc825ae35051a25 100644 GIT binary patch delta 87 zcmaFT!2G0vS(llCfq@B#;b7mseK2<4qje=9IYt=Xc+pvY;)5j<53sO;#WwQtD=;!` QmQ`R^0E%t4NYF_D0N#8OS^xk5 delta 90 zcmaFT!2G0vnU{%yfq@Z<88*u*@GCGfZq{{RSI}ezih=-01;f65`#=;3u)lwE8YBn9 W>>CXq%TIJ*nS4QkWwS+sP67atTM&c* diff --git a/miniob/db/sys/text_table.data b/miniob/db/sys/text_table.data new file mode 100644 index 0000000000000000000000000000000000000000..f57a6dcfebafd174b7aca8cc015db6c19efe2253 GIT binary patch literal 8192 zcmeIuu?YYm3`(%j literal 0 HcmV?d00001 diff --git a/miniob/db/sys/text_table.table b/miniob/db/sys/text_table.table new file mode 100644 index 000000000..9177d5ac3 --- /dev/null +++ b/miniob/db/sys/text_table.table @@ -0,0 +1,27 @@ +{ + "fields" : + [ + { + "FIELD_id" : 0, + "len" : 4, + "name" : "id", + "offset" : 0, + "type" : "ints", + "visible" : true + }, + { + "FIELD_id" : 1, + "len" : 4096, + "name" : "info", + "offset" : 4, + "type" : "texts", + "visible" : true + } + ], + "indexes" : null, + "primary_keys" : null, + "storage_engine" : 0, + "storage_format" : 1, + "table_id" : 1, + "table_name" : "text_table" +} \ No newline at end of file diff --git a/observer.log.20251016 b/observer.log.20251016 new file mode 100644 index 000000000..9dec9e437 --- /dev/null +++ b/observer.log.20251016 @@ -0,0 +1,486 @@ +[2025-10-16 02:02:11.717996 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-16 02:02:11.718918 pid:11066 tid:7ed4a7a8a7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-16 02:02:11.719800 pid:11066 tid:7ed4a48146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-16 02:02:11.721153 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.721908 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.722445 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.723002 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.723526 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.724013 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.724476 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.724908 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.725419 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.725876 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.726235 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.726610 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.726974 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.727317 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.727703 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.728146 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.728597 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.729031 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.729469 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.729987 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.730035 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:02:11.730045 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-16 02:02:11.730886 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=2 +[2025-10-16 02:02:11.731175 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-16 02:02:11.732171 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-16 02:02:11.732224 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-16 02:02:11.732488 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-16 02:02:11.732623 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7ed4a3406808 +[2025-10-16 02:02:11.732707 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7ed4a3406808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x7ed4a3406808 +[2025-10-16 02:02:11.732785 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-16 02:02:11.732804 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x7ed4a3406808, file header=pageCount:2, allocatedCount:2 +[2025-10-16 02:02:11.732894 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a6464 0xe52ce 0x3319c2 0x337a8e 0x14cfa9 0x11b5a7 0x125b36 0x130cd8 0x1343cb 0x5182e 0x590b1 0x40a2f 0x21ca 0x228b 0x44b05 +[2025-10-16 02:02:11.734112 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3408870 +[2025-10-16 02:02:11.734191 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7ed4a3408870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3408870 +[2025-10-16 02:02:11.734259 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-16 02:02:11.734286 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:02:11.734332 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-16 02:02:11.734363 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-16 02:02:11.734446 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-16 02:02:11.734477 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-16 02:02:11.740093 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:02:11.740357 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:02:11.740393 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-16 02:02:11.740468 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-16 02:02:11.740570 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-16 02:02:11.740587 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-16 02:02:11.740615 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-16 02:02:17.916732 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-16 02:02:17.916824 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-16 02:02:17.916843 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:17.916856 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-16 02:02:17.916866 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:17.916876 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-16 02:02:17.916883 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:17.916921 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:17.916935 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:115] >> STRING_T +[2025-10-16 02:02:17.916943 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-16 02:02:17.916963 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:17.916974 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-16 02:02:17.917018 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:17.917049 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:17.917058 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-16 02:02:17.917067 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:17.917079 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:17.917086 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-16 02:02:17.917092 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-16 02:02:17.917104 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:02:17.917296 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name Update_table_1] +[2025-10-16 02:02:17.917521 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:Update_table_1 +[2025-10-16 02:02:17.917704 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-16 02:02:17.917729 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=t_name +[2025-10-16 02:02:17.917741 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=col1 +[2025-10-16 02:02:17.917752 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=col2 +[2025-10-16 02:02:17.917771 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=1, name=Update_table_1 +[2025-10-16 02:02:17.918317 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/Update_table_1.data. +[2025-10-16 02:02:17.918467 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/Update_table_1.data. +[2025-10-16 02:02:17.918551 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340a8d8 +[2025-10-16 02:02:17.918620 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7ed4a340a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340a8d8 +[2025-10-16 02:02:17.918710 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/Update_table_1.data:0, file_desc:11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340a8d8 +[2025-10-16 02:02:17.918814 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/Update_table_1.data. file_desc=11, hdr_frame=0x7ed4a340a8d8, file header=pageCount:1, allocatedCount:1 +[2025-10-16 02:02:17.918870 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=11, bp=0x50e00000ffc0, lbt=0x4d1e0 0x5a6464 0xe52ce 0x3319c2 0x337a8e 0x148827 0x11387e 0x1d0600 0x1cc007 0x76c2b 0x6edf7 0x6f8fb 0x6c0cc 0x40a78 0x21ca 0x228b 0x44b05 +[2025-10-16 02:02:17.918977 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-16 02:02:17.918999 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-16 02:02:17.919030 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:Update_table_1 +[2025-10-16 02:02:17.919049 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create_table@db.cpp:175] >> Create table success. table name=Update_table_1, table_id:1 +[2025-10-16 02:02:17.919169 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:1 +[2025-10-16 02:02:17.919225 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a340a8d8 +[2025-10-16 02:02:17.919272 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=Update_table_1 +[2025-10-16 02:02:17.919289 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:Update_table_1. +[2025-10-16 02:02:17.919359 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:2 +[2025-10-16 02:02:17.919398 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3408870 +[2025-10-16 02:02:17.919457 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2025-10-16 02:02:17.919480 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a3406808 +[2025-10-16 02:02:17.919498 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-16 02:02:17.919511 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-16 02:02:17.932395 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:02:17.932525 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-16 02:02:17.932578 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:02:17.932601 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-16 02:02:17.932630 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-16 02:02:17.932649 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-16 02:02:17.932695 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:02:17.933208 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:02:17.933292 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:02:17.933304 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-16 02:02:17.933474 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:02:18.829714 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-16 02:02:18.829803 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:93] >> INDEX +[2025-10-16 02:02:18.829821 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:18.829829 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:95] >> ON +[2025-10-16 02:02:18.829839 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:18.829846 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-16 02:02:18.829854 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:18.829859 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-16 02:02:18.829879 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:02:18.829894 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-16 02:02:18.829960 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 WARN: handle_request@parse_stage.cpp:46] >> got multi sql commands but only 1 will be handled +[2025-10-16 02:02:18.830261 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/Update_table_1-index_id.index. +[2025-10-16 02:02:18.830290 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create@bplus_tree.cpp:810] >> Successfully create index file:miniob/db/sys/Update_table_1-index_id.index +[2025-10-16 02:02:18.830348 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-16 02:02:18.830415 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340c940 +[2025-10-16 02:02:18.830472 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7ed4a340c940, page num 0, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340c940 +[2025-10-16 02:02:18.830547 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/Update_table_1-index_id.index:0, file_desc:13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340c940 +[2025-10-16 02:02:18.830623 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/Update_table_1-index_id.index. file_desc=13, hdr_frame=0x7ed4a340c940, file header=pageCount:1, allocatedCount:1 +[2025-10-16 02:02:18.830673 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=13, bp=0x50e0000105e0, lbt=0x4d1e0 0x5a6464 0xe52ce 0x438a78 0x487d9d 0x33b6cb 0x1cbefb 0x76c2b 0x6edf7 0x6f8fb 0x6c0cc 0x40a78 0x21ca 0x228b 0x44b05 +[2025-10-16 02:02:18.830740 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create@bplus_tree.cpp:819] >> Successfully open index file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-16 02:02:18.830848 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a340e9a8 +[2025-10-16 02:02:18.830903 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7ed4a340e9a8, page num 1, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a340e9a8 +[2025-10-16 02:02:18.830994 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=1, pin=1 +[2025-10-16 02:02:18.831060 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:1 +[2025-10-16 02:02:18.831096 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a340e9a8 +[2025-10-16 02:02:18.831250 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: extend@mem_pool.cpp:96] >> Extend one pool, this->size:128, item_size:12, item_num_per_pool:128, this->name:b+tree. +[2025-10-16 02:02:18.831269 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: init@mem_pool.cpp:42] >> Extend one pool, this->size:128, item_size:12, item_num_per_pool:128, this->name:b+tree. +[2025-10-16 02:02:18.831318 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=1 +[2025-10-16 02:02:18.831342 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=2, lsn=0, this=0x7ed4a340e9a8 +[2025-10-16 02:02:18.831431 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:2 +[2025-10-16 02:02:18.831473 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a340c940 +[2025-10-16 02:02:18.831502 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create@bplus_tree.cpp:908] >> Successfully create index +[2025-10-16 02:02:18.831562 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create@bplus_tree.cpp:827] >> Successfully create index file miniob/db/sys/Update_table_1-index_id.index. +[2025-10-16 02:02:18.831576 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create@bplus_tree_index.cpp:42] >> Successfully create index, file_name:miniob/db/sys/Update_table_1-index_id.index, index:index_id, field:id +[2025-10-16 02:02:18.831653 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create_index@heap_table_engine.cpp:252] >> inserted all records into new index. table=Update_table_1, index=index_id +[2025-10-16 02:02:18.832266 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: create_index@heap_table_engine.cpp:293] >> Successfully added a new index (index_id) on the table (Update_table_1) +[2025-10-16 02:02:18.832402 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size=2 +[2025-10-16 02:02:18.832453 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a340e9a8 +[2025-10-16 02:02:18.832533 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size=2 +[2025-10-16 02:02:18.832547 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a340c940 +[2025-10-16 02:02:18.832638 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-16 02:02:18.832660 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a340a8d8 +[2025-10-16 02:02:18.832674 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=Update_table_1 +[2025-10-16 02:02:18.832711 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:Update_table_1. +[2025-10-16 02:02:18.832773 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:4 +[2025-10-16 02:02:18.832795 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3408870 +[2025-10-16 02:02:18.832852 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:5 +[2025-10-16 02:02:18.832869 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a3406808 +[2025-10-16 02:02:18.832882 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-16 02:02:18.832891 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-16 02:02:18.836116 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:02:18.836228 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-16 02:02:18.836277 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:02:18.836299 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-16 02:02:18.836322 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2025-10-16 02:02:18.836342 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-1307057313 +[2025-10-16 02:02:18.836359 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-16 02:02:18.836397 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-16 02:02:18.836418 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:3,page_num:1,lsn=0 +[2025-10-16 02:02:18.836445 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=1028209143 +[2025-10-16 02:02:18.836478 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:02:18.836638 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:02:18.836656 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:02:18.836668 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-16 02:02:18.836738 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:02:30.186348 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-16 02:02:30.186470 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-16 02:02:30.186589 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:30.187030 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:02:30.187115 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-16 02:02:30.187157 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-16 02:02:30.187343 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:02:36.553515 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-16 02:02:36.553584 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-16 02:02:36.553614 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:36.553647 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-16 02:02:36.553655 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-16 02:02:36.553668 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:36.553799 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:36.553886 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-16 02:02:36.553920 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:36.553935 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:36.553948 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:36.553958 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:36.553965 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-16 02:02:36.553987 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:02:36.554099 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:02:36.554220 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:36.554277 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7ed4a3410a10, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:36.554306 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=1, pin=1 +[2025-10-16 02:02:36.554429 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:1 +[2025-10-16 02:02:36.554470 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:36.554549 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=2, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:36.554575 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:02:36.554802 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:02:36.554837 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x7ed4a3412a78, page num 2, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:02:36.554862 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=3, pageNum=2, pin=1 +[2025-10-16 02:02:36.554917 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:2,lsn=0, dwb size:2 +[2025-10-16 02:02:36.554946 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:02:36.555050 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a340e9a8 +[2025-10-16 02:02:36.555151 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: update_root_page_num_locked@bplus_tree.cpp:1473] >> set root page to 2 +[2025-10-16 02:02:36.555273 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:02:36.556917 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-16 02:02:36.556974 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-16 02:02:36.556990 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:36.556999 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-16 02:02:36.557004 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-16 02:02:36.557013 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:36.557025 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:36.557035 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-16 02:02:36.557047 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:36.557056 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:36.557065 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:36.557080 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:36.557086 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-16 02:02:36.557099 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:02:36.557177 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:02:36.557254 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:36.557299 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:02:36.557338 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-16 02:02:36.557355 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:02:36.557386 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-16 02:02:36.558068 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-16 02:02:36.558279 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:02:37.291568 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-16 02:02:37.291662 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-16 02:02:37.291679 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:37.291688 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-16 02:02:37.291695 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> LBRACE +[2025-10-16 02:02:37.291704 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:37.291718 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:37.291728 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-16 02:02:37.291746 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:37.291754 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:37.291764 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:137] >> COMMA +[2025-10-16 02:02:37.291771 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:37.291777 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> RBRACE +[2025-10-16 02:02:37.291793 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:02:37.291865 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:02:37.291986 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:37.292049 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:02:37.292085 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-16 02:02:37.292097 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:02:37.292120 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-16 02:02:37.292157 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-16 02:02:37.292238 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:02:42.174118 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-16 02:02:42.174167 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:42.174180 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-16 02:02:42.174192 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:42.174198 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-16 02:02:42.174208 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-16 02:02:42.174224 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-16 02:02:42.174234 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:42.174242 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-16 02:02:42.174253 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:42.174273 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:02:42.174537 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:42.174614 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:02:42.174667 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-16 02:02:42.174715 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:02:42.174751 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-16 02:02:42.175020 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=2, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:42.175093 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:02:42.175164 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: xlatch@latch_memo.cpp:100] >> lock root success +[2025-10-16 02:02:42.175185 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:3,page_num:2, dirty=1, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:02:42.175213 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: release_item@latch_memo.cpp:116] >> release root lock +[2025-10-16 02:02:42.175254 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: insert_entry@bplus_tree.cpp:1560] >> insert entry success +[2025-10-16 02:02:42.175370 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:02:55.934264 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-16 02:02:55.934304 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:55.934313 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-16 02:02:55.934323 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:55.934330 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-16 02:02:55.934353 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:151] >> SSS +[2025-10-16 02:02:55.934364 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-16 02:02:55.934372 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:02:55.934377 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> EQ +[2025-10-16 02:02:55.934391 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:02:55.934401 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:02:55.934502 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:02:55.934552 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:02:55.934626 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:03:12.857854 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-16 02:03:12.857904 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-16 02:03:12.857917 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:133] >> ID +[2025-10-16 02:03:12.857930 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:03:12.857994 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name Update_table_1] +[2025-10-16 02:03:12.858661 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=2 +[2025-10-16 02:03:12.858752 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3410a10 +[2025-10-16 02:03:12.858809 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7ed4a3410a10, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-16 02:03:12.858900 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:3 +[2025-10-16 02:03:12.858950 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340a8d8 +[2025-10-16 02:03:12.858975 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7ed4a340a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-16 02:03:12.859003 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/Update_table_1.data, page count=2 +[2025-10-16 02:03:12.859030 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=932441496 +[2025-10-16 02:03:12.859058 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=-1332921706 +[2025-10-16 02:03:12.859117 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 11:miniob/db/sys/Update_table_1.data. +[2025-10-16 02:03:12.859162 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-16 02:03:12.859181 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: close@bplus_tree_index.cpp:75] >> Begin to close index, index:index_id, field:id +[2025-10-16 02:03:12.859234 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:3,page_num:2,lsn=0, dwb size=1 +[2025-10-16 02:03:12.859250 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:2, dirty=0, pin=1, lsn=0, this=0x7ed4a3412a78 +[2025-10-16 02:03:12.859282 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7ed4a3412a78, page 2 frame_id=buffer_pool_id:3,page_num:2 +[2025-10-16 02:03:12.859350 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:1,lsn=0, dwb size:2 +[2025-10-16 02:03:12.859394 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a340e9a8 +[2025-10-16 02:03:12.859413 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7ed4a340e9a8, page 1 frame_id=buffer_pool_id:3,page_num:1 +[2025-10-16 02:03:12.859471 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:3 +[2025-10-16 02:03:12.859487 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=13, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0, this=0x7ed4a340c940 +[2025-10-16 02:03:12.859501 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7ed4a340c940, page 0 frame_id=buffer_pool_id:3,page_num:0 +[2025-10-16 02:03:12.859519 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/Update_table_1-index_id.index, page count=3 +[2025-10-16 02:03:12.859601 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=-873664761 +[2025-10-16 02:03:12.859628 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:1, lsn=0, check_sum=-1257644959 +[2025-10-16 02:03:12.859651 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:3, page_num:2, lsn=0, check_sum=-1294300631 +[2025-10-16 02:03:12.859701 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 13:miniob/db/sys/Update_table_1-index_id.index. +[2025-10-16 02:03:12.859726 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-16 02:03:12.859743 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: close@bplus_tree_index.cpp:79] >> Successfully close index. +[2025-10-16 02:03:12.859787 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: cleanup@mem_pool.cpp:67] >> Successfully do cleanup, this->name:b+tree. +[2025-10-16 02:03:12.859820 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: Update_table_1 +[2025-10-16 02:03:12.859844 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: drop_table@db.cpp:242] >> Drop table success. table name=Update_table_1 +[2025-10-16 02:03:12.859951 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-16 02:03:12.859988 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3408870 +[2025-10-16 02:03:12.860283 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-16 02:03:12.860411 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a3406808 +[2025-10-16 02:03:12.860581 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-16 02:03:12.860605 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-16 02:03:12.865673 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:03:12.865773 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-16 02:03:12.865802 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:03:12.865820 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-16 02:03:12.865891 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:03:12.866079 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:03:12.866102 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:03:12.866114 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-16 02:03:12.866168 pid:11066 tid:7ed4a7a8a7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:03:17.935421 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-16 02:03:17.935541 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-16 02:03:17.936121 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:1 +[2025-10-16 02:03:17.936178 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x7ed4a3408870 +[2025-10-16 02:03:17.936275 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2025-10-16 02:03:17.936295 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x7ed4a3406808 +[2025-10-16 02:03:17.936309 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-16 02:03:17.936328 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-16 02:03:17.940915 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:03:17.941035 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-16 02:03:17.941070 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:03:17.941095 pid:11066 tid:7ed4a7a8a7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-16 02:03:17.941112 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:03:17.941299 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:03:17.941330 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:03:17.941369 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7ed4a3408870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-16 02:03:17.941425 pid:11066 tid:7ed4a7a8a7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x7ed4a3406808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-16 02:03:17.941457 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-16 02:03:17.941475 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-16 02:03:17.941510 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-16 02:03:17.941521 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-16 02:03:17.949359 pid:11066 tid:7ed4a48146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-16 02:03:18.141852 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-16 02:03:18.153182 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-16 02:03:18.153269 pid:11066 tid:7ed4a7a8a7c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-16 02:11:58.355253 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-16 02:11:58.356387 pid:21710 tid:71fa1c4ae7c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-16 02:11:58.357162 pid:21710 tid:71fa193146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-16 02:11:58.358923 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.359493 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.360019 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.360601 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.361160 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.361667 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.362206 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.362922 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.363549 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.364186 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.364918 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.365541 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.366143 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.366782 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.367289 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.367821 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.368413 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.369080 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.369549 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.370086 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.370116 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:11:58.370124 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-16 02:11:58.370425 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=2 +[2025-10-16 02:11:58.370718 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-16 02:11:58.372389 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-16 02:11:58.372456 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-16 02:11:58.372664 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-16 02:11:58.372758 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x71fa17f06808 +[2025-10-16 02:11:58.372837 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x71fa17f06808, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x71fa17f06808 +[2025-10-16 02:11:58.372908 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-16 02:11:58.372950 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=8, hdr_frame=0x71fa17f06808, file header=pageCount:2, allocatedCount:2 +[2025-10-16 02:11:58.373004 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a7b64 0xe555e 0x3326d2 0x33879e 0x14d2e9 0x11b837 0x125dc6 0x130f68 0x13465b 0x51abe 0x59341 0x40b7f 0x21ca 0x228b 0x44d95 +[2025-10-16 02:11:58.373985 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x71fa17f08870 +[2025-10-16 02:11:58.374065 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x71fa17f08870, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x71fa17f08870 +[2025-10-16 02:11:58.374144 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-16 02:11:58.374188 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:11:58.374225 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-16 02:11:58.374252 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-16 02:11:58.374346 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-16 02:11:58.374395 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=1 +[2025-10-16 02:11:58.704724 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:11:58.704897 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:11:58.704947 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-16 02:11:58.704995 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-16 02:11:58.705339 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-16 02:11:58.705394 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-16 02:11:58.705417 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-16 02:12:22.430241 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:89] >> CREATE +[2025-10-16 02:12:22.430305 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-16 02:12:22.430329 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:12:22.430345 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> LBRACE +[2025-10-16 02:12:22.430356 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:12:22.430366 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:114] >> INT_T +[2025-10-16 02:12:22.430374 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> COMMA +[2025-10-16 02:12:22.430411 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:12:22.430424 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:119] >> TEXT_T +[2025-10-16 02:12:22.430434 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:136] >> RBRACE +[2025-10-16 02:12:22.430449 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:12:22.430534 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name text_table] +[2025-10-16 02:12:22.430650 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: create@table.cpp:58] >> Begin to create table miniob/db/sys:text_table +[2025-10-16 02:12:22.430845 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-16 02:12:22.430897 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: init@field_meta.cpp:57] >> Init a field with name=info +[2025-10-16 02:12:22.430911 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: init@table_meta.cpp:103] >> Sussessfully initialized table meta. table id=1, name=text_table +[2025-10-16 02:12:22.431344 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: create_file@disk_buffer_pool.cpp:837] >> Successfully create miniob/db/sys/text_table.data. +[2025-10-16 02:12:22.431495 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/text_table.data. +[2025-10-16 02:12:22.431561 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x71fa17f0a8d8 +[2025-10-16 02:12:22.431653 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x71fa17f0a8d8, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x71fa17f0a8d8 +[2025-10-16 02:12:22.431758 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: load_page@disk_buffer_pool.cpp:760] >> Load page miniob/db/sys/text_table.data:0, file_desc:11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x71fa17f0a8d8 +[2025-10-16 02:12:22.431827 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/text_table.data. file_desc=11, hdr_frame=0x71fa17f0a8d8, file header=pageCount:1, allocatedCount:1 +[2025-10-16 02:12:22.431888 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=11, bp=0x50e00000ffc0, lbt=0x4d1e0 0x5a7b64 0xe555e 0x3326d2 0x33879e 0x148b67 0x113b0e 0x1d09d0 0x1cc3d7 0x76ebb 0x6f087 0x6fb8b 0x6c35c 0x40bc8 0x21ca 0x228b 0x44d95 +[2025-10-16 02:12:22.431965 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-16 02:12:22.431983 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-16 02:12:22.432005 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: create@table.cpp:124] >> Successfully create table miniob/db/sys:text_table +[2025-10-16 02:12:22.432030 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: create_table@db.cpp:175] >> Create table success. table name=text_table, table_id:1 +[2025-10-16 02:12:22.432124 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:1 +[2025-10-16 02:12:22.432182 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x71fa17f0a8d8 +[2025-10-16 02:12:22.432229 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=text_table +[2025-10-16 02:12:22.432243 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:text_table. +[2025-10-16 02:12:22.432297 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:2 +[2025-10-16 02:12:22.432313 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x71fa17f08870 +[2025-10-16 02:12:22.432414 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2025-10-16 02:12:22.432455 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x71fa17f06808 +[2025-10-16 02:12:22.432475 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-16 02:12:22.432484 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-16 02:12:22.449162 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:12:22.449304 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-16 02:12:22.449339 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:12:22.449355 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-16 02:12:22.449378 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-16 02:12:22.449400 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-16 02:12:22.449454 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:12:22.449800 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:12:22.449845 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:12:22.449866 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-16 02:12:22.449942 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS diff --git a/src/observer/common/type/attr_type.cpp b/src/observer/common/type/attr_type.cpp index 26d4b90f7..e0be957e1 100644 --- a/src/observer/common/type/attr_type.cpp +++ b/src/observer/common/type/attr_type.cpp @@ -12,7 +12,7 @@ See the Mulan PSL v2 for more details. */ #include "common/lang/string.h" #include "common/type/attr_type.h" -const char *ATTR_TYPE_NAME[] = {"undefined", "chars", "ints", "floats", "vectors", "dates", "booleans"}; +const char *ATTR_TYPE_NAME[] = {"undefined", "chars", "texts", "ints", "floats", "vectors", "dates", "booleans"}; const char *attr_type_to_string(AttrType type) { @@ -39,5 +39,5 @@ bool is_numerical_type(AttrType type) bool is_string_type(AttrType type) { - return (type == AttrType::CHARS); + return (type == AttrType::CHARS || type == AttrType::TEXTS); } \ No newline at end of file diff --git a/src/observer/common/type/attr_type.h b/src/observer/common/type/attr_type.h index 5c78cceb4..19aa824b7 100644 --- a/src/observer/common/type/attr_type.h +++ b/src/observer/common/type/attr_type.h @@ -18,6 +18,7 @@ enum class AttrType { UNDEFINED, CHARS, ///< 字符串类型 + TEXTS, ///< text/long string (固定长度 4096 字节) INTS, ///< 整数类型(4字节) FLOATS, ///< 浮点数类型(4字节) VECTORS, ///< 向量类型 diff --git a/src/observer/common/type/data_type.cpp b/src/observer/common/type/data_type.cpp index f835e71cf..13570844e 100644 --- a/src/observer/common/type/data_type.cpp +++ b/src/observer/common/type/data_type.cpp @@ -21,7 +21,8 @@ See the Mulan PSL v2 for more details. */ array, static_cast(AttrType::MAXTYPE)> DataType::type_instances_ = { make_unique(AttrType::UNDEFINED), - make_unique(), + make_unique(), // CHARS + make_unique(), // TEXTS (handled like CHARS) make_unique(), make_unique(), make_unique(), diff --git a/src/observer/common/value.cpp b/src/observer/common/value.cpp index 579939511..39a657812 100644 --- a/src/observer/common/value.cpp +++ b/src/observer/common/value.cpp @@ -40,7 +40,8 @@ Value::Value(const Value &other) this->length_ = other.length_; this->own_data_ = other.own_data_; switch (this->attr_type_) { - case AttrType::CHARS: { + case AttrType::CHARS: + case AttrType::TEXTS: { set_string_from_other(other); } break; @@ -100,6 +101,7 @@ void Value::reset() { switch (attr_type_) { case AttrType::CHARS: + case AttrType::TEXTS: if (own_data_ && value_.pointer_value_ != nullptr) { delete[] value_.pointer_value_; value_.pointer_value_ = nullptr; @@ -116,7 +118,8 @@ void Value::reset() void Value::set_data(char *data, int length) { switch (attr_type_) { - case AttrType::CHARS: { + case AttrType::CHARS: + case AttrType::TEXTS: { set_string(data, length); } break; case AttrType::INTS: { @@ -186,7 +189,10 @@ void Value::get_date(int &year, int &month, int &day) const void Value::set_string(const char *s, int len /*= 0*/) { reset(); - attr_type_ = AttrType::CHARS; + /* keep attr_type as CHARS or TEXTS as caller sets it; default to CHARS if undefined */ + if (attr_type_ == AttrType::UNDEFINED) { + attr_type_ = AttrType::CHARS; + } if (s == nullptr) { value_.pointer_value_ = nullptr; length_ = 0; @@ -226,7 +232,10 @@ void Value::set_value(const Value &value) case AttrType::FLOATS: { set_float(value.get_float()); } break; - case AttrType::CHARS: { + case AttrType::CHARS: + case AttrType::TEXTS: { + /* preserve the attr_type when setting string */ + this->attr_type_ = value.attr_type_; set_string(value.get_string().c_str()); } break; case AttrType::BOOLEANS: { @@ -240,7 +249,7 @@ void Value::set_value(const Value &value) void Value::set_string_from_other(const Value &other) { - ASSERT(attr_type_ == AttrType::CHARS, "attr type is not CHARS"); + ASSERT(attr_type_ == AttrType::CHARS || attr_type_ == AttrType::TEXTS, "attr type is not CHARS/TEXTS"); if (own_data_ && other.value_.pointer_value_ != nullptr && length_ != 0) { this->value_.pointer_value_ = new char[this->length_ + 1]; memcpy(this->value_.pointer_value_, other.value_.pointer_value_, this->length_); @@ -251,7 +260,8 @@ void Value::set_string_from_other(const Value &other) char *Value::data() const { switch (attr_type_) { - case AttrType::CHARS: { + case AttrType::CHARS: + case AttrType::TEXTS: { return value_.pointer_value_; } break; default: { @@ -276,7 +286,8 @@ int Value::compare(const Value &other) const { return DataType::type_instance(th int Value::get_int() const { switch (attr_type_) { - case AttrType::CHARS: { + case AttrType::CHARS: + case AttrType::TEXTS: { try { return (int)(stol(value_.pointer_value_)); } catch (exception const &ex) { @@ -304,7 +315,8 @@ int Value::get_int() const float Value::get_float() const { switch (attr_type_) { - case AttrType::CHARS: { + case AttrType::CHARS: + case AttrType::TEXTS: { try { return stof(value_.pointer_value_); } catch (exception const &ex) { diff --git a/src/observer/sql/executor/update_executor.cpp b/src/observer/sql/executor/update_executor.cpp index aac0f9d19..26c0d08b8 100644 --- a/src/observer/sql/executor/update_executor.cpp +++ b/src/observer/sql/executor/update_executor.cpp @@ -93,7 +93,23 @@ RC update_execute(SQLStageEvent *sql_event) { } new_record.set_rid(record.rid()); // 使用 Record::set_field 修改字段(要求 new_record 拥有内存) - rc2 = new_record.set_field(field->offset(), field->len(), values[0].data()); + if (field->type() == AttrType::TEXTS) { + // ensure we truncate or pad to field length (TEXTS fixed length 4096) + int field_len = field->len(); + char *tmp = (char *)malloc(field_len); + if (tmp == nullptr) { + LOG_ERROR("Failed to allocate memory for text update"); + continue; + } + memset(tmp, 0, field_len); + int copy_len = values[0].length(); + if (copy_len > field_len) copy_len = field_len; + memcpy(tmp, values[0].data(), copy_len); + rc2 = new_record.set_field(field->offset(), field->len(), tmp); + free(tmp); + } else { + rc2 = new_record.set_field(field->offset(), field->len(), values[0].data()); + } if (rc2 != RC::SUCCESS) { LOG_ERROR("Failed to set field in new record. rc=%d", rc2); continue; @@ -107,6 +123,6 @@ RC update_execute(SQLStageEvent *sql_event) { } } delete scanner; - // 如果没有匹配任何行,依照 SQL 语义也应返回 SUCCESS,受影响行为 0 + if (update_count == 0) return RC::NOTFOUND; return RC::SUCCESS; } diff --git a/src/observer/sql/parser/lex_sql.l b/src/observer/sql/parser/lex_sql.l index 279374855..d20297159 100644 --- a/src/observer/sql/parser/lex_sql.l +++ b/src/observer/sql/parser/lex_sql.l @@ -116,6 +116,7 @@ CHAR RETURN_TOKEN(STRING_T); FLOAT RETURN_TOKEN(FLOAT_T); VECTOR RETURN_TOKEN(VECTOR_T); DATE RETURN_TOKEN(DATE_T); +TEXT RETURN_TOKEN(TEXT_T); LOAD RETURN_TOKEN(LOAD); DATA RETURN_TOKEN(DATA); INFILE RETURN_TOKEN(INFILE); diff --git a/src/observer/sql/parser/yacc_sql.y b/src/observer/sql/parser/yacc_sql.y index fef1772f4..1520d75f6 100644 --- a/src/observer/sql/parser/yacc_sql.y +++ b/src/observer/sql/parser/yacc_sql.y @@ -93,6 +93,7 @@ UnboundAggregateExpr *create_aggregate_expression(const char *aggregate_name, FLOAT_T VECTOR_T DATE_T + TEXT_T HELP EXIT DOT //QUOTE @@ -380,7 +381,11 @@ attr_def: $$ = new AttrInfoSqlNode; $$->type = (AttrType)$2; $$->name = $1; - $$->length = $4; + if ($$->type == AttrType::TEXTS) { + $$->length = 4096; + } else { + $$->length = $4; + } } | ID type { @@ -389,6 +394,8 @@ attr_def: $$->name = $1; if ($$->type == AttrType::DATES) { $$->length = 4; + } else if ($$->type == AttrType::TEXTS) { + $$->length = 4096; } else { $$->length = 4; } @@ -403,6 +410,7 @@ type: | FLOAT_T { $$ = static_cast(AttrType::FLOATS); } | VECTOR_T { $$ = static_cast(AttrType::VECTORS); } | DATE_T { $$ = static_cast(AttrType::DATES); } + | TEXT_T { $$ = static_cast(AttrType::TEXTS); } ; primary_key: /* empty */ diff --git a/src/observer/storage/common/codec.h b/src/observer/storage/common/codec.h index ed373de70..d1fa92711 100644 --- a/src/observer/storage/common/codec.h +++ b/src/observer/storage/common/codec.h @@ -429,6 +429,7 @@ class Codec } break; case AttrType::CHARS: + case AttrType::TEXTS: if (OB_FAIL(OrderedCode::append(dst, val.get_string()))) { LOG_WARN("append failed"); } diff --git a/src/observer/storage/table/table.cpp b/src/observer/storage/table/table.cpp index ec0a19f1b..bf812c1c6 100644 --- a/src/observer/storage/table/table.cpp +++ b/src/observer/storage/table/table.cpp @@ -256,9 +256,19 @@ RC Table::set_value_to_record(char *record_data, const Value &value, const Field size_t copy_len = field->len(); const size_t data_len = value.length(); if (field->type() == AttrType::CHARS) { + // for CHARS, keep string and trailing '\0' when possible if (copy_len > data_len) { copy_len = data_len + 1; } + } else if (field->type() == AttrType::TEXTS) { + // TEXTS fixed length (4096). If input longer, truncate to field length. + if (data_len < copy_len) { + // copy actual data only, remaining bytes are left as zero (record_data was memset to 0) + copy_len = data_len; + } else { + // input longer or equal: truncate to field length + copy_len = copy_len; + } } memcpy(record_data + field->offset(), value.data(), copy_len); return RC::SUCCESS; From d56c2ba414c99573935ecf8b15de7eb91dfd5cb1 Mon Sep 17 00:00:00 2001 From: invain01 <3038026071@qq.com> Date: Thu, 16 Oct 2025 02:24:50 +0000 Subject: [PATCH 13/13] feat.TEXT --- .miniob.history | 20 ++- miniob/db/sys/dblwr.db | Bin 49252 -> 49252 bytes miniob/db/sys/good.data | Bin 16384 -> 0 bytes miniob/db/sys/good.table | 27 --- miniob/db/sys/text_table.data | Bin 8192 -> 0 bytes miniob/db/sys/text_table.table | 27 --- observer.log.20251016 | 232 +++++++++++++++++++++++++ src/observer/common/type/char_type.cpp | 12 +- 8 files changed, 257 insertions(+), 61 deletions(-) delete mode 100644 miniob/db/sys/good.data delete mode 100644 miniob/db/sys/good.table delete mode 100644 miniob/db/sys/text_table.data delete mode 100644 miniob/db/sys/text_table.table diff --git a/.miniob.history b/.miniob.history index 2c0187b67..27e2e6510 100644 --- a/.miniob.history +++ b/.miniob.history @@ -6,8 +6,6 @@ CREATE TABLE test (id int, name varchar(20)); drop_table good ### 2025-10-12 13:03:54.145 drop-table good; -### 2025-10-12 13:06:35.991 -drop table good; ### 2025-10-12 13:07:07.742 DROP TABLE good; ### 2025-10-12 13:07:10.347 @@ -74,8 +72,6 @@ insert into good values(1,1); insert into good values(2,2); ### 2025-10-14 12:16:10.134 exit; -### 2025-10-14 12:29:11.100 -show tables; ### 2025-10-14 12:29:16.564 UPDATE good SET k1=2 WHERE id=1; ### 2025-10-14 12:44:55.173 @@ -112,7 +108,19 @@ UPDATE Update_table_1 SET col1='N01' WHERE id=1; UPDATE Update_table_1 SET col1='N01' WHERE id=100; ### 2025-10-16 02:03:12.856 drop table Update_table_1; -### 2025-10-16 02:03:17.935 -exit; ### 2025-10-16 02:12:22.428 create table text_table(id int, info text); +### 2025-10-16 02:17:58.863 +exit; +### 2025-10-16 02:23:37.975 +show tables; +### 2025-10-16 02:23:42.373 +drop table good; +### 2025-10-16 02:23:50.330 +insert into text_table values (1,'this is a very very long string'); +### 2025-10-16 02:24:23.722 +update text_table set info = 'ddd' where id = 1; +### 2025-10-16 02:24:30.756 +select * from text_table; +### 2025-10-16 02:24:39.405 +drop table text_table; diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db index 5a54a877d0c34ae4b0acea1b3bc825ae35051a25..40749d647dde30e7b18458092359d671360c5fed 100644 GIT binary patch delta 122 zcmaFT!2G0v*`0}jfdPaWffx+-?b`=q&i#HV879smz`(!(#2~%`6oc3xoRX5V(eSLi eEXW)X0EsamnKR?v0vVkc28RFu diff --git a/miniob/db/sys/good.table b/miniob/db/sys/good.table deleted file mode 100644 index 4b20124df..000000000 --- a/miniob/db/sys/good.table +++ /dev/null @@ -1,27 +0,0 @@ -{ - "fields" : - [ - { - "FIELD_id" : 0, - "len" : 4, - "name" : "id", - "offset" : 0, - "type" : "ints", - "visible" : true - }, - { - "FIELD_id" : 1, - "len" : 4, - "name" : "k1", - "offset" : 4, - "type" : "ints", - "visible" : true - } - ], - "indexes" : null, - "primary_keys" : null, - "storage_engine" : 0, - "storage_format" : 1, - "table_id" : 0, - "table_name" : "good" -} \ No newline at end of file diff --git a/miniob/db/sys/text_table.data b/miniob/db/sys/text_table.data deleted file mode 100644 index f57a6dcfebafd174b7aca8cc015db6c19efe2253..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8192 zcmeIuu?YYm3`(%j diff --git a/miniob/db/sys/text_table.table b/miniob/db/sys/text_table.table deleted file mode 100644 index 9177d5ac3..000000000 --- a/miniob/db/sys/text_table.table +++ /dev/null @@ -1,27 +0,0 @@ -{ - "fields" : - [ - { - "FIELD_id" : 0, - "len" : 4, - "name" : "id", - "offset" : 0, - "type" : "ints", - "visible" : true - }, - { - "FIELD_id" : 1, - "len" : 4096, - "name" : "info", - "offset" : 4, - "type" : "texts", - "visible" : true - } - ], - "indexes" : null, - "primary_keys" : null, - "storage_engine" : 0, - "storage_format" : 1, - "table_id" : 1, - "table_name" : "text_table" -} \ No newline at end of file diff --git a/observer.log.20251016 b/observer.log.20251016 index 9dec9e437..93d793587 100644 --- a/observer.log.20251016 +++ b/observer.log.20251016 @@ -484,3 +484,235 @@ Finish dump configuration [2025-10-16 02:12:22.449845 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys [2025-10-16 02:12:22.449866 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 [2025-10-16 02:12:22.449942 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:17:55.976252 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-16 02:17:55.976327 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-16 02:17:55.976345 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:17:55.976356 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-16 02:17:55.976366 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:135] >> LBRACE +[2025-10-16 02:17:55.976379 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:17:55.976408 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:138] >> COMMA +[2025-10-16 02:17:55.976435 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:152] >> SSS +[2025-10-16 02:17:55.976484 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:136] >> RBRACE +[2025-10-16 02:17:55.976532 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:17:55.976781 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:17:55.976940 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 WARN: make_record@table.cpp:235] >> failed to cast value. table name:text_table,field name:info,value:this is a very very long string +[2025-10-16 02:17:55.977005 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 WARN: make_record@table.cpp:245] >> failed to make record. table name:text_table +[2025-10-16 02:17:55.977042 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 WARN: open@insert_physical_operator.cpp:31] >> failed to make record. rc=UNIMPLEMENTED +[2025-10-16 02:17:55.977117 pid:21710 tid:71fa1c4ae7c0 ctx:504000000490 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:17:58.863999 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: ~CliCommunicator@cli_communicator.cpp:87] >> Command history saved to ./.miniob.history +[2025-10-16 02:17:58.864104 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: main@main.cpp:203] >> Server stopped +[2025-10-16 02:17:58.864243 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:1 +[2025-10-16 02:17:58.864304 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x71fa17f0a8d8 +[2025-10-16 02:17:58.864361 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=text_table +[2025-10-16 02:17:58.864383 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:text_table. +[2025-10-16 02:17:58.864443 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:1,lsn=0, dwb size:2 +[2025-10-16 02:17:58.864464 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x71fa17f08870 +[2025-10-16 02:17:58.864527 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2025-10-16 02:17:58.864543 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0, this=0x71fa17f06808 +[2025-10-16 02:17:58.864559 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=good +[2025-10-16 02:17:58.864565 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:good. +[2025-10-16 02:17:58.870617 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:17:58.870780 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=1651439760 +[2025-10-16 02:17:58.870820 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:17:58.870839 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:1, page_num:1, lsn=0, check_sum=-1285996399 +[2025-10-16 02:17:58.870899 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-16 02:17:58.870922 pid:21710 tid:71fa1c4ae7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-16 02:17:58.870951 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:17:58.871160 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:17:58.871188 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:17:58.871236 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x71fa17f0a8d8, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-16 02:17:58.871323 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/text_table.data, page count=0 +[2025-10-16 02:17:58.871350 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 11:miniob/db/sys/text_table.data. +[2025-10-16 02:17:58.871384 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-16 02:17:58.871398 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: text_table +[2025-10-16 02:17:58.871432 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x71fa17f08870, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-16 02:17:58.871452 pid:21710 tid:71fa1c4ae7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x71fa17f06808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-16 02:17:58.871469 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-16 02:17:58.871481 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/good.data. +[2025-10-16 02:17:58.871495 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-16 02:17:58.871505 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-16 02:17:58.871687 pid:21710 tid:71fa193146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:176] >> [ObLsmBackground] thread exit +[2025-10-16 02:17:59.071705 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: ~Db@db.cpp:49] >> Db has been closed: sys +[2025-10-16 02:17:59.088444 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: cleanup@mem_pool.h:223] >> Successfully do cleanup, this->name:BufPool. +[2025-10-16 02:17:59.088578 pid:21710 tid:71fa1c4ae7c0 ctx:0 INFO: cleanup_util@init.cpp:230] >> Shutdown Cleanly! +[2025-10-16 02:23:26.859158 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@init.cpp:201] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2025-10-16 02:23:26.859547 pid:29964 tid:799dc51a17c0 ctx:0 WARN: create_db@default_handler.cpp:91] >> Db already exists: sys +[2025-10-16 02:23:26.860248 pid:29964 tid:799dc20146c0 ctx:0 INFO: thread_func@thread_pool_executor.cpp:118] >> [ObLsmBackground] thread started +[2025-10-16 02:23:26.861350 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.861823 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.862260 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.862690 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.863143 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.863582 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.864004 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.864430 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.865017 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.865489 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.865987 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.866432 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.866870 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.867462 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.867887 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.868308 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.868705 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.869132 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.869542 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.869986 pid:29964 tid:799dc51a17c0 ctx:0 INFO: extend@mem_pool.h:251] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.870030 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@mem_pool.h:197] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2025-10-16 02:23:26.870041 pid:29964 tid:799dc51a17c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:775] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2025-10-16 02:23:26.870289 pid:29964 tid:799dc51a17c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:288] >> double write buffer load pages done. page num=3 +[2025-10-16 02:23:26.870507 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init_meta@db.cpp:398] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2025-10-16 02:23:26.871917 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-16 02:23:26.871979 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=info +[2025-10-16 02:23:26.872200 pid:29964 tid:799dc51a17c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/text_table.data. +[2025-10-16 02:23:26.872310 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x799dc0c06808 +[2025-10-16 02:23:26.872397 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x799dc0c06808, page num 0, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=-4702111234474983746, this=0x799dc0c06808 +[2025-10-16 02:23:26.872499 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=2, page_num:0, lsn:0 +[2025-10-16 02:23:26.872523 pid:29964 tid:799dc51a17c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/text_table.data. file_desc=8, hdr_frame=0x799dc0c06808, file header=pageCount:1, allocatedCount:1 +[2025-10-16 02:23:26.872649 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=8, bp=0x50e000000c80, lbt=0x4d1e0 0x5a7e44 0xe558e 0x332702 0x3387ce 0x14d319 0x11b867 0x125df6 0x130f98 0x13468b 0x51aee 0x59371 0x40baf 0x21ca 0x228b 0x44dc5 +[2025-10-16 02:23:26.873028 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2025-10-16 02:23:26.873070 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-16 02:23:26.873133 pid:29964 tid:799dc51a17c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: text_table, file: text_table.table +[2025-10-16 02:23:26.873325 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=id +[2025-10-16 02:23:26.873378 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=k1 +[2025-10-16 02:23:26.873454 pid:29964 tid:799dc51a17c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:236] >> Successfully open buffer pool file miniob/db/sys/good.data. +[2025-10-16 02:23:26.873485 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0, this=0x799dc0c08870 +[2025-10-16 02:23:26.873504 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x799dc0c08870, page num 0, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0, this=0x799dc0c08870 +[2025-10-16 02:23:26.873529 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2025-10-16 02:23:26.873542 pid:29964 tid:799dc51a17c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:274] >> Successfully open miniob/db/sys/good.data. file_desc=9, hdr_frame=0x799dc0c08870, file header=pageCount:2, allocatedCount:2 +[2025-10-16 02:23:26.873559 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:865] >> insert buffer pool into fd buffer pools. fd=9, bp=0x50e000000f20, lbt=0x4d1e0 0x5a7e44 0xe558e 0x332702 0x3387ce 0x14d319 0x11b867 0x125df6 0x130f98 0x13468b 0x51aee 0x59371 0x40baf 0x21ca 0x228b 0x44dc5 +[2025-10-16 02:23:26.873637 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x799dc0c0a8d8 +[2025-10-16 02:23:26.873825 pid:29964 tid:799dc51a17c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x799dc0c0a8d8, page num 1, frame=frame id:buffer_pool_id:1,page_num:1, dirty=0, pin=1, lsn=0, this=0x799dc0c0a8d8 +[2025-10-16 02:23:26.873938 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:187] >> double write buffer read page success. bp id=1, page_num:1, lsn:0 +[2025-10-16 02:23:26.873973 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:23:26.874010 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init_free_pages@record_manager.cpp:564] >> record file handler init free pages done. free page num=1, rc=SUCCESS +[2025-10-16 02:23:26.874025 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@record_manager.cpp:523] >> open record file handle done. rc=SUCCESS +[2025-10-16 02:23:26.874041 pid:29964 tid:799dc51a17c0 ctx:0 INFO: open_all_tables@db.cpp:278] >> Open table: good, file: good.table +[2025-10-16 02:23:26.874049 pid:29964 tid:799dc51a17c0 ctx:0 INFO: open_all_tables@db.cpp:281] >> All table have been opened. num=2 +[2025-10-16 02:23:27.197758 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2025-10-16 02:23:27.197923 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:1,page_num:1,lsn=0 +[2025-10-16 02:23:27.197947 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:167] >> double write buffer write page invalid. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-16 02:23:27.197992 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: recover@db.cpp:335] >> db recover begin. check_point_lsn=0 +[2025-10-16 02:23:27.198023 pid:29964 tid:799dc51a17c0 ctx:0 INFO: recover@db.cpp:362] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2025-10-16 02:23:27.198078 pid:29964 tid:799dc51a17c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2025-10-16 02:23:27.198089 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@default_handler.cpp:67] >> Default handler init with miniob success +[2025-10-16 02:23:27.198115 pid:29964 tid:799dc51a17c0 ctx:0 INFO: init@init.cpp:216] >> Successfully init utility +[2025-10-16 02:23:37.978028 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:96] >> SHOW +[2025-10-16 02:23:37.978148 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:92] >> TABLES +[2025-10-16 02:23:37.978177 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:23:37.978472 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:23:42.373723 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-16 02:23:42.373868 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-16 02:23:42.373898 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:23:42.373919 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:23:42.373961 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name good] +[2025-10-16 02:23:42.374453 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x799dc0c0a8d8, page 1 frame_id=buffer_pool_id:1,page_num:1 +[2025-10-16 02:23:42.374621 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x799dc0c08870, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2025-10-16 02:23:42.374661 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/good.data, page count=0 +[2025-10-16 02:23:42.374739 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 9:miniob/db/sys/good.data. +[2025-10-16 02:23:42.374789 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-16 02:23:42.374826 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: good +[2025-10-16 02:23:42.374850 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: drop_table@db.cpp:242] >> Drop table success. table name=good +[2025-10-16 02:23:42.374960 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:1 +[2025-10-16 02:23:42.374988 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0, this=0x799dc0c06808 +[2025-10-16 02:23:42.375053 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: sync@heap_table_engine.cpp:339] >> Sync table over. table=text_table +[2025-10-16 02:23:42.375084 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: sync@db.cpp:305] >> Successfully sync table db:sys, table:text_table. +[2025-10-16 02:23:42.379254 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: write_page@double_write_buffer.cpp:174] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2025-10-16 02:23:42.379372 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=1957618318 +[2025-10-16 02:23:42.379421 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:23:42.379656 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:23:42.379684 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:23:42.379717 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-16 02:23:42.379789 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:23:50.332493 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:105] >> INSERT +[2025-10-16 02:23:50.332545 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:106] >> INTO +[2025-10-16 02:23:50.332557 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:23:50.332567 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:107] >> VALUES +[2025-10-16 02:23:50.332575 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:135] >> LBRACE +[2025-10-16 02:23:50.332583 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:23:50.332601 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:138] >> COMMA +[2025-10-16 02:23:50.332623 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:152] >> SSS +[2025-10-16 02:23:50.332656 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:136] >> RBRACE +[2025-10-16 02:23:50.332670 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:23:50.332873 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:23:50.333068 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: alloc@disk_buffer_pool.cpp:142] >> allocate a new frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:23:50.333131 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: allocate_frame@disk_buffer_pool.cpp:712] >> allocate frame 0x799dc0c0c940, page num 1, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:23:50.333180 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: allocate_page@disk_buffer_pool.cpp:408] >> allocate new page by extending bufferpool. buffer_pool_id=2, pageNum=1, pin=1 +[2025-10-16 02:23:50.333266 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size:1 +[2025-10-16 02:23:50.333305 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:23:50.333357 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=2, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:23:50.333396 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:23:50.333492 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:23:58.158464 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-16 02:23:58.158525 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-16 02:23:58.158554 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:23:58.158565 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:23:58.158829 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:23:58.158892 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-16 02:23:58.158912 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-16 02:23:58.159012 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:23:58.159069 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:23:58.159088 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-16 02:23:58.159160 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, this is a very very long string] +[2025-10-16 02:23:58.159305 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:24:23.724451 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:109] >> UPDATE +[2025-10-16 02:24:23.724501 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:24:23.724515 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:110] >> SET +[2025-10-16 02:24:23.724523 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:24:23.724533 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:139] >> EQ +[2025-10-16 02:24:23.724543 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:152] >> SSS +[2025-10-16 02:24:23.724557 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:101] >> WHERE +[2025-10-16 02:24:23.724564 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:24:23.724579 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:139] >> EQ +[2025-10-16 02:24:23.724590 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:81] >> NUMBER +[2025-10-16 02:24:23.724603 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:24:23.724781 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:24:23.724879 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:24:23.724962 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=2, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:24:23.724992 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:24:23.725107 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:24:30.758302 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:98] >> SELECT +[2025-10-16 02:24:30.758338 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:100] >> FROM +[2025-10-16 02:24:30.758354 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:24:30.758362 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:24:30.758517 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: generate_physical_plan@optimize_stage.cpp:97] >> use tuple iterator +[2025-10-16 02:24:30.758540 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: create_plan@physical_plan_generator.cpp:188] >> use table scan +[2025-10-16 02:24:30.758552 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: create_plan@physical_plan_generator.cpp:241] >> create a project physical operator +[2025-10-16 02:24:30.758628 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: get_internal@disk_buffer_pool.cpp:118] >> got a frame. frame=frame id:buffer_pool_id:2,page_num:1, dirty=1, pin=1, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:24:30.758667 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: init@record_manager.cpp:132] >> Successfully init page_num 1. +[2025-10-16 02:24:30.758682 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: next@table_scan_physical_operator.cpp:37] >> got a record. rid=PageNum:1, SlotNum:0 +[2025-10-16 02:24:30.758734 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [get a tuple: 1, ddd] +[2025-10-16 02:24:30.758812 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2025-10-16 02:24:39.407511 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:90] >> DROP +[2025-10-16 02:24:39.407545 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:91] >> TABLE +[2025-10-16 02:24:39.407558 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:134] >> ID +[2025-10-16 02:24:39.407573 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: yylex@lex_sql.l:84] >> SEMICOLON +[2025-10-16 02:24:39.407613 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [drop table statement: table name text_table] +[2025-10-16 02:24:39.407919 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: add_page@double_write_buffer.cpp:103] >> [cache hit]add page into double write buffer. buffer_pool_id:2,page_num:1,lsn=0, dwb size=1 +[2025-10-16 02:24:39.407997 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:2,page_num:1, dirty=0, pin=1, lsn=0, this=0x799dc0c0c940 +[2025-10-16 02:24:39.408042 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x799dc0c0c940, page 1 frame_id=buffer_pool_id:2,page_num:1 +[2025-10-16 02:24:39.408130 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: add_page@double_write_buffer.cpp:111] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:2 +[2025-10-16 02:24:39.408153 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: flush_page_internal@disk_buffer_pool.cpp:564] >> Flush block. file desc=8, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0, this=0x799dc0c06808 +[2025-10-16 02:24:39.408171 pid:29964 tid:799dc51a17c0 ctx:504000000610 DEBUG: purge_frame@disk_buffer_pool.cpp:490] >> Successfully purge frame =0x799dc0c06808, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2025-10-16 02:24:39.408198 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: clear_pages@double_write_buffer.cpp:211] >> clear pages in double write buffer. file name=miniob/db/sys/text_table.data, page count=2 +[2025-10-16 02:24:39.408225 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=932441496 +[2025-10-16 02:24:39.408256 pid:29964 tid:799dc51a17c0 ctx:504000000610 TRACE: write_page@disk_buffer_pool.cpp:613] >> write_page: buffer_pool_id:2, page_num:1, lsn=0, check_sum=1674770333 +[2025-10-16 02:24:39.408312 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: close_file@disk_buffer_pool.cpp:307] >> Successfully close file 8:miniob/db/sys/text_table.data. +[2025-10-16 02:24:39.408333 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:226] >> disk buffer pool exit +[2025-10-16 02:24:39.408344 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: ~HeapTableEngine@heap_table_engine.cpp:37] >> Table has been closed: text_table +[2025-10-16 02:24:39.408355 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: drop_table@db.cpp:242] >> Drop table success. table name=text_table +[2025-10-16 02:24:39.412530 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: sync@db.cpp:310] >> double write buffer flush pages ret=SUCCESS +[2025-10-16 02:24:39.412825 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: flush_meta@db.cpp:443] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2025-10-16 02:24:39.412851 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: sync@db.cpp:329] >> Successfully sync db. db=sys +[2025-10-16 02:24:39.412860 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: execute@command_executor.cpp:110] >> sync db after ddl. rc=0 +[2025-10-16 02:24:39.412927 pid:29964 tid:799dc51a17c0 ctx:504000000610 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS diff --git a/src/observer/common/type/char_type.cpp b/src/observer/common/type/char_type.cpp index 6c93114a9..8ea962f62 100644 --- a/src/observer/common/type/char_type.cpp +++ b/src/observer/common/type/char_type.cpp @@ -29,9 +29,19 @@ RC CharType::set_value_from_str(Value &val, const string &data) const RC CharType::cast_to(const Value &val, AttrType type, Value &result) const { switch (type) { + case AttrType::CHARS: + case AttrType::TEXTS: { + // Cast string-like to string-like (CHARS <-> TEXTS) + // Preserve target attribute type and copy string data (truncate handled later when writing to record) + result.reset(); + result.set_type(type); + // Use get_string() to obtain a std::string representation safely + std::string s = val.get_string(); + result.set_string(s.c_str(), static_cast(s.size())); + return RC::SUCCESS; + } default: return RC::UNIMPLEMENTED; } - return RC::SUCCESS; } int CharType::cast_cost(AttrType type)