From 8a2335c8888ae31aaad0ed806b447d7fc9eec38b Mon Sep 17 00:00:00 2001 From: Morri77 <14908877+morri77@user.noreply.gitee.com> Date: Thu, 3 Oct 2024 11:17:44 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8F=82=E7=85=A7=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=BA=9B=E5=8A=9F=E8=83=BD=20clang-?= =?UTF-8?q?format=20clang-tidy=20=E4=BB=A5=E5=8F=8A=E4=BB=A5=E5=89=8D?= =?UTF-8?q?=E5=B8=B8=E7=94=A8=E7=9A=84=E5=91=BD=E4=BB=A4=E7=AD=89=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/case_failed.md | 10 +++ .github/ISSUE_TEMPLATE/others.md | 8 ++ .github/ISSUE_TEMPLATE/topic.md | 10 +++ .vscode/launch.json | 51 ++++++++++- .vscode/tasks.json | 117 ++++++++++++++++++++++++-- build.sh | 85 ++++++++++++++++++- 6 files changed, 271 insertions(+), 10 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/case_failed.md create mode 100644 .github/ISSUE_TEMPLATE/others.md create mode 100644 .github/ISSUE_TEMPLATE/topic.md diff --git a/.github/ISSUE_TEMPLATE/case_failed.md b/.github/ISSUE_TEMPLATE/case_failed.md new file mode 100644 index 000000000..b9e1c36f0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/case_failed.md @@ -0,0 +1,10 @@ +--- +name: Case Failed +about: Report a failed case. +title: "[2023 Case Failed]: " +labels: case_failed +--- + +**base on**: + +**description**: description diff --git a/.github/ISSUE_TEMPLATE/others.md b/.github/ISSUE_TEMPLATE/others.md new file mode 100644 index 000000000..f388ca637 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/others.md @@ -0,0 +1,8 @@ +--- +name: Others +about: Other issues. +title: "[2023 Others]: " +labels: others +--- + +**description**: description diff --git a/.github/ISSUE_TEMPLATE/topic.md b/.github/ISSUE_TEMPLATE/topic.md new file mode 100644 index 000000000..92be58bbd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/topic.md @@ -0,0 +1,10 @@ +--- +name: Topic +about: I want to do a topic. +title: "[2023 Topic]: " +labels: topic +--- + +**topic**: + +**description**: description diff --git a/.vscode/launch.json b/.vscode/launch.json index 18d82e74c..bd860321a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,10 +11,10 @@ "program": "${workspaceFolder}/${defaultBuildTask}/bin/observer", "args": ["-f", "${workspaceFolder}/etc/observer.ini", "-P", "cli"], "cwd": "${workspaceFolder}/${defaultBuildTask}/", + "externalConsole":true, "internalConsoleOptions": "openOnSessionStart", "osx": { - "MIMode": "lldb", - "externalConsole":true + "MIMode": "lldb" } }, { @@ -24,6 +24,49 @@ "program": "${workspaceFolder}/${defaultBuildTask}/bin/observer", "args": ["-f", "${workspaceFolder}/etc/observer.ini", "-P", "cli"], "cwd": "${workspaceFolder}/${defaultBuildTask}/" - } + }, + { + "name": "(gdb) Attach", + "type": "cppdbg", + "request": "attach", + "program": "${workspaceFolder}/${defaultBuildTask}/bin/observer", + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + }, + { + "name": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/${defaultBuildTask}/bin/observer", + "args": ["-f", "${workspaceFolder}/etc/observer.ini", "-P", "cli"], + "cwd": "${workspaceFolder}/${defaultBuildTask}/", + "stopAtEntry": false, + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + }, ] -} \ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c64205fa5..022bc926e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,27 +6,134 @@ { "label": "init", "type": "shell", - "command": "sudo -E env PATH=$PATH bash ${workspaceFolder}/build.sh init" + "command": "sudo -E env PATH=$PATH bash ${workspaceFolder}/build.sh init", + "problemMatcher": [], + "presentation": { + "focus": true, + }, }, { "label": "build_debug", "type": "shell", - "command": "bash build.sh debug", + "command": "bash ${workspaceFolder}/build.sh debug", "problemMatcher": [], "group": { "kind": "build", "isDefault": true - } + }, + "presentation": { + "focus": true, + }, }, { "label": "build_release", "type": "shell", - "command": "bash build.sh release" + "command": "bash ${workspaceFolder}/build.sh release", + "problemMatcher": [], + "presentation": { + "focus": true, + }, }, { "label": "gen_parser", "type": "shell", - "command": "cd ${workspaceFolder}/src/observer/sql/parser && bash gen_parser.sh" + "command": "cd ${workspaceFolder}/src/observer/sql/parser && bash gen_parser.sh", + "problemMatcher": [], + "presentation": { + "focus": true, + }, + }, + { + "label": "make", + "type": "shell", + "command": "bash ${workspaceFolder}/build.sh make", + "problemMatcher": [], + "presentation": { + "focus": true, + }, + }, + { + "label": "test all cases", + "type": "shell", + "command": "bash ${workspaceFolder}/build.sh test", + "group": { + "kind": "test", + "isDefault": true + }, + "problemMatcher": [], + "presentation": { + "focus": true, + }, + }, + { + "label": "test single case", + "type": "shell", + "command": "bash ${workspaceFolder}/build.sh test ${input:single_test_case}", + "problemMatcher": [], + "presentation": { + "focus": true, + }, + }, + { + "label": "test some cases", + "type": "shell", + "command": "bash ${workspaceFolder}/build.sh test ${input:test_some_cases}", + "problemMatcher": [], + "presentation": { + "focus": true, + }, + }, + { + "label": "diff single case", + "type": "shell", + "command": "bash ${workspaceFolder}/build.sh diff ${input:single_test_case} -u", + "problemMatcher": [], + "presentation": { + "focus": true, + }, + }, + { + "label": "unittest", + "type": "shell", + "command": "bash ${workspaceFolder}/build.sh unittest", + "problemMatcher": [], + "presentation": { + "focus": true, + }, + }, + ], + "inputs": [ + { + "type": "pickString", + "id": "single_test_case", + "description": "Please pick one case", + "options": [ + "basic", + "primary-aggregation-func", + "primary-complex-sub-query", + "primary-date", + "primary-drop-table", + "primary-expression", + "primary-group-by", + "primary-insert", + "primary-join-tables", + "primary-multi-index", + "primary-null", + "primary-order-by", + "primary-select-meta", + "primary-select-tables", + "primary-simple-sub-query", + "primary-text", + "primary-unique", + "primary-update", + ], + "default": "basic" + }, + { + "type": "promptString", + "id": "test_some_cases", + "description": "Please enter some test cases with separated by commas", + "default": "basic,primary-select-meta" } ] } diff --git a/build.sh b/build.sh index b85901dfe..b40e9939f 100755 --- a/build.sh +++ b/build.sh @@ -20,11 +20,17 @@ function usage echo "./build.sh -h" echo "./build.sh init # install dependence" echo "./build.sh clean" + echo "./build.sh make" #添加常用命令 + echo "./build.sh unittest" + echo "./build.sh test [TestCases] [TestOptions]" + echo "./build.sh dif SingleTestCaseName [DiffOptions]" echo "./build.sh [BuildType] [--make [MakeOptions]]" echo "" echo "OPTIONS:" echo "BuildType => debug(default), release" echo "MakeOptions => Options to make command, default: -j N" + echo "DiffOptions => Options to diff command, e.g. -u|-c|-y" # -u: unified, -c: context, -y: side by side + echo "TestOptions => Options to 。/test/case/miniob_test.py" echo "" echo "Examples:" @@ -33,6 +39,14 @@ function usage echo "" echo "# Build by debug mode and make with -j24." echo "./build.sh debug --make -j24" + echo "" + echo "./build.sh make" + echo "" + echo "./build.sh test" + echo "./build.sh unittest" + echo "./build.sh test primary-drop-table,basic" + echo "" + echo "./build.sh diff primary-drop-table -u" } function parse_args @@ -62,6 +76,22 @@ function try_make fi } +function clang_format +{ + if [[ $MAKE != false ]] + then + $MAKE format + fi +} + +function check_clang_tidy +{ + if [[ $MAKE != false ]] + then + $MAKE check-clang-tidy + fi +} + # create build directory and cd it. function prepare_build_dir { @@ -78,6 +108,7 @@ function do_init # build libevent cd ${TOPDIR}/deps/3rd/libevent && \ + git checkout release-2.1.12-stable && \ #不知道干了什么 mkdir -p build && \ cd build && \ ${CMAKE_COMMAND} .. -DEVENT__DISABLE_OPENSSL=ON -DEVENT__LIBRARY_TYPE=BOTH && \ @@ -152,6 +183,37 @@ function build esac } +function do_test +{ + # test component + # pushd build/bin + # for exe in $(pwd)/*_test; do + # if [ $exe != $(pwd)/"client_performance_test" ] && [ $exe != $(pwd)/"clog_test" ]; then + # $exe + # fi + # done + # popd + set -x + if [[ $# > 1 ]]; then + python3 ./test/case/miniob_test.py --test-cases=${@:2} + else + # all cases + python3 ./test/case/miniob_test.py + fi +} + +function do_diff +{ + # usage: + # ./diff_single_case.sh basic # default format + # ./diff_single_case.sh basic -u # unified format + # ./diff_single_case.sh basic -c # context format + # ./diff_single_case.sh basic -y # two column format + # [How to Use diff --color to Change the Color of the Output](https://phoenixnap.com/kb/diff-color) + set -x + diff ${@:3} --color -i ./test/case/result/$2.result /tmp/miniob/result_output/$2.result.tmp +} + function main { case "$1" in @@ -164,12 +226,33 @@ function main clean) do_clean ;; + test) + cd ./src/observer/sql/parser && bash gen_parser.sh && cd ../../../../ + echo "gen parser finish" + do_test "$@" + ;; + diff) + do_diff "$@" + ;; + unittest) + do_unittest + ;; + make) + cd ./src/observer/sql/parser && bash gen_parser.sh && cd ../../../../ + echo "gen parser finish" + cd ./build && make -j8 && cd ../ + echo "make finish" + ;; *) parse_args + cd ./src/observer/sql/parser && bash gen_parser.sh && cd ../../../../ + echo "gen parser finish" build + # clang_format # clang-format: maybe you need: sudo ln -s /usr/bin/python3 /usr/bin/python + # check_clang_tidy try_make ;; esac } -main "$@" +main "$@" \ No newline at end of file From bbca6206bf02a842ab3f0b985b1520e3377c28cb Mon Sep 17 00:00:00 2001 From: Morri77 <14908877+morri77@user.noreply.gitee.com> Date: Mon, 7 Oct 2024 14:19:55 +0000 Subject: [PATCH 2/2] drop tables --- .vscode/tasks.json | 14 +- CMakeLists.txt | 1 + build.sh | 33 +- db/sys/dblwr.db | 0 miniob/db/sys/dblwr.db | Bin 0 -> 24628 bytes miniob/db/sys/sys.db | 1 + miniob/db/sys/test.data | Bin 0 -> 8192 bytes miniob/db/sys/test.table | 17 + miniob/db/sys/test2.data | Bin 0 -> 8192 bytes miniob/db/sys/test2.table | 17 + miniob/db/sys/test3.data | Bin 0 -> 8192 bytes miniob/db/sys/test3.table | 17 + observer.log.20241007 | 1274 +++++++++++++++++ src/observer/common/rc.h | 3 +- .../sql/executor/command_executor.cpp | 6 + .../sql/executor/drop_table_executor.cpp | 39 + .../sql/executor/drop_table_executor.h | 32 + src/observer/sql/parser/lex_sql.cpp | 509 ++++--- src/observer/sql/parser/lex_sql.h | 303 +++- src/observer/sql/stmt/drop_table_stmt.cpp | 25 + src/observer/sql/stmt/drop_table_stmt.h | 44 + src/observer/sql/stmt/stmt.cpp | 5 +- .../storage/buffer/disk_buffer_pool.cpp | 57 +- .../storage/buffer/disk_buffer_pool.h | 2 + src/observer/storage/db/db.cpp | 19 + src/observer/storage/db/db.h | 2 + .../storage/default/default_handler.cpp | 15 +- src/observer/storage/table/table.cpp | 46 +- src/observer/storage/table/table.h | 2 + 29 files changed, 2146 insertions(+), 337 deletions(-) create mode 100644 db/sys/dblwr.db create mode 100644 miniob/db/sys/dblwr.db create mode 100644 miniob/db/sys/sys.db create mode 100644 miniob/db/sys/test.data create mode 100644 miniob/db/sys/test.table create mode 100644 miniob/db/sys/test2.data create mode 100644 miniob/db/sys/test2.table create mode 100644 miniob/db/sys/test3.data create mode 100644 miniob/db/sys/test3.table create mode 100644 observer.log.20241007 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/.vscode/tasks.json b/.vscode/tasks.json index 022bc926e..25c1678a8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,7 +6,7 @@ { "label": "init", "type": "shell", - "command": "sudo -E env PATH=$PATH bash ${workspaceFolder}/build.sh init", + "command": "env PATH=$PATH bash ${workspaceFolder}/build.sh init", "problemMatcher": [], "presentation": { "focus": true, @@ -101,6 +101,16 @@ "focus": true, }, }, + { + "label": "Run observer", + "type": "shell", + "command": "/root/miniob/build/bin/observer -s/root/miniob-test.sock -f /root/miniob/etc/observer.ini" + }, + { + "label": "Run obclient", + "type": "shell", + "command": "/root/miniob/build/bin/obclient -s/root/miniob-test.sock" + }, ], "inputs": [ { @@ -136,4 +146,4 @@ "default": "basic,primary-select-meta" } ] -} +} \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f7aeb5f6..f28006665 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,4 @@ +add_definitions("-Wall -g") cmake_minimum_required(VERSION 3.10) set(CMAKE_CXX_STANDARD 20) diff --git a/build.sh b/build.sh index b40e9939f..7724405bd 100755 --- a/build.sh +++ b/build.sh @@ -9,7 +9,7 @@ CMAKE_COMMAND="cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --log-level=STATUS" ALL_ARGS=("$@") BUILD_ARGS=() -MAKE_ARGS=() +MAKE_ARGS=(-j $CPU_CORES) MAKE=make echo "$0 ${ALL_ARGS[@]}" @@ -20,17 +20,17 @@ function usage echo "./build.sh -h" echo "./build.sh init # install dependence" echo "./build.sh clean" - echo "./build.sh make" #添加常用命令 + echo "./build.sh make" echo "./build.sh unittest" echo "./build.sh test [TestCases] [TestOptions]" - echo "./build.sh dif SingleTestCaseName [DiffOptions]" + echo "./build.sh diff SingleTestCaseName [DiffOptions]" echo "./build.sh [BuildType] [--make [MakeOptions]]" echo "" echo "OPTIONS:" echo "BuildType => debug(default), release" echo "MakeOptions => Options to make command, default: -j N" - echo "DiffOptions => Options to diff command, e.g. -u|-c|-y" # -u: unified, -c: context, -y: side by side - echo "TestOptions => Options to 。/test/case/miniob_test.py" + echo "DiffOptions => Options to diff command, e.g. -u|-c|-y" + echo "TestOptions => Options to ./test/case/miniob_test.py" echo "" echo "Examples:" @@ -59,7 +59,8 @@ function parse_args elif [[ $make_start == false ]] then BUILD_ARGS+=("$arg") - else + e + se MAKE_ARGS+=("$arg") fi @@ -108,7 +109,7 @@ function do_init # build libevent cd ${TOPDIR}/deps/3rd/libevent && \ - git checkout release-2.1.12-stable && \ #不知道干了什么 + git checkout release-2.1.12-stable && \ mkdir -p build && \ cd build && \ ${CMAKE_COMMAND} .. -DEVENT__DISABLE_OPENSSL=ON -DEVENT__LIBRARY_TYPE=BOTH && \ @@ -127,7 +128,7 @@ function do_init cd ${TOPDIR}/deps/3rd/benchmark && \ mkdir -p build && \ cd build && \ - ${CMAKE_COMMAND} .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBENCHMARK_ENABLE_TESTING=OFF -DBENCHMARK_INSTALL_DOCS=OFF -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_USE_BUNDLED_GTEST=OFF -DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF && \ + ${CMAKE_COMMAND} .. -DBENCHMARK_ENABLE_TESTING=OFF -DBENCHMARK_INSTALL_DOCS=OFF -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DBENCHMARK_USE_BUNDLED_GTEST=OFF -DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF && \ ${MAKE_COMMAND} -j4 && \ ${MAKE_COMMAND} install @@ -183,6 +184,20 @@ function build esac } +function do_unittest +{ + cd ./build/bin + for exe in $(pwd)/*_test; do + echo $exe + if [ $exe != $(pwd)/"client_performance_test" ] && \ + [ $exe != $(pwd)/"record_manager_concurrency_test" ] && \ + [ $exe != $(pwd)/"bplus_tree_concurrency_test" ] && \ + [ $exe != $(pwd)/"bplus_tree_test" ]; then + $exe + fi + done +} + function do_test { # test component @@ -255,4 +270,4 @@ function main esac } -main "$@" \ No newline at end of file +main "$@" diff --git a/db/sys/dblwr.db b/db/sys/dblwr.db new file mode 100644 index 000000000..e69de29bb diff --git a/miniob/db/sys/dblwr.db b/miniob/db/sys/dblwr.db new file mode 100644 index 0000000000000000000000000000000000000000..597267df67b555958219f561eb281e41ed1d3290 GIT binary patch literal 24628 zcmeI&u?dAR6a~A z+ijgwuPQ3{>;wo9AV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!Cur1?p?O^zR>v zJizdqy3~^gxPWW~2oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkL{MFM9I;F$N! z1r&LJ@!v0H79ihy(bJ4dfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C7J}a;T DZi)=1 literal 0 HcmV?d00001 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/miniob/db/sys/test.data b/miniob/db/sys/test.data new file mode 100644 index 0000000000000000000000000000000000000000..8a2c3e42f885bcb70e2b803842afdacf590512dc GIT binary patch literal 8192 zcmeIuu?YYm3|mXF5=$GxkuGMZ}JEbAV7cs0RjXF5FkK+ a009C72oNAZfB*pk1PBlyK!5;&<^l(AMFK1U literal 0 HcmV?d00001 diff --git a/miniob/db/sys/test.table b/miniob/db/sys/test.table new file mode 100644 index 000000000..e74b2db3d --- /dev/null +++ b/miniob/db/sys/test.table @@ -0,0 +1,17 @@ +{ + "fields" : + [ + { + "FIELD_id" : 0, + "len" : 4, + "name" : "t1", + "offset" : 0, + "type" : "ints", + "visible" : true + } + ], + "indexes" : null, + "storage_format" : 1, + "table_id" : 0, + "table_name" : "test" +} \ No newline at end of file diff --git a/miniob/db/sys/test2.data b/miniob/db/sys/test2.data new file mode 100644 index 0000000000000000000000000000000000000000..0ef4c2f1f187d157e47d438fcd5e13c6ccd0c79d GIT binary patch literal 8192 zcmeIuu?YYm3x7g3jMj(%!;awm@f0RjXF5FkK+009C7 b2oNAZfB*pk1PBlyK!5-N0t5&U_*`HE4-o<( literal 0 HcmV?d00001 diff --git a/miniob/db/sys/test3.table b/miniob/db/sys/test3.table new file mode 100644 index 000000000..602f28c89 --- /dev/null +++ b/miniob/db/sys/test3.table @@ -0,0 +1,17 @@ +{ + "fields" : + [ + { + "FIELD_id" : 0, + "len" : 4, + "name" : "t2", + "offset" : 0, + "type" : "ints", + "visible" : true + } + ], + "indexes" : null, + "storage_format" : 1, + "table_id" : 2, + "table_name" : "test3" +} \ No newline at end of file diff --git a/observer.log.20241007 b/observer.log.20241007 new file mode 100644 index 000000000..295e3a59e --- /dev/null +++ b/observer.log.20241007 @@ -0,0 +1,1274 @@ +[2024-10-07 05:13:15.120072 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 05:13:15.164238 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.164666 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.165150 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.165593 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.165975 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.166363 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.166763 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.167258 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.167867 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.168651 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.169194 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.169699 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.170221 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.170697 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.171265 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.171665 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.172521 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.172936 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.173411 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.173850 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.174039 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 05:13:15.174380 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 05:13:15.178905 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=0 +[2024-10-07 05:13:15.187202 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: init_meta@db.cpp:308] >> Db meta file not exist. db=sys, file=miniob/db/sys/sys.db +[2024-10-07 05:13:15.190194 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=0 +[2024-10-07 05:13:15.192280 pid:48540 tid:7f8fb9b287c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 05:13:15.201425 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 05:13:15.201725 pid:48540 tid:7f8fb9b287c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 05:13:15.201939 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 05:13:15.202168 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 05:13:15.216710 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 05:13:15.216918 pid:48540 tid:7f8fb9b287c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 07:32:00.170041 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 07:32:00.185153 pid:61116 tid:7f8f49b8c7c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 07:32:00.201666 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.202081 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.202420 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.202774 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.203111 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.203486 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.203834 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.204206 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.204590 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.205017 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.205351 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.205726 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.206124 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.206521 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.206898 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.207303 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.207732 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.208095 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.208467 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.208869 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.209123 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 07:32:00.209372 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 07:32:00.213472 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=0 +[2024-10-07 07:32:00.225970 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: init_meta@db.cpp:308] >> Db meta file not exist. db=sys, file=miniob/db/sys/sys.db +[2024-10-07 07:32:00.228351 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=0 +[2024-10-07 07:32:00.230512 pid:61116 tid:7f8f49b8c7c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 07:32:00.238555 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 07:32:00.238871 pid:61116 tid:7f8f49b8c7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 07:32:00.239068 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 07:32:00.239257 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 07:32:00.254552 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 07:32:00.254971 pid:61116 tid:7f8f49b8c7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 09:19:30.906841 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 09:19:30.926891 pid:76691 tid:7f67ffc3d7c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 09:19:30.950844 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.951221 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.951588 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.951988 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.952391 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.952725 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.953037 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.953382 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.953783 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.954218 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.954776 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.955211 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.955634 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.956026 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.956414 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.956822 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.957217 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.957554 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.957949 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.958285 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.958456 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:19:30.958664 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 09:19:30.964154 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=0 +[2024-10-07 09:19:30.978513 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: init_meta@db.cpp:308] >> Db meta file not exist. db=sys, file=miniob/db/sys/sys.db +[2024-10-07 09:19:30.980700 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=0 +[2024-10-07 09:19:30.982713 pid:76691 tid:7f67ffc3d7c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 09:19:30.996723 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 09:19:30.997193 pid:76691 tid:7f67ffc3d7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 09:19:30.997483 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 09:19:30.997617 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 09:19:31.024676 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 09:19:31.024939 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 09:19:47.425611 pid:76691 tid:7f67fb387640 ctx:0 INFO: quit_thread_func@main.cpp:153] >> Receive signal: 2 +[2024-10-07 09:19:47.425840 pid:76691 tid:7f67fb387640 ctx:0 INFO: shutdown@server.cpp:301] >> NetServer shutting down +[2024-10-07 09:19:47.425610 pid:76691 tid:7f67ffc3d7c0 ctx:0 WARN: serve@server.cpp:273] >> [listen socket] poll error. fd = 5, ret = -1, error=Interrupted system call +[2024-10-07 09:19:47.428114 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 09:19:47.428477 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 09:19:47.428736 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 09:19:47.429079 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 09:19:47.429672 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: serve@server.cpp:295] >> NetServer quit +[2024-10-07 09:19:47.430085 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: main@main.cpp:200] >> Server stopped +[2024-10-07 09:19:47.479332 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: sync@db.cpp:247] >> double write buffer flush pages ret=SUCCESS +[2024-10-07 09:19:47.483103 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: flush_meta@db.cpp:380] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2024-10-07 09:19:47.483440 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: sync@db.cpp:266] >> Successfully sync db. db=sys +[2024-10-07 09:19:47.483665 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: ~Db@db.cpp:47] >> Db has been closed: sys +[2024-10-07 09:19:47.492826 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: cleanup@mem_pool.h:217] >> Successfully do cleanup, this->name:BufPool. +[2024-10-07 09:19:47.493186 pid:76691 tid:7f67ffc3d7c0 ctx:0 INFO: cleanup_util@init.cpp:229] >> Shutdown Cleanly! +[2024-10-07 09:20:15.835154 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 09:20:15.853757 pid:77485 tid:7fd1912e27c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 09:20:15.874286 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.874726 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.875106 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.875429 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.875774 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.876135 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.876462 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.876794 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.877147 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.877660 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.878070 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.878464 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.879041 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.879384 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.879682 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.880005 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.880512 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.880868 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.881200 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.881523 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.881701 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:20:15.881895 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 09:20:15.885509 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=0 +[2024-10-07 09:20:15.894147 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 09:20:15.896434 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=0 +[2024-10-07 09:20:15.902990 pid:77485 tid:7fd1912e27c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 09:20:15.907423 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 09:20:15.907599 pid:77485 tid:7fd1912e27c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 09:20:15.907771 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 09:20:15.907896 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 09:20:15.917083 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 09:20:15.917214 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 09:25:49.517517 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 209.127.0.0:36983 + +[2024-10-07 09:25:49.526713 pid:77485 tid:7fd18ca87640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b0000005c0 +[2024-10-07 09:25:52.178896 pid:77485 tid:7fd18ca87640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=5): drop +[2024-10-07 09:25:52.206385 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 09:25:52.206661 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:25:52.206888 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:25:52.207155 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:25:57.851257 pid:77485 tid:7fd18ca87640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=11): show table +[2024-10-07 09:25:57.851799 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:25:57.852330 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:25:57.852694 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:25:57.853146 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:25:57.853483 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:25:59.880258 pid:77485 tid:7fd18ca87640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:25:59.880864 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:25:59.882146 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:25:59.889749 pid:77485 tid:7fd18ca87640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:26:44.017706 pid:77485 tid:7fd18ca87640 ctx:0 WARN: operator()@one_thread_per_connection_thread_handler.cpp:92] >> poll error. fd = 6, revents = 17 +[2024-10-07 09:26:44.512582 pid:77485 tid:7fd18ca87640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:103] >> worker thread stop. communicator = 0x60b0000005c0 +[2024-10-07 09:26:44.529037 pid:77485 tid:7fd18ca87640 ctx:0 INFO: close_connection@one_thread_per_connection_thread_handler.cpp:154] >> close connection. communicator = 0x60b0000005c0 +[2024-10-07 09:28:48.427604 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 09:28:48.428246 pid:85649 tid:7f31c8c187c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 09:28:48.428894 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.429261 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.429640 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.430039 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.430438 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.430858 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.431361 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.431782 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.432288 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.432873 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.433243 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.433700 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.434069 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.434548 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.434955 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.435356 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.435798 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.436349 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.436815 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.437176 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.437362 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:28:48.437705 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 09:28:48.438470 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=0 +[2024-10-07 09:28:48.440511 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 09:28:48.445984 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=0 +[2024-10-07 09:28:48.448052 pid:85649 tid:7f31c8c187c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 09:28:48.448362 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 09:28:48.448797 pid:85649 tid:7f31c8c187c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 09:28:48.449293 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 09:28:48.449550 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 09:28:48.450778 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 09:28:48.451282 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 09:29:16.339389 pid:85649 tid:7f31c8c187c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 49.127.0.0:51210 + +[2024-10-07 09:29:16.340194 pid:85649 tid:7f31c4387640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b0000005c0 +[2024-10-07 09:29:29.841125 pid:77485 tid:7fd18ca87640 ctx:0 INFO: quit_thread_func@main.cpp:153] >> Receive signal: 2 +[2024-10-07 09:29:29.845085 pid:77485 tid:7fd1912e27c0 ctx:0 WARN: serve@server.cpp:273] >> [listen socket] poll error. fd = 5, ret = -1, error=Interrupted system call +[2024-10-07 09:29:29.846058 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 09:29:29.846423 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 09:29:29.846876 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 09:29:29.847449 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 09:29:29.847606 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: serve@server.cpp:295] >> NetServer quit +[2024-10-07 09:29:29.847768 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: main@main.cpp:200] >> Server stopped +[2024-10-07 09:29:29.845751 pid:77485 tid:7fd18ca87640 ctx:0 INFO: shutdown@server.cpp:301] >> NetServer shutting down +[2024-10-07 09:29:29.856461 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: sync@db.cpp:247] >> double write buffer flush pages ret=SUCCESS +[2024-10-07 09:29:29.861598 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: flush_meta@db.cpp:380] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2024-10-07 09:29:29.861951 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: sync@db.cpp:266] >> Successfully sync db. db=sys +[2024-10-07 09:29:29.862383 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: ~Db@db.cpp:47] >> Db has been closed: sys +[2024-10-07 09:29:29.867425 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: cleanup@mem_pool.h:217] >> Successfully do cleanup, this->name:BufPool. +[2024-10-07 09:29:29.867606 pid:77485 tid:7fd1912e27c0 ctx:0 INFO: cleanup_util@init.cpp:229] >> Shutdown Cleanly! +[2024-10-07 09:29:33.704208 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:29:33.704517 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:29:33.704820 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:29:33.705247 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:30:28.261350 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:30:28.261691 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:30:28.262150 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:30:28.262465 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:30:35.090461 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=5): help +[2024-10-07 09:30:35.090789 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:86] >> HELP +[2024-10-07 09:30:35.100085 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:30:44.678983 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=21): create table test id +[2024-10-07 09:30:44.679306 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:30:44.679621 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:30:44.679948 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:30:44.680445 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:30:44.680851 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:30:44.681096 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:30:44.681548 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:30:51.459768 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=23): create table test (id) +[2024-10-07 09:30:51.460270 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:30:51.460556 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:30:51.460840 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:30:51.465039 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:30:51.465311 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:30:51.465517 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:123] >> RBRACE +[2024-10-07 09:30:51.465785 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:30:51.466017 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:30:51.466314 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:31:03.938362 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=27): create table test (id,int) +[2024-10-07 09:31:03.938777 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:31:03.939168 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:31:03.939492 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:03.939777 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:31:03.940180 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:03.940531 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:125] >> COMMA +[2024-10-07 09:31:03.940717 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:31:03.940943 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:31:03.941176 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:31:10.628605 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=29): create table test (id , int) +[2024-10-07 09:31:10.629046 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:31:10.629545 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:31:10.629767 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:10.630103 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:31:10.630326 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:10.630544 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:125] >> COMMA +[2024-10-07 09:31:10.630794 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:31:10.631082 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:31:10.631451 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:31:35.030684 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=28): create table test (id,int,) +[2024-10-07 09:31:35.031293 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:31:35.031890 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:31:35.032147 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:35.032521 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:31:35.032730 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:35.033111 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:125] >> COMMA +[2024-10-07 09:31:35.033393 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:31:35.033661 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:31:35.033997 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:31:38.278418 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=27): create table test (id,int) +[2024-10-07 09:31:38.278766 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:31:38.279104 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:31:38.279469 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:38.279834 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:31:38.280294 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:31:38.280493 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:125] >> COMMA +[2024-10-07 09:31:38.280739 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:31:38.281037 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:31:38.281382 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:32:44.326147 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=27): create table test (id,int) +[2024-10-07 09:32:44.326499 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:32:44.327014 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:32:44.327298 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:32:44.327647 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:32:44.327951 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:32:44.328304 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:125] >> COMMA +[2024-10-07 09:32:44.328566 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:32:44.328931 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:32:44.329149 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:32:50.834840 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:32:50.835217 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:32:50.835461 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:32:50.835967 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:32:52.624397 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:32:52.624993 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:32:52.625609 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:32:52.626115 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:32:53.698128 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:32:53.698696 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:32:53.699271 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:32:53.699632 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:32:54.316145 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:32:54.316661 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:32:54.317440 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:32:54.317994 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:32:54.801500 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:32:54.801871 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:32:54.802369 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:32:54.802810 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:32:56.299873 pid:85649 tid:7f31c4387640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:32:56.300194 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:32:56.300452 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:32:56.300692 pid:85649 tid:7f31c4387640 ctx:60300001f9f0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:35:40.837898 pid:91447 tid:7f00c79847c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 09:35:40.838803 pid:91447 tid:7f00c79847c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 09:35:40.839663 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.840098 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.840564 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.840930 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.841509 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.842028 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.842480 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.842980 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.843498 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.843981 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.844447 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.844871 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.845241 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.845670 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.846218 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.846656 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.847102 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.847546 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.847939 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.848326 pid:91447 tid:7f00c79847c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.848610 pid:91447 tid:7f00c79847c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 09:35:40.848880 pid:91447 tid:7f00c79847c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 09:35:40.849714 pid:91447 tid:7f00c79847c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=0 +[2024-10-07 09:35:40.851921 pid:91447 tid:7f00c79847c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 09:35:40.854683 pid:91447 tid:7f00c79847c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=0 +[2024-10-07 09:35:40.856644 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 09:35:40.856991 pid:91447 tid:7f00c79847c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 09:35:40.857307 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 09:35:40.857629 pid:91447 tid:7f00c79847c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 09:35:40.857907 pid:91447 tid:7f00c79847c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 09:35:40.858216 pid:91447 tid:7f00c79847c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 09:35:40.858535 pid:91447 tid:7f00c79847c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 09:36:44.519605 pid:91447 tid:7f00c79847c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 0.127.0.0:50913 + +[2024-10-07 09:36:44.520360 pid:91447 tid:7f00c3187640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b0000005c0 +[2024-10-07 09:36:49.508041 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:36:49.508321 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:36:49.508605 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:36:49.509076 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:37:34.579322 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=5): help +[2024-10-07 09:37:34.579903 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:86] >> HELP +[2024-10-07 09:37:34.580786 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:38:08.011280 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=24): create table test 1 int +[2024-10-07 09:38:08.011657 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:38:08.011857 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:38:08.012063 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:08.012419 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:80] >> NUMBER +[2024-10-07 09:38:08.012743 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:38:08.013007 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:38:08.013339 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:38:10.274535 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=26): create table test 1,int +[2024-10-07 09:38:10.274816 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:38:10.275034 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:38:10.275341 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:10.275719 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:80] >> NUMBER +[2024-10-07 09:38:10.276015 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:38:10.276332 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:38:10.276593 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:38:23.919991 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=26): create table test (1 int) +[2024-10-07 09:38:23.920416 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:38:23.920924 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:38:23.921140 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:23.921855 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:38:23.922088 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:80] >> NUMBER +[2024-10-07 09:38:23.922412 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 09:38:23.922619 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 09:38:23.922879 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:38:26.799854 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=27): create table test (t1 int) +[2024-10-07 09:38:26.800060 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:38:26.800258 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:38:26.800479 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:26.800776 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:38:26.800983 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:26.801365 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:110] >> INT_T +[2024-10-07 09:38:26.802074 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:123] >> RBRACE +[2024-10-07 09:38:26.806735 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name test] +[2024-10-07 09:38:26.816858 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create@table.cpp:67] >> Begin to create table miniob/db/sys:test +[2024-10-07 09:38:26.823928 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@field_meta.cpp:57] >> Init a field with name=t1 +[2024-10-07 09:38:26.824229 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@table_meta.cpp:97] >> Sussessfully initialized table meta. table id=0, name=test +[2024-10-07 09:38:26.832536 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create_file@disk_buffer_pool.cpp:833] >> Successfully create miniob/db/sys/test.data. +[2024-10-07 09:38:26.838875 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test.data. +[2024-10-07 09:38:26.839515 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f00c44fb808, page num 0 +[2024-10-07 09:38:26.840346 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: load_page@disk_buffer_pool.cpp:756] >> Load page miniob/db/sys/test.data:0, file_desc:7, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=1, lsn=0 +[2024-10-07 09:38:26.840629 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test.data. file_desc=7, hdr_frame=0x7f00c44fb808, file header=pageCount:1, allocatedCount:1 +[2024-10-07 09:38:26.840907 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=7, bp=0x60e0000081c0, lbt=0x7f00c7fb2c0e 0x55fae2c185f4 0x55fae28fa698 0x55fae2968b3b 0x55fae2970b0c 0x55fae291d5ef 0x55fae29eec09 0x55fae29ebd68 0x55fae289f09b 0x55fae289732e 0x55fae2897e5b 0x55fae29d9ba8 0x7f00c7dc9253 0x7f00c7a4fac3 0x7f00c7ae1850 +[2024-10-07 09:38:26.848084 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 09:38:26.848321 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 09:38:26.848553 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create@table.cpp:126] >> Successfully create table miniob/db/sys:test +[2024-10-07 09:38:26.848753 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create_table@db.cpp:160] >> Create table success. table name=test, table_id:0 +[2024-10-07 09:38:26.849066 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:1 +[2024-10-07 09:38:26.850035 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=7, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 09:38:26.850321 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@table.cpp:540] >> Sync table over. table=test +[2024-10-07 09:38:26.850499 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test. +[2024-10-07 09:38:26.852549 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 09:38:26.853113 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=-1373569955 +[2024-10-07 09:38:26.853506 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:247] >> double write buffer flush pages ret=SUCCESS +[2024-10-07 09:38:26.856684 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: flush_meta@db.cpp:380] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2024-10-07 09:38:26.856914 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:266] >> Successfully sync db. db=sys +[2024-10-07 09:38:26.857276 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: execute@command_executor.cpp:94] >> sync db after ddl. rc=0 +[2024-10-07 09:38:26.857553 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:38:31.324759 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=5): help +[2024-10-07 09:38:31.325291 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:86] >> HELP +[2024-10-07 09:38:31.325781 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:38:43.706241 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=27): create table test (t1 int) +[2024-10-07 09:38:43.706934 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:38:44.113188 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:38:44.650898 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:44.962650 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:38:45.192792 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:45.193140 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:110] >> INT_T +[2024-10-07 09:38:45.422385 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:123] >> RBRACE +[2024-10-07 09:38:45.422712 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name test] +[2024-10-07 09:38:45.423090 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 WARN: create_table@db.cpp:144] >> test has been opened before. +[2024-10-07 09:38:45.423715 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=SCHEMA_TABLE_EXIST +[2024-10-07 09:38:45.424120 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_TABLE_EXIST +[2024-10-07 09:38:45.424547 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:38:55.709051 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=27): create table test (t1 int) +[2024-10-07 09:38:56.780544 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:38:56.780898 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:38:56.781725 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:57.156199 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:38:57.515236 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:38:57.515839 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:110] >> INT_T +[2024-10-07 09:38:57.874278 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:123] >> RBRACE +[2024-10-07 09:38:57.874702 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name test] +[2024-10-07 09:38:57.875073 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 WARN: create_table@db.cpp:144] >> test has been opened before. +[2024-10-07 09:38:58.220740 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_sql@sql_task_handler.cpp:86] >> failed to do execute. rc=SCHEMA_TABLE_EXIST +[2024-10-07 09:38:58.601882 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SCHEMA_TABLE_EXIST +[2024-10-07 09:38:59.717615 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:39:20.147869 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=28): create table test2 (t2 int) +[2024-10-07 09:39:20.763279 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:39:21.271925 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:39:21.272437 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:39:29.719756 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:39:29.720440 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:39:30.168137 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:110] >> INT_T +[2024-10-07 09:39:30.168529 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:123] >> RBRACE +[2024-10-07 09:39:32.603533 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name test2] +[2024-10-07 09:39:32.603973 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create@table.cpp:67] >> Begin to create table miniob/db/sys:test2 +[2024-10-07 09:39:35.383037 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 09:39:35.383328 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@table_meta.cpp:97] >> Sussessfully initialized table meta. table id=1, name=test2 +[2024-10-07 09:39:52.613335 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create_file@disk_buffer_pool.cpp:833] >> Successfully create miniob/db/sys/test2.data. +[2024-10-07 09:40:03.794270 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test2.data. +[2024-10-07 09:40:04.621130 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f00c44fd870, page num 0 +[2024-10-07 09:40:05.723988 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: load_page@disk_buffer_pool.cpp:756] >> Load page miniob/db/sys/test2.data:0, file_desc:9, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=1, lsn=0 +[2024-10-07 09:40:06.617768 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test2.data. file_desc=9, hdr_frame=0x7f00c44fd870, file header=pageCount:1, allocatedCount:1 +[2024-10-07 09:40:06.617996 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=9, bp=0x60e000009180, lbt=0x7f00c7fb2c0e 0x55fae2c185f4 0x55fae28fa698 0x55fae2968b3b 0x55fae2970b0c 0x55fae291d5ef 0x55fae29eec09 0x55fae29ebd68 0x55fae289f09b 0x55fae289732e 0x55fae2897e5b 0x55fae29d9ba8 0x7f00c7dc9253 0x7f00c7a4fac3 0x7f00c7ae1850 +[2024-10-07 09:40:08.717548 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 09:40:33.900512 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 09:40:34.790612 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create@table.cpp:126] >> Successfully create table miniob/db/sys:test2 +[2024-10-07 09:40:35.181761 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create_table@db.cpp:160] >> Create table success. table name=test2, table_id:1 +[2024-10-07 09:40:35.554459 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:1 +[2024-10-07 09:40:35.947708 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 09:40:35.948042 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@table.cpp:540] >> Sync table over. table=test2 +[2024-10-07 09:40:35.948295 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test2. +[2024-10-07 09:40:35.948622 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:2 +[2024-10-07 09:40:35.949444 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=7, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 09:40:35.949695 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@table.cpp:540] >> Sync table over. table=test +[2024-10-07 09:40:35.949977 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test. +[2024-10-07 09:40:35.956626 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 09:40:35.957236 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=-1373569955 +[2024-10-07 09:40:35.957718 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 09:40:35.958143 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=410183721 +[2024-10-07 09:40:35.958698 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:247] >> double write buffer flush pages ret=SUCCESS +[2024-10-07 09:40:35.961369 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: flush_meta@db.cpp:380] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2024-10-07 09:40:35.961667 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:266] >> Successfully sync db. db=sys +[2024-10-07 09:40:35.961878 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: execute@command_executor.cpp:94] >> sync db after ddl. rc=0 +[2024-10-07 09:40:35.962133 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:42:23.265654 pid:91447 tid:7f00c3187640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=28): create table test3 (t2 int) +[2024-10-07 09:42:23.266305 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:88] >> CREATE +[2024-10-07 09:43:44.399961 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 09:43:45.340502 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:43:45.580490 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:122] >> LBRACE +[2024-10-07 09:43:45.830934 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 09:43:45.966759 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:110] >> INT_T +[2024-10-07 09:43:45.967172 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: yylex@lex_sql.l:123] >> RBRACE +[2024-10-07 09:43:45.967737 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: sql_debug@sql_debug.cpp:51] >> sql debug info: [create table statement: table name test3] +[2024-10-07 09:43:45.968251 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create@table.cpp:67] >> Begin to create table miniob/db/sys:test3 +[2024-10-07 09:43:47.243873 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 09:43:47.244018 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@table_meta.cpp:97] >> Sussessfully initialized table meta. table id=2, name=test3 +[2024-10-07 09:43:48.087865 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create_file@disk_buffer_pool.cpp:833] >> Successfully create miniob/db/sys/test3.data. +[2024-10-07 09:43:48.491350 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test3.data. +[2024-10-07 09:43:49.213863 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f00c44ff8d8, page num 0 +[2024-10-07 09:43:49.426512 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: load_page@disk_buffer_pool.cpp:756] >> Load page miniob/db/sys/test3.data:0, file_desc:11, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=1, lsn=0 +[2024-10-07 09:43:50.028274 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test3.data. file_desc=11, hdr_frame=0x7f00c44ff8d8, file header=pageCount:1, allocatedCount:1 +[2024-10-07 09:43:50.228270 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=11, bp=0x60e000009c00, lbt=0x7f00c7fb2c0e 0x55fae2c185f4 0x55fae28fa698 0x55fae2968b3b 0x55fae2970b0c 0x55fae291d5ef 0x55fae29eec09 0x55fae29ebd68 0x55fae289f09b 0x55fae289732e 0x55fae2897e5b 0x55fae29d9ba8 0x7f00c7dc9253 0x7f00c7a4fac3 0x7f00c7ae1850 +[2024-10-07 09:43:50.810309 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 09:43:50.810507 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 09:43:51.238175 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create@table.cpp:126] >> Successfully create table miniob/db/sys:test3 +[2024-10-07 09:43:51.697880 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: create_table@db.cpp:160] >> Create table success. table name=test3, table_id:2 +[2024-10-07 09:43:52.827165 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:1 +[2024-10-07 09:43:55.679348 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 09:43:55.917378 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@table.cpp:540] >> Sync table over. table=test3 +[2024-10-07 09:43:57.203199 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test3. +[2024-10-07 09:43:57.203483 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:2 +[2024-10-07 09:43:59.089173 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 09:43:59.089473 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@table.cpp:540] >> Sync table over. table=test2 +[2024-10-07 09:43:59.422991 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test2. +[2024-10-07 09:43:59.665388 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2024-10-07 09:44:00.144183 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=7, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 09:44:00.374458 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@table.cpp:540] >> Sync table over. table=test +[2024-10-07 09:44:00.602685 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test. +[2024-10-07 09:44:01.117903 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 09:44:01.383108 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=-1373569955 +[2024-10-07 09:44:01.625528 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 09:44:01.885170 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=410183721 +[2024-10-07 09:44:02.446430 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2024-10-07 09:44:03.141768 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=1975313413 +[2024-10-07 09:44:03.439012 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:247] >> double write buffer flush pages ret=SUCCESS +[2024-10-07 09:44:04.885322 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: flush_meta@db.cpp:380] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2024-10-07 09:44:04.885830 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: sync@db.cpp:266] >> Successfully sync db. db=sys +[2024-10-07 09:44:04.886820 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: execute@command_executor.cpp:94] >> sync db after ddl. rc=0 +[2024-10-07 09:44:05.484632 pid:91447 tid:7f00c79847c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 0.127.0.0:50913 + +[2024-10-07 09:44:06.544368 pid:91447 tid:7f00c2986640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b000000720 +[2024-10-07 09:44:07.019458 pid:91447 tid:7f00c2986640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:44:08.171779 pid:91447 tid:7f00c2986640 ctx:60300001fae0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:44:11.696448 pid:91447 tid:7f00c2986640 ctx:60300001fae0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:44:11.696787 pid:91447 tid:7f00c2986640 ctx:60300001fae0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:44:20.341284 pid:91447 tid:7f00c3187640 ctx:60300001f9c0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 09:44:31.377052 pid:91447 tid:7f00c3187640 ctx:0 WARN: operator()@one_thread_per_connection_thread_handler.cpp:92] >> poll error. fd = 6, revents = 17 +[2024-10-07 09:44:49.918766 pid:91447 tid:7f00c3187640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:103] >> worker thread stop. communicator = 0x60b0000005c0 +[2024-10-07 09:44:49.924647 pid:91447 tid:7f00c3187640 ctx:0 INFO: close_connection@one_thread_per_connection_thread_handler.cpp:154] >> close connection. communicator = 0x60b0000005c0 +[2024-10-07 09:48:42.097155 pid:91447 tid:7f00c2986640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 09:48:42.097655 pid:91447 tid:7f00c2986640 ctx:60300001fae0 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 09:48:42.098202 pid:91447 tid:7f00c2986640 ctx:60300001fae0 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 09:48:43.896220 pid:91447 tid:7f00c2986640 ctx:60300001fae0 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 11:57:30.049615 pid:91447 tid:7f00c79847c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 0.127.0.0:50913 + +[2024-10-07 11:57:30.049708 pid:91447 tid:7f00c3187640 ctx:0 INFO: quit_thread_func@main.cpp:153] >> Receive signal: 2 +[2024-10-07 11:57:30.054795 pid:91447 tid:7f00c3187640 ctx:0 INFO: shutdown@server.cpp:301] >> NetServer shutting down +[2024-10-07 11:57:30.053044 pid:91447 tid:7f00c1984640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b0000007d0 +[2024-10-07 11:57:30.056998 pid:91447 tid:7f00c1984640 ctx:0 WARN: operator()@one_thread_per_connection_thread_handler.cpp:92] >> poll error. fd = 6, revents = 17 +[2024-10-07 11:57:30.057510 pid:91447 tid:7f00c1984640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:103] >> worker thread stop. communicator = 0x60b0000007d0 +[2024-10-07 11:57:30.049836 pid:91447 tid:7f00c2986640 ctx:0 WARN: operator()@one_thread_per_connection_thread_handler.cpp:84] >> poll error. fd = 12, ret = -1, error=Interrupted system call +[2024-10-07 11:57:30.058258 pid:91447 tid:7f00c2986640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:103] >> worker thread stop. communicator = 0x60b000000720 +[2024-10-07 11:57:30.058972 pid:91447 tid:7f00c2986640 ctx:0 INFO: close_connection@one_thread_per_connection_thread_handler.cpp:154] >> close connection. communicator = 0x60b000000720 +[2024-10-07 11:57:30.049834 pid:91447 tid:7f00c2185640 ctx:0 INFO: quit_thread_func@main.cpp:153] >> Receive signal: 1 +[2024-10-07 11:57:30.060254 pid:91447 tid:7f00c2185640 ctx:0 INFO: shutdown@server.cpp:301] >> NetServer shutting down +[2024-10-07 11:57:30.057860 pid:91447 tid:7f00c1984640 ctx:0 INFO: close_connection@one_thread_per_connection_thread_handler.cpp:154] >> close connection. communicator = 0x60b0000007d0 +[2024-10-07 11:57:30.553592 pid:91447 tid:7f00c79847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 11:57:30.553838 pid:91447 tid:7f00c79847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 11:57:30.554013 pid:91447 tid:7f00c79847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 11:57:30.554356 pid:91447 tid:7f00c79847c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 11:57:30.554575 pid:91447 tid:7f00c79847c0 ctx:0 INFO: serve@server.cpp:295] >> NetServer quit +[2024-10-07 11:57:30.554741 pid:91447 tid:7f00c79847c0 ctx:0 INFO: main@main.cpp:200] >> Server stopped +[2024-10-07 11:57:30.554959 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:1 +[2024-10-07 11:57:30.557350 pid:91447 tid:7f00c79847c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=11, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 11:57:30.557647 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@table.cpp:540] >> Sync table over. table=test3 +[2024-10-07 11:57:30.557903 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test3. +[2024-10-07 11:57:30.558096 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:2 +[2024-10-07 11:57:30.559030 pid:91447 tid:7f00c79847c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=9, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 11:57:30.559666 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@table.cpp:540] >> Sync table over. table=test2 +[2024-10-07 11:57:30.559862 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test2. +[2024-10-07 11:57:30.560177 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2024-10-07 11:57:30.560918 pid:91447 tid:7f00c79847c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=7, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 11:57:30.561131 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@table.cpp:540] >> Sync table over. table=test +[2024-10-07 11:57:30.561597 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test. +[2024-10-07 11:57:30.568347 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 11:57:30.568798 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=-1373569955 +[2024-10-07 11:57:30.569828 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 11:57:30.570489 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=410183721 +[2024-10-07 11:57:30.571079 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2024-10-07 11:57:30.571526 pid:91447 tid:7f00c79847c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=1975313413 +[2024-10-07 11:57:30.572019 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@db.cpp:247] >> double write buffer flush pages ret=SUCCESS +[2024-10-07 11:57:30.574499 pid:91447 tid:7f00c79847c0 ctx:0 INFO: flush_meta@db.cpp:380] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2024-10-07 11:57:30.574752 pid:91447 tid:7f00c79847c0 ctx:0 INFO: sync@db.cpp:266] >> Successfully sync db. db=sys +[2024-10-07 11:57:30.575179 pid:91447 tid:7f00c79847c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:486] >> Successfully purge frame =0x7f00c44ff8d8, page 0 frame_id=buffer_pool_id:3,page_num:0 +[2024-10-07 11:57:30.575456 pid:91447 tid:7f00c79847c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:213] >> clear pages in double write buffer. file name=miniob/db/sys/test3.data, page count=0 +[2024-10-07 11:57:30.576468 pid:91447 tid:7f00c79847c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:305] >> Successfully close file 11:miniob/db/sys/test3.data. +[2024-10-07 11:57:30.576841 pid:91447 tid:7f00c79847c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:224] >> disk buffer pool exit +[2024-10-07 11:57:30.577311 pid:91447 tid:7f00c79847c0 ctx:0 INFO: ~Table@table.cpp:52] >> Table has been closed: test3 +[2024-10-07 11:57:30.577612 pid:91447 tid:7f00c79847c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:486] >> Successfully purge frame =0x7f00c44fd870, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2024-10-07 11:57:30.577895 pid:91447 tid:7f00c79847c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:213] >> clear pages in double write buffer. file name=miniob/db/sys/test2.data, page count=0 +[2024-10-07 11:57:30.578802 pid:91447 tid:7f00c79847c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:305] >> Successfully close file 9:miniob/db/sys/test2.data. +[2024-10-07 11:57:30.579221 pid:91447 tid:7f00c79847c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:224] >> disk buffer pool exit +[2024-10-07 11:57:30.579622 pid:91447 tid:7f00c79847c0 ctx:0 INFO: ~Table@table.cpp:52] >> Table has been closed: test2 +[2024-10-07 11:57:30.579981 pid:91447 tid:7f00c79847c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:486] >> Successfully purge frame =0x7f00c44fb808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2024-10-07 11:57:30.580336 pid:91447 tid:7f00c79847c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:213] >> clear pages in double write buffer. file name=miniob/db/sys/test.data, page count=0 +[2024-10-07 11:57:30.581013 pid:91447 tid:7f00c79847c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:305] >> Successfully close file 7:miniob/db/sys/test.data. +[2024-10-07 11:57:30.581243 pid:91447 tid:7f00c79847c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:224] >> disk buffer pool exit +[2024-10-07 11:57:30.581743 pid:91447 tid:7f00c79847c0 ctx:0 INFO: ~Table@table.cpp:52] >> Table has been closed: test +[2024-10-07 11:57:30.582128 pid:91447 tid:7f00c79847c0 ctx:0 INFO: ~Db@db.cpp:47] >> Db has been closed: sys +[2024-10-07 11:57:30.588452 pid:91447 tid:7f00c79847c0 ctx:0 INFO: cleanup@mem_pool.h:217] >> Successfully do cleanup, this->name:BufPool. +[2024-10-07 11:57:30.588726 pid:91447 tid:7f00c79847c0 ctx:0 INFO: cleanup_util@init.cpp:229] >> Shutdown Cleanly! +[2024-10-07 12:09:05.344013 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 12:09:05.363315 pid:39357 tid:7f1c0653e7c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 12:09:05.384632 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.385094 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.385434 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.385777 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.386129 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.386670 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.387326 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.387810 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.388183 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.388533 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.388892 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.389315 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.389665 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.390041 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.390361 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.390764 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.391342 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.391687 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.392057 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.392723 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.392950 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:09:05.394210 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 12:09:05.401456 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=3 +[2024-10-07 12:09:05.417600 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 12:09:05.446117 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t1 +[2024-10-07 12:09:05.448912 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test.data. +[2024-10-07 12:09:05.449353 pid:39357 tid:7f1c0653e7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f1c02ffb808, page num 0 +[2024-10-07 12:09:05.458041 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2024-10-07 12:09:05.458233 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test.data. file_desc=5, hdr_frame=0x7f1c02ffb808, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:09:05.458622 pid:39357 tid:7f1c0653e7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=5, bp=0x60e000000ac0, lbt=0x7f1c06b6cc0e 0x5569af4305f4 0x5569af112698 0x5569af180b3b 0x5569af18bd4b 0x5569af1370b6 0x5569af13e9e8 0x5569af14a1d3 0x5569af14c72b 0x5569af0931bc 0x5569af098e5d 0x5569af083596 0x7f1c0659ed90 0x7f1c0659ee40 0x5569af089355 +[2024-10-07 12:09:05.473595 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:09:05.473817 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:09:05.474152 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test, file: test.table +[2024-10-07 12:09:05.475279 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:09:05.476129 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test2.data. +[2024-10-07 12:09:05.476491 pid:39357 tid:7f1c0653e7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f1c02ffd870, page num 0 +[2024-10-07 12:09:05.476652 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=2, page_num:0, lsn:0 +[2024-10-07 12:09:05.476862 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test2.data. file_desc=6, hdr_frame=0x7f1c02ffd870, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:09:05.477036 pid:39357 tid:7f1c0653e7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=6, bp=0x60e000000d60, lbt=0x7f1c06b6cc0e 0x5569af4305f4 0x5569af112698 0x5569af180b3b 0x5569af18bd4b 0x5569af1370b6 0x5569af13e9e8 0x5569af14a1d3 0x5569af14c72b 0x5569af0931bc 0x5569af098e5d 0x5569af083596 0x7f1c0659ed90 0x7f1c0659ee40 0x5569af089355 +[2024-10-07 12:09:05.477235 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:09:05.477431 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:09:05.477589 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test2, file: test2.table +[2024-10-07 12:09:05.478721 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:09:05.479641 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test3.data. +[2024-10-07 12:09:05.479981 pid:39357 tid:7f1c0653e7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f1c02fff8d8, page num 0 +[2024-10-07 12:09:05.480125 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=3, page_num:0, lsn:0 +[2024-10-07 12:09:05.480277 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test3.data. file_desc=7, hdr_frame=0x7f1c02fff8d8, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:09:05.480487 pid:39357 tid:7f1c0653e7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=7, bp=0x60e000001000, lbt=0x7f1c06b6cc0e 0x5569af4305f4 0x5569af112698 0x5569af180b3b 0x5569af18bd4b 0x5569af1370b6 0x5569af13e9e8 0x5569af14a1d3 0x5569af14c72b 0x5569af0931bc 0x5569af098e5d 0x5569af083596 0x7f1c0659ed90 0x7f1c0659ee40 0x5569af089355 +[2024-10-07 12:09:05.480651 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:09:05.480820 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:09:05.481025 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test3, file: test3.table +[2024-10-07 12:09:05.481151 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=3 +[2024-10-07 12:09:05.483030 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 12:09:05.483457 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 12:09:05.483835 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:3,page_num:0,lsn=0 +[2024-10-07 12:09:05.484225 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 12:09:05.488369 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 12:09:05.488562 pid:39357 tid:7f1c0653e7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 12:09:05.488797 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 12:09:05.488942 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 12:09:05.495181 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 12:09:05.495319 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 12:09:10.474145 pid:39357 tid:7f1c0653e7c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 28.127.0.0:1436 + +[2024-10-07 12:09:10.483391 pid:39357 tid:7f1c01c87640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b000000930 +[2024-10-07 12:09:15.403010 pid:39357 tid:7f1c01c87640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 12:09:15.419010 pid:39357 tid:7f1c01c87640 ctx:603000020410 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 12:09:15.419228 pid:39357 tid:7f1c01c87640 ctx:603000020410 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 12:09:15.426713 pid:39357 tid:7f1c01c87640 ctx:603000020410 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:13:48.369367 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +Finish dump configuration + +[2024-10-07 12:13:48.372707 pid:42990 tid:7ffff6fe57c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 12:13:48.377723 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.378394 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.379050 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.385294 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.386029 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.386575 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.388027 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.388932 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.389742 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.390472 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.390964 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.391542 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.392087 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.392701 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.393346 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.393845 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.394292 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.394857 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.395787 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.396473 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.396830 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:13:48.397168 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 12:13:48.400942 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=3 +[2024-10-07 12:13:48.404062 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 12:13:48.414762 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t1 +[2024-10-07 12:13:48.417118 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test.data. +[2024-10-07 12:13:48.417920 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test.data. file_desc=5, hdr_frame=0x7ffff3afb808, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:13:48.418422 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:13:48.418847 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:13:48.419096 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test, file: test.table +[2024-10-07 12:13:48.421476 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:13:48.423521 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test2.data. +[2024-10-07 12:13:48.424288 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test2.data. file_desc=6, hdr_frame=0x7ffff3afd870, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:13:48.424534 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:13:48.424923 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:13:48.425322 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test2, file: test2.table +[2024-10-07 12:13:48.427479 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:13:48.429348 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test3.data. +[2024-10-07 12:13:48.431369 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test3.data. file_desc=7, hdr_frame=0x7ffff3aff8d8, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:13:48.431906 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:13:48.432464 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:13:48.432749 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test3, file: test3.table +[2024-10-07 12:13:48.433185 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=3 +[2024-10-07 12:13:48.442146 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 12:13:48.442626 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 12:13:48.443105 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 12:13:48.443981 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: start_tcp_server@server.cpp:194] >> Listen on port 6789 +[2024-10-07 12:13:48.444569 pid:42990 tid:7ffff6fe57c0 ctx:0 INFO: start_tcp_server@server.cpp:197] >> Observer start success +[2024-10-07 12:14:17.861170 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 12:14:17.862427 pid:43501 tid:7f95f4eeb7c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 12:14:17.863312 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.863696 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.864050 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.864532 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.864987 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.865422 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.865857 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.866247 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.866736 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.867174 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.867547 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.868124 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.868540 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.868902 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.869349 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.869859 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.870301 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.870698 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.871146 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.871574 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.871796 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:14:17.872118 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 12:14:17.880169 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=3 +[2024-10-07 12:14:17.882174 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 12:14:17.888999 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t1 +[2024-10-07 12:14:17.890117 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test.data. +[2024-10-07 12:14:17.890665 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f95f19fb808, page num 0 +[2024-10-07 12:14:17.890956 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2024-10-07 12:14:17.891189 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test.data. file_desc=5, hdr_frame=0x7f95f19fb808, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:14:17.891478 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=5, bp=0x60e000000ac0, lbt=0x7f95f5519c0e 0x5633d9c3d5f4 0x5633d991f698 0x5633d998db3b 0x5633d9998d4b 0x5633d99440b6 0x5633d994b9e8 0x5633d99571d3 0x5633d995972b 0x5633d98a01bc 0x5633d98a5e5d 0x5633d9890596 0x7f95f4f4bd90 0x7f95f4f4be40 0x5633d9896355 +[2024-10-07 12:14:17.891794 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:14:17.892038 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:14:17.892330 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test, file: test.table +[2024-10-07 12:14:17.893480 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:14:17.894303 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test2.data. +[2024-10-07 12:14:17.894890 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f95f19fd870, page num 0 +[2024-10-07 12:14:17.895149 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=2, page_num:0, lsn:0 +[2024-10-07 12:14:17.895304 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test2.data. file_desc=6, hdr_frame=0x7f95f19fd870, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:14:17.895518 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=6, bp=0x60e000000d60, lbt=0x7f95f5519c0e 0x5633d9c3d5f4 0x5633d991f698 0x5633d998db3b 0x5633d9998d4b 0x5633d99440b6 0x5633d994b9e8 0x5633d99571d3 0x5633d995972b 0x5633d98a01bc 0x5633d98a5e5d 0x5633d9890596 0x7f95f4f4bd90 0x7f95f4f4be40 0x5633d9896355 +[2024-10-07 12:14:17.895856 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:14:17.895990 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:14:17.896204 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test2, file: test2.table +[2024-10-07 12:14:17.897623 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:14:17.898449 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test3.data. +[2024-10-07 12:14:17.898876 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f95f19ff8d8, page num 0 +[2024-10-07 12:14:17.899098 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=3, page_num:0, lsn:0 +[2024-10-07 12:14:17.899409 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test3.data. file_desc=7, hdr_frame=0x7f95f19ff8d8, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:14:17.899694 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=7, bp=0x60e000001000, lbt=0x7f95f5519c0e 0x5633d9c3d5f4 0x5633d991f698 0x5633d998db3b 0x5633d9998d4b 0x5633d99440b6 0x5633d994b9e8 0x5633d99571d3 0x5633d995972b 0x5633d98a01bc 0x5633d98a5e5d 0x5633d9890596 0x7f95f4f4bd90 0x7f95f4f4be40 0x5633d9896355 +[2024-10-07 12:14:17.899932 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:14:17.900151 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:14:17.900416 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test3, file: test3.table +[2024-10-07 12:14:17.900708 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=3 +[2024-10-07 12:14:17.902583 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 12:14:17.903081 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 12:14:17.903538 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:3,page_num:0,lsn=0 +[2024-10-07 12:14:17.904068 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 12:14:17.904242 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 12:14:17.904468 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 12:14:17.904629 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 12:14:17.904974 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 12:14:17.905511 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 12:14:17.905701 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 12:14:22.521506 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 149.127.0.0:62519 + +[2024-10-07 12:14:22.521899 pid:43501 tid:7f95f0687640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b000000930 +[2024-10-07 12:14:49.672401 pid:43501 tid:7f95efe86640 ctx:0 INFO: quit_thread_func@main.cpp:153] >> Receive signal: 2 +[2024-10-07 12:14:49.672815 pid:43501 tid:7f95efe86640 ctx:0 INFO: shutdown@server.cpp:301] >> NetServer shutting down +[2024-10-07 12:14:49.672401 pid:43501 tid:7f95f4eeb7c0 ctx:0 WARN: serve@server.cpp:273] >> [listen socket] poll error. fd = 8, ret = -1, error=Interrupted system call +[2024-10-07 12:14:49.673715 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 12:14:50.057109 pid:43501 tid:7f95f0687640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:103] >> worker thread stop. communicator = 0x60b000000930 +[2024-10-07 12:14:50.057529 pid:43501 tid:7f95f0687640 ctx:0 INFO: close_connection@one_thread_per_connection_thread_handler.cpp:154] >> close connection. communicator = 0x60b000000930 +[2024-10-07 12:14:50.075234 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 12:14:50.075534 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:170] >> begin to await stop one thread per connection thread handler +[2024-10-07 12:14:50.076011 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: await_stop@one_thread_per_connection_thread_handler.cpp:174] >> end to await stop one thread per connection thread handler +[2024-10-07 12:14:50.076248 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: serve@server.cpp:295] >> NetServer quit +[2024-10-07 12:14:50.076581 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: main@main.cpp:200] >> Server stopped +[2024-10-07 12:14:50.076920 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:3,page_num:0,lsn=0, dwb size:1 +[2024-10-07 12:14:50.077595 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=7, frame=frame id:buffer_pool_id:3,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 12:14:50.077803 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@table.cpp:540] >> Sync table over. table=test3 +[2024-10-07 12:14:50.077985 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test3. +[2024-10-07 12:14:50.078196 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:2,page_num:0,lsn=0, dwb size:2 +[2024-10-07 12:14:50.078824 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=6, frame=frame id:buffer_pool_id:2,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 12:14:50.079041 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@table.cpp:540] >> Sync table over. table=test2 +[2024-10-07 12:14:50.079292 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test2. +[2024-10-07 12:14:50.079543 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: add_page@double_write_buffer.cpp:113] >> insert page into double write buffer. buffer_pool_id:1,page_num:0,lsn=0, dwb size:3 +[2024-10-07 12:14:50.080133 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: flush_page_internal@disk_buffer_pool.cpp:560] >> Flush block. file desc=5, frame=frame id:buffer_pool_id:1,page_num:0, dirty=0, pin=2, lsn=0 +[2024-10-07 12:14:50.080327 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@table.cpp:540] >> Sync table over. table=test +[2024-10-07 12:14:50.080604 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@db.cpp:242] >> Successfully sync table db:sys, table:test. +[2024-10-07 12:14:50.087192 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 12:14:50.087537 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:1, page_num:0, lsn=0, check_sum=-1373569955 +[2024-10-07 12:14:50.087825 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 12:14:50.088175 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:2, page_num:0, lsn=0, check_sum=410183721 +[2024-10-07 12:14:50.088528 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:176] >> double write buffer write page. buffer_pool_id:3,page_num:0,lsn=0 +[2024-10-07 12:14:50.088926 pid:43501 tid:7f95f4eeb7c0 ctx:0 TRACE: write_page@disk_buffer_pool.cpp:609] >> write_page: buffer_pool_id:3, page_num:0, lsn=0, check_sum=1975313413 +[2024-10-07 12:14:50.089580 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@db.cpp:247] >> double write buffer flush pages ret=SUCCESS +[2024-10-07 12:14:50.092655 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: flush_meta@db.cpp:380] >> Successfully write db meta file. db=sys, file=miniob/db/sys/sys.db.tmp, check_point_lsn=0 +[2024-10-07 12:14:50.092884 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: sync@db.cpp:266] >> Successfully sync db. db=sys +[2024-10-07 12:14:50.093390 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:486] >> Successfully purge frame =0x7f95f19ff8d8, page 0 frame_id=buffer_pool_id:3,page_num:0 +[2024-10-07 12:14:50.093550 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:213] >> clear pages in double write buffer. file name=miniob/db/sys/test3.data, page count=0 +[2024-10-07 12:14:50.094005 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:305] >> Successfully close file 7:miniob/db/sys/test3.data. +[2024-10-07 12:14:50.094287 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:224] >> disk buffer pool exit +[2024-10-07 12:14:50.094573 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: ~Table@table.cpp:52] >> Table has been closed: test3 +[2024-10-07 12:14:50.094826 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:486] >> Successfully purge frame =0x7f95f19fd870, page 0 frame_id=buffer_pool_id:2,page_num:0 +[2024-10-07 12:14:50.095087 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:213] >> clear pages in double write buffer. file name=miniob/db/sys/test2.data, page count=0 +[2024-10-07 12:14:50.095467 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:305] >> Successfully close file 6:miniob/db/sys/test2.data. +[2024-10-07 12:14:50.095719 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:224] >> disk buffer pool exit +[2024-10-07 12:14:50.096279 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: ~Table@table.cpp:52] >> Table has been closed: test2 +[2024-10-07 12:14:50.096485 pid:43501 tid:7f95f4eeb7c0 ctx:0 DEBUG: purge_frame@disk_buffer_pool.cpp:486] >> Successfully purge frame =0x7f95f19fb808, page 0 frame_id=buffer_pool_id:1,page_num:0 +[2024-10-07 12:14:50.096766 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: clear_pages@double_write_buffer.cpp:213] >> clear pages in double write buffer. file name=miniob/db/sys/test.data, page count=0 +[2024-10-07 12:14:50.097245 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: close_file@disk_buffer_pool.cpp:305] >> Successfully close file 5:miniob/db/sys/test.data. +[2024-10-07 12:14:50.097704 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: ~DiskBufferPool@disk_buffer_pool.cpp:224] >> disk buffer pool exit +[2024-10-07 12:14:50.098107 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: ~Table@table.cpp:52] >> Table has been closed: test +[2024-10-07 12:14:50.098641 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: ~Db@db.cpp:47] >> Db has been closed: sys +[2024-10-07 12:14:50.108977 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: cleanup@mem_pool.h:217] >> Successfully do cleanup, this->name:BufPool. +[2024-10-07 12:14:50.109305 pid:43501 tid:7f95f4eeb7c0 ctx:0 INFO: cleanup_util@init.cpp:229] >> Shutdown Cleanly! +[2024-10-07 12:15:20.861575 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 12:15:20.878450 pid:44441 tid:7fac9b4cf7c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 12:15:20.896296 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.896694 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.897089 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.897438 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.897754 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.898128 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.898469 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.898807 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.899139 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.899550 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.899976 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.900423 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.900750 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.901138 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.901575 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.901983 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.902385 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.902881 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.903285 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.903700 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.903873 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:15:20.904112 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 12:15:20.909002 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=3 +[2024-10-07 12:15:20.921132 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 12:15:20.939780 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t1 +[2024-10-07 12:15:20.942643 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test.data. +[2024-10-07 12:15:20.943072 pid:44441 tid:7fac9b4cf7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7fac97ffb808, page num 0 +[2024-10-07 12:15:20.944870 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2024-10-07 12:15:20.945061 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test.data. file_desc=5, hdr_frame=0x7fac97ffb808, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:15:20.945363 pid:44441 tid:7fac9b4cf7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=5, bp=0x60e000000ac0, lbt=0x7fac9bafdc0e 0x55b29cf475f4 0x55b29cc29698 0x55b29cc97b3b 0x55b29cca2d4b 0x55b29cc4e0b6 0x55b29cc559e8 0x55b29cc611d3 0x55b29cc6372b 0x55b29cbaa1bc 0x55b29cbafe5d 0x55b29cb9a596 0x7fac9b52fd90 0x7fac9b52fe40 0x55b29cba0355 +[2024-10-07 12:15:20.958228 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:15:20.958473 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:15:20.958845 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test, file: test.table +[2024-10-07 12:15:20.960426 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:15:20.961479 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test2.data. +[2024-10-07 12:15:20.961889 pid:44441 tid:7fac9b4cf7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7fac97ffd870, page num 0 +[2024-10-07 12:15:20.962429 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=2, page_num:0, lsn:0 +[2024-10-07 12:15:20.962708 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test2.data. file_desc=6, hdr_frame=0x7fac97ffd870, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:15:20.962992 pid:44441 tid:7fac9b4cf7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=6, bp=0x60e000000d60, lbt=0x7fac9bafdc0e 0x55b29cf475f4 0x55b29cc29698 0x55b29cc97b3b 0x55b29cca2d4b 0x55b29cc4e0b6 0x55b29cc559e8 0x55b29cc611d3 0x55b29cc6372b 0x55b29cbaa1bc 0x55b29cbafe5d 0x55b29cb9a596 0x7fac9b52fd90 0x7fac9b52fe40 0x55b29cba0355 +[2024-10-07 12:15:20.963300 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:15:20.963604 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:15:20.963839 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test2, file: test2.table +[2024-10-07 12:15:20.965236 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:15:20.966058 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test3.data. +[2024-10-07 12:15:20.966397 pid:44441 tid:7fac9b4cf7c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7fac97fff8d8, page num 0 +[2024-10-07 12:15:20.966680 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=3, page_num:0, lsn:0 +[2024-10-07 12:15:20.966903 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test3.data. file_desc=7, hdr_frame=0x7fac97fff8d8, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:15:20.967182 pid:44441 tid:7fac9b4cf7c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=7, bp=0x60e000001000, lbt=0x7fac9bafdc0e 0x55b29cf475f4 0x55b29cc29698 0x55b29cc97b3b 0x55b29cca2d4b 0x55b29cc4e0b6 0x55b29cc559e8 0x55b29cc611d3 0x55b29cc6372b 0x55b29cbaa1bc 0x55b29cbafe5d 0x55b29cb9a596 0x7fac9b52fd90 0x7fac9b52fe40 0x55b29cba0355 +[2024-10-07 12:15:20.967480 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:15:20.967764 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:15:20.967879 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test3, file: test3.table +[2024-10-07 12:15:20.968059 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=3 +[2024-10-07 12:15:20.975441 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 12:15:20.976046 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 12:15:20.976366 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:3,page_num:0,lsn=0 +[2024-10-07 12:15:20.976723 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 12:15:20.982678 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 12:15:20.982839 pid:44441 tid:7fac9b4cf7c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 12:15:20.983109 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 12:15:20.983243 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 12:15:20.988913 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 12:15:20.989107 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 12:15:38.740147 pid:44441 tid:7fac9b4cf7c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 172.127.0.0:39574 + +[2024-10-07 12:15:38.746844 pid:44441 tid:7fac96c87640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b000000930 +[2024-10-07 12:15:41.265105 pid:44441 tid:7fac96c87640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 12:15:41.280938 pid:44441 tid:7fac96c87640 ctx:603000020440 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 12:15:41.281126 pid:44441 tid:7fac96c87640 ctx:603000020440 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 12:15:41.287927 pid:44441 tid:7fac96c87640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:16:21.496759 pid:44441 tid:7fac96c87640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=17): drop tables test +[2024-10-07 12:16:21.498785 pid:44441 tid:7fac96c87640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:16:22.122177 pid:44441 tid:7fac96c87640 ctx:603000020440 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 12:16:22.122688 pid:44441 tid:7fac96c87640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 12:16:23.533200 pid:44441 tid:7fac96c87640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 12:16:25.449301 pid:44441 tid:7fac96c87640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:16:38.504836 pid:44441 tid:7fac96c87640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=17): drop tables test +[2024-10-07 12:16:38.505526 pid:44441 tid:7fac96c87640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:16:38.505806 pid:44441 tid:7fac96c87640 ctx:603000020440 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 12:16:39.032567 pid:44441 tid:7fac96c87640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 12:16:39.487779 pid:44441 tid:7fac96c87640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 12:16:39.488297 pid:44441 tid:7fac96c87640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:17:51.087709 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@init.cpp:200] >> Output configuration +Begin dump configuration +[] + +[LOG] +LOG_CONSOLE_LEVEL=1 +LOG_FILE_LEVEL=5 +LOG_FILE_NAME=observer.log + +Finish dump configuration + +[2024-10-07 12:17:51.088720 pid:46729 tid:7f112bcb37c0 ctx:0 WARN: create_db@default_handler.cpp:93] >> Db already exists: sys +[2024-10-07 12:17:51.089691 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:128, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.090382 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:256, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.090981 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:384, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.091399 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:512, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.091844 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:640, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.092182 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:768, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.092680 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:896, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.093092 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1024, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.093491 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1152, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.093912 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1280, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.094264 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1408, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.094728 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1536, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.095070 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1664, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.095557 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1792, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.096053 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:1920, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.096560 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2048, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.096956 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2176, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.097322 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2304, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.097737 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2432, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.098237 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: extend@mem_pool.h:244] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.098528 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@mem_pool.h:191] >> Extend one pool, this->size:2560, item_num_per_pool:128, this->name:BufPool. +[2024-10-07 12:17:51.098809 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: BufferPoolManager@disk_buffer_pool.cpp:771] >> buffer pool manager init with memory size 20971520, page num: 2560, pool num: 20 +[2024-10-07 12:17:51.106510 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: load_pages@double_write_buffer.cpp:290] >> double write buffer load pages done. page num=3 +[2024-10-07 12:17:51.108413 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init_meta@db.cpp:335] >> Successfully read db meta file. db=sys, file=miniob/db/sys/sys.db, check_point_lsn=0 +[2024-10-07 12:17:51.114906 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t1 +[2024-10-07 12:17:51.115727 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test.data. +[2024-10-07 12:17:51.116212 pid:46729 tid:7f112bcb37c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f11287fb808, page num 0 +[2024-10-07 12:17:51.116424 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=1, page_num:0, lsn:0 +[2024-10-07 12:17:51.116635 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test.data. file_desc=5, hdr_frame=0x7f11287fb808, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:17:51.116920 pid:46729 tid:7f112bcb37c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=5, bp=0x60e000000ac0, lbt=0x7f112c2e1c0e 0x563eada545f4 0x563ead736698 0x563ead7a4b3b 0x563ead7afd4b 0x563ead75b0b6 0x563ead7629e8 0x563ead76e1d3 0x563ead77072b 0x563ead6b71bc 0x563ead6bce5d 0x563ead6a7596 0x7f112bd13d90 0x7f112bd13e40 0x563ead6ad355 +[2024-10-07 12:17:51.117226 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:17:51.117432 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:17:51.117671 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test, file: test.table +[2024-10-07 12:17:51.118991 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:17:51.119775 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test2.data. +[2024-10-07 12:17:51.120174 pid:46729 tid:7f112bcb37c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f11287fd870, page num 0 +[2024-10-07 12:17:51.120391 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=2, page_num:0, lsn:0 +[2024-10-07 12:17:51.120670 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test2.data. file_desc=6, hdr_frame=0x7f11287fd870, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:17:51.120944 pid:46729 tid:7f112bcb37c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=6, bp=0x60e000000d60, lbt=0x7f112c2e1c0e 0x563eada545f4 0x563ead736698 0x563ead7a4b3b 0x563ead7afd4b 0x563ead75b0b6 0x563ead7629e8 0x563ead76e1d3 0x563ead77072b 0x563ead6b71bc 0x563ead6bce5d 0x563ead6a7596 0x7f112bd13d90 0x7f112bd13e40 0x563ead6ad355 +[2024-10-07 12:17:51.121216 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:17:51.121517 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:17:51.121808 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test2, file: test2.table +[2024-10-07 12:17:51.123206 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@field_meta.cpp:57] >> Init a field with name=t2 +[2024-10-07 12:17:51.123983 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:234] >> Successfully open buffer pool file miniob/db/sys/test3.data. +[2024-10-07 12:17:51.124439 pid:46729 tid:7f112bcb37c0 ctx:0 DEBUG: allocate_frame@disk_buffer_pool.cpp:708] >> allocate frame 0x7f11287ff8d8, page num 0 +[2024-10-07 12:17:51.124657 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: read_page@double_write_buffer.cpp:189] >> double write buffer read page success. bp id=3, page_num:0, lsn:0 +[2024-10-07 12:17:51.124867 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_file@disk_buffer_pool.cpp:272] >> Successfully open miniob/db/sys/test3.data. file_desc=7, hdr_frame=0x7f11287ff8d8, file header=pageCount:1, allocatedCount:1 +[2024-10-07 12:17:51.125145 pid:46729 tid:7f112bcb37c0 ctx:0 DEBUG: open_file@disk_buffer_pool.cpp:861] >> insert buffer pool into fd buffer pools. fd=7, bp=0x60e000001000, lbt=0x7f112c2e1c0e 0x563eada545f4 0x563ead736698 0x563ead7a4b3b 0x563ead7afd4b 0x563ead75b0b6 0x563ead7629e8 0x563ead76e1d3 0x563ead77072b 0x563ead6b71bc 0x563ead6bce5d 0x563ead6a7596 0x7f112bd13d90 0x7f112bd13e40 0x563ead6ad355 +[2024-10-07 12:17:51.125369 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init_free_pages@record_manager.cpp:538] >> record file handler init free pages done. free page num=0, rc=SUCCESS +[2024-10-07 12:17:51.125539 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@record_manager.cpp:497] >> open record file handle done. rc=SUCCESS +[2024-10-07 12:17:51.125741 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_all_tables@db.cpp:215] >> Open table: test3, file: test3.table +[2024-10-07 12:17:51.126085 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: open_all_tables@db.cpp:218] >> All table have been opened. num=3 +[2024-10-07 12:17:51.127956 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:1,page_num:0,lsn=0 +[2024-10-07 12:17:51.128481 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:2,page_num:0,lsn=0 +[2024-10-07 12:17:51.128933 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: write_page@double_write_buffer.cpp:169] >> double write buffer write page invalid. buffer_pool_id:3,page_num:0,lsn=0 +[2024-10-07 12:17:51.129450 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: recover@db.cpp:272] >> db recover begin. check_point_lsn=0 +[2024-10-07 12:17:51.129727 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: recover@db.cpp:299] >> Successfully recover db. db=sys checkpoint_lsn=0 +[2024-10-07 12:17:51.129980 pid:46729 tid:7f112bcb37c0 ctx:0 TRACE: set_current_db@session.cpp:56] >> change db to sys +[2024-10-07 12:17:51.130283 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@default_handler.cpp:69] >> Default handler init with miniob success +[2024-10-07 12:17:51.130705 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: init@init.cpp:215] >> Successfully init utility +[2024-10-07 12:17:51.130931 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: start_unix_socket_server@server.cpp:237] >> Listen on unix socket: /root/miniob-test.sock +[2024-10-07 12:17:51.131101 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: start_unix_socket_server@server.cpp:240] >> Observer start success +[2024-10-07 12:17:54.825055 pid:46729 tid:7f112bcb37c0 ctx:0 INFO: accept@server.cpp:129] >> Accepted connection from 17.127.0.0:11028 + +[2024-10-07 12:17:54.825413 pid:46729 tid:7f1127487640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:70] >> worker thread start. communicator = 0x60b000000930 +[2024-10-07 12:17:59.366458 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=17): drop tables test +[2024-10-07 12:17:59.366841 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:17:59.367092 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 12:17:59.367526 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 12:17:59.367737 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 12:17:59.368088 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:20:00.225701 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=12): show tables +[2024-10-07 12:20:00.226031 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:94] >> SHOW +[2024-10-07 12:20:00.226354 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:91] >> TABLES +[2024-10-07 12:20:00.226842 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:20:03.184601 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:20:03.184888 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:20:03.185255 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:20:03.185784 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:20:03.186177 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:20:03.186513 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:20:03.186720 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:20:03.187007 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:20:05.933737 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:20:05.934257 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:20:05.934890 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:20:05.935224 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:20:05.935461 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:20:05.935702 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:20:05.936008 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:20:05.936210 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:22:29.236550 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:23:18.435695 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:23:21.302147 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:23:22.438874 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:23:23.325258 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:23:23.325478 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:23:23.325631 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:23:25.517998 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:23:57.951916 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:23:57.952339 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:23:57.952573 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:23:58.474353 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:23:58.474717 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:23:58.851004 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:23:58.851346 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:23:58.851715 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:27.938206 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:27.938707 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:27.939435 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:27.939756 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:27.940131 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:27.940482 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:27.940706 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:27.941196 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:35.033022 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:35.033586 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:35.036830 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:35.037171 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:35.037455 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:35.037733 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:35.038762 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:35.039082 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:41.626904 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:41.627433 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:41.627829 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:41.628221 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:41.628637 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:41.628905 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:41.629244 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:41.629593 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:42.151319 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:42.151906 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:42.152382 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:42.152850 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:42.153145 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:42.153511 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:42.153706 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:42.154043 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:42.635497 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:42.636149 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:42.636626 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:42.637124 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:42.637440 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:42.637750 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:42.638131 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:42.638561 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:43.083063 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:43.083396 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:43.083598 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:43.083931 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:43.084134 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:43.084442 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:43.084698 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:43.084982 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:43.450305 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:43.450773 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:43.451198 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:43.451543 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:43.451899 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:43.452161 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:43.452503 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:43.452791 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:25:43.956689 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:25:43.957143 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:25:43.957428 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:25:43.957688 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:25:43.958047 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:25:43.958316 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:25:43.958737 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:25:43.959088 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:14.485124 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:28:14.485500 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:28:14.485774 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:28:14.486044 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:14.486326 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:28:14.486634 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:28:14.486969 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:28:14.487317 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:27.075012 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:28:27.075557 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:28:27.076100 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:28:27.076662 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:27.077144 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:28:27.077413 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:28:27.077772 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:28:27.078158 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:30.305579 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:28:30.305917 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:28:30.306096 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:28:30.306297 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:30.306592 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:28:30.306790 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:28:30.307168 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:28:30.307542 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:31.818286 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:28:31.818494 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:28:31.818718 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:28:31.819053 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:31.819500 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:28:31.819969 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:28:31.820250 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:28:31.820480 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:32.739300 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=6): clear +[2024-10-07 12:28:32.739801 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:32.740498 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 12:28:32.740751 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 12:28:32.741224 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:34.164843 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=6): clear +[2024-10-07 12:28:34.165302 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:34.165714 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:68] >> failed to do parse. rc=SQL_SYNTAX +[2024-10-07 12:28:34.166105 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=SQL_SYNTAX +[2024-10-07 12:28:34.166430 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:35.982499 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:28:35.983158 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:28:35.983438 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:28:35.983575 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:35.983840 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:28:35.984082 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:28:35.984418 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:28:35.984864 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:28:41.006124 pid:46729 tid:7f1127487640 ctx:0 INFO: read_event@plain_communicator.cpp:89] >> receive command(size=16): drop table test +[2024-10-07 12:28:41.006339 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:89] >> DROP +[2024-10-07 12:28:41.006551 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:90] >> TABLE +[2024-10-07 12:28:41.007036 pid:46729 tid:7f1127487640 ctx:603000020440 DEBUG: yylex@lex_sql.l:121] >> ID +[2024-10-07 12:28:41.007531 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: create_stmt@stmt.cpp:112] >> Command::type 7 doesn't need to create statement. +[2024-10-07 12:28:41.007772 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_sql@sql_task_handler.cpp:74] >> failed to do resolve. rc=UNIMPLEMENTED +[2024-10-07 12:28:41.008065 pid:46729 tid:7f1127487640 ctx:603000020440 TRACE: handle_event@sql_task_handler.cpp:39] >> failed to handle sql. rc=UNIMPLEMENTED +[2024-10-07 12:28:41.008500 pid:46729 tid:7f1127487640 ctx:603000020440 INFO: handle_event@sql_task_handler.cpp:46] >> write result return SUCCESS +[2024-10-07 12:29:11.149500 pid:46729 tid:7f1126c86640 ctx:0 INFO: quit_thread_func@main.cpp:153] >> Receive signal: 1 +[2024-10-07 12:29:11.150315 pid:44441 tid:7fac96c87640 ctx:0 WARN: operator()@one_thread_per_connection_thread_handler.cpp:92] >> poll error. fd = 9, revents = 17 +[2024-10-07 12:29:11.150809 pid:44441 tid:7fac96c87640 ctx:0 INFO: operator()@one_thread_per_connection_thread_handler.cpp:103] >> worker thread stop. communicator = 0x60b000000930 +[2024-10-07 12:29:11.161677 pid:44441 tid:7fac96c87640 ctx:0 INFO: close_connection@one_thread_per_connection_thread_handler.cpp:154] >> close connection. communicator = 0x60b000000930 diff --git a/src/observer/common/rc.h b/src/observer/common/rc.h index d465c7cfb..9715f1707 100644 --- a/src/observer/common/rc.h +++ b/src/observer/common/rc.h @@ -76,7 +76,8 @@ See the Mulan PSL v2 for more details. */ DEFINE_RC(LOGBUF_FULL) \ DEFINE_RC(LOG_FILE_FULL) \ DEFINE_RC(LOG_ENTRY_INVALID) \ - DEFINE_RC(UNSUPPORTED) + DEFINE_RC(UNSUPPORTED) \ + DEFINE_RC(GENERIC_ERROR) enum class RC { diff --git a/src/observer/sql/executor/command_executor.cpp b/src/observer/sql/executor/command_executor.cpp index 0da5c4e0f..003bf8d05 100644 --- a/src/observer/sql/executor/command_executor.cpp +++ b/src/observer/sql/executor/command_executor.cpp @@ -24,6 +24,7 @@ See the Mulan PSL v2 for more details. */ #include "sql/executor/show_tables_executor.h" #include "sql/executor/trx_begin_executor.h" #include "sql/executor/trx_end_executor.h" +#include "sql/executor/drop_table_executor.h" #include "sql/stmt/stmt.h" RC CommandExecutor::execute(SQLStageEvent *sql_event) @@ -42,6 +43,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..d16cc4ff1 --- /dev/null +++ b/src/observer/sql/executor/drop_table_executor.cpp @@ -0,0 +1,39 @@ +/* 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, + "create 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..6059c57b5 --- /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/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/parser/lex_sql.cpp b/src/observer/sql/parser/lex_sql.cpp index 14ce1bc3b..572c854b2 100644 --- a/src/observer/sql/parser/lex_sql.cpp +++ b/src/observer/sql/parser/lex_sql.cpp @@ -1,5 +1,4 @@ #line 2 "lex_sql.cpp" -#line 2 "lex_sql.l" /* 这里的代码会被复制到lex_sql.cpp的最开始位置 定义yy_size_t的原因是因为flex生成的代码,会使用yy_size_t与其他类型的数字 @@ -23,10 +22,7 @@ do { \ } \ while (0); - - - -#line 30 "lex_sql.cpp" +#line 26 "lex_sql.cpp" #define YY_INT_ALIGNED short int @@ -34,12 +30,36 @@ while (0); #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 +#define YY_FLEX_MINOR_VERSION 6 +#define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif +#ifdef yyget_lval +#define yyget_lval_ALREADY_DEFINED +#else +#define yyget_lval yyget_lval +#endif + +#ifdef yyset_lval +#define yyset_lval_ALREADY_DEFINED +#else +#define yyset_lval yyset_lval +#endif + +#ifdef yyget_lloc +#define yyget_lloc_ALREADY_DEFINED +#else +#define yyget_lloc yyget_lloc +#endif + +#ifdef yyset_lloc +#define yyset_lloc_ALREADY_DEFINED +#else +#define yyset_lloc yyset_lloc +#endif + /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ @@ -80,7 +100,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -111,38 +130,32 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ +#ifndef SIZE_MAX +#define SIZE_MAX (~(size_t)0) +#endif -/* C99 requires __STDC__ to be defined as 1. */ -#if defined (__STDC__) +#endif /* ! C99 */ -#define YY_USE_CONST +#endif /* ! FLEXINT_H */ -#endif /* defined (__STDC__) */ -#endif /* ! __cplusplus */ +/* begin standard C++ headers. */ -#ifdef YY_USE_CONST +/* TODO: this is always defined, so inline it */ #define yyconst const + +#if defined(__GNUC__) && __GNUC__ >= 3 +#define yynoreturn __attribute__((__noreturn__)) #else -#define yyconst +#define yynoreturn #endif /* Returned upon end-of-file. */ #define YY_NULL 0 -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. +/* Promotes a possibly negative, possibly signed char to an + * integer in range [0..255] for use as an array index. */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) +#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) /* An opaque pointer. */ #ifndef YY_TYPEDEF_YY_SCANNER_T @@ -166,25 +179,29 @@ typedef void* yyscan_t; * definition of BEGIN. */ #define BEGIN yyg->yy_start = 1 + 2 * - /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START ((yyg->yy_start - 1) / 2) #define YYSTATE YY_START - /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart(yyin ,yyscanner ) - +#define YY_NEW_FILE yyrestart( yyin , yyscanner ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -196,11 +213,17 @@ typedef void* yyscan_t; typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif +#ifndef YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T +typedef size_t yy_size_t; +#endif + #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 - + #define YY_LESS_LINENO(n) + #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ @@ -215,14 +238,8 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE; YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) - #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state @@ -235,7 +252,7 @@ struct yy_buffer_state /* Size of input buffer in bytes, not including room for EOB * characters. */ - yy_size_t yy_buf_size; + int yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. @@ -263,7 +280,7 @@ struct yy_buffer_state int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ - + /* Whether to try to fill the input buffer when we reach the * end of it. */ @@ -297,84 +314,77 @@ struct yy_buffer_state #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ : NULL) - /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] -void yyrestart (FILE *input_file ,yyscan_t yyscanner ); -void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); -void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -void yypop_buffer_state (yyscan_t yyscanner ); - -static void yyensure_buffer_stack (yyscan_t yyscanner ); -static void yy_load_buffer_state (yyscan_t yyscanner ); -static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); +void yyrestart ( FILE *input_file , yyscan_t yyscanner ); +void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); +YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner ); +void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); +void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); +void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); +void yypop_buffer_state ( yyscan_t yyscanner ); -#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) +static void yyensure_buffer_stack ( yyscan_t yyscanner ); +static void yy_load_buffer_state ( yyscan_t yyscanner ); +static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner ); +#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) -YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); +YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner ); +YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner ); +YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner ); -void *yyalloc (yy_size_t ,yyscan_t yyscanner ); -void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); -void yyfree (void * ,yyscan_t yyscanner ); +void *yyalloc ( yy_size_t , yyscan_t yyscanner ); +void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner ); +void yyfree ( void * , yyscan_t yyscanner ); #define yy_new_buffer yy_create_buffer - #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (yyscanner); \ YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ + yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } - #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (yyscanner); \ YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ + yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } - #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ -#define yywrap(n) 1 +#define yywrap(yyscanner) (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP - -typedef unsigned char YY_CHAR; +typedef flex_uint8_t YY_CHAR; typedef int yy_state_type; #define yytext_ptr yytext_r -static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); -static int yy_get_next_buffer (yyscan_t yyscanner ); -static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); +static yy_state_type yy_get_previous_state ( yyscan_t yyscanner ); +static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner); +static int yy_get_next_buffer ( yyscan_t yyscanner ); +static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ yyg->yytext_ptr = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ + yyleng = (int) (yy_cp - yy_bp); \ yyg->yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yyg->yy_c_buf_p = yy_cp; - #define YY_NUM_RULES 61 #define YY_END_OF_BUFFER 62 /* This struct is not used in this scanner, @@ -384,7 +394,7 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[183] = +static const flex_int16_t yy_accept[183] = { 0, 0, 0, 0, 0, 62, 60, 1, 2, 60, 60, 60, 44, 45, 56, 54, 46, 55, 6, 57, 3, @@ -408,7 +418,7 @@ static yyconst flex_int16_t yy_accept[183] = 31, 0 } ; -static yyconst flex_int32_t yy_ec[256] = +static const YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, @@ -440,7 +450,7 @@ static yyconst flex_int32_t yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst flex_int32_t yy_meta[67] = +static const YY_CHAR yy_meta[67] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, @@ -451,7 +461,7 @@ static yyconst flex_int32_t yy_meta[67] = 2, 2, 2, 2, 2, 2 } ; -static yyconst flex_int16_t yy_base[188] = +static const flex_int16_t yy_base[188] = { 0, 0, 0, 0, 0, 484, 485, 485, 485, 465, 477, 475, 485, 485, 485, 485, 485, 465, 485, 485, 54, @@ -475,7 +485,7 @@ static yyconst flex_int16_t yy_base[188] = 69, 485, 473, 475, 477, 76, 75 } ; -static yyconst flex_int16_t yy_def[188] = +static const flex_int16_t yy_def[188] = { 0, 182, 1, 183, 183, 182, 182, 182, 182, 182, 184, 185, 182, 182, 182, 182, 182, 182, 182, 182, 182, @@ -499,7 +509,7 @@ static yyconst flex_int16_t yy_def[188] = 186, 0, 182, 182, 182, 182, 182 } ; -static yyconst flex_int16_t yy_nxt[552] = +static const flex_int16_t yy_nxt[552] = { 0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, @@ -564,7 +574,7 @@ static yyconst flex_int16_t yy_nxt[552] = 182 } ; -static yyconst flex_int16_t yy_chk[552] = +static const flex_int16_t yy_chk[552] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -661,6 +671,7 @@ extern int atoi(); extern double atof(); #define RETURN_TOKEN(token) LOG_DEBUG("%s", #token);return token +#line 675 "lex_sql.cpp" /* Prevent the need for linking with -lfl */ #define YY_NO_INPUT 1 /* 不区分大小写 */ @@ -669,7 +680,7 @@ extern double atof(); /* 1. 匹配的规则长的优先 */ /* 2. 写在最前面的优先 */ /* yylval 就可以认为是 yacc 中 %union 定义的结构体(union 结构) */ -#line 673 "lex_sql.cpp" +#line 684 "lex_sql.cpp" #define INITIAL 0 #define STR 1 @@ -724,7 +735,7 @@ struct yyguts_t }; /* end struct yyguts_t */ -static int yy_init_globals (yyscan_t yyscanner ); +static int yy_init_globals ( yyscan_t yyscanner ); /* This must go here because YYSTYPE and YYLTYPE are included * from bison output in section 1.*/ @@ -734,44 +745,48 @@ static int yy_init_globals (yyscan_t yyscanner ); int yylex_init (yyscan_t* scanner); -int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); +int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -int yylex_destroy (yyscan_t yyscanner ); +int yylex_destroy ( yyscan_t yyscanner ); + +int yyget_debug ( yyscan_t yyscanner ); -int yyget_debug (yyscan_t yyscanner ); +void yyset_debug ( int debug_flag , yyscan_t yyscanner ); -void yyset_debug (int debug_flag ,yyscan_t yyscanner ); +YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner ); -YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner ); +void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner ); -void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); +FILE *yyget_in ( yyscan_t yyscanner ); -FILE *yyget_in (yyscan_t yyscanner ); +void yyset_in ( FILE * _in_str , yyscan_t yyscanner ); -void yyset_in (FILE * in_str ,yyscan_t yyscanner ); +FILE *yyget_out ( yyscan_t yyscanner ); -FILE *yyget_out (yyscan_t yyscanner ); +void yyset_out ( FILE * _out_str , yyscan_t yyscanner ); -void yyset_out (FILE * out_str ,yyscan_t yyscanner ); + int yyget_leng ( yyscan_t yyscanner ); -int yyget_leng (yyscan_t yyscanner ); +char *yyget_text ( yyscan_t yyscanner ); -char *yyget_text (yyscan_t yyscanner ); +int yyget_lineno ( yyscan_t yyscanner ); -int yyget_lineno (yyscan_t yyscanner ); +void yyset_lineno ( int _line_number , yyscan_t yyscanner ); -void yyset_lineno (int line_number ,yyscan_t yyscanner ); +int yyget_column ( yyscan_t yyscanner ); -YYSTYPE * yyget_lval (yyscan_t yyscanner ); +void yyset_column ( int _column_no , yyscan_t yyscanner ); -void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner ); +YYSTYPE * yyget_lval ( yyscan_t yyscanner ); - YYLTYPE *yyget_lloc (yyscan_t yyscanner ); +void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner ); + + YYLTYPE *yyget_lloc ( yyscan_t yyscanner ); - void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner ); + void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner ); /* Macros after this point can all be overridden by user definitions in * section 1. @@ -779,33 +794,41 @@ void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner ); #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus -extern "C" int yywrap (yyscan_t yyscanner ); +extern "C" int yywrap ( yyscan_t yyscanner ); #else -extern int yywrap (yyscan_t yyscanner ); +extern int yywrap ( yyscan_t yyscanner ); +#endif #endif + +#ifndef YY_NO_UNPUT + #endif #ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); +static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); +static int yy_flex_strlen ( const char * , yyscan_t yyscanner); #endif #ifndef YY_NO_INPUT - #ifdef __cplusplus -static int yyinput (yyscan_t yyscanner ); +static int yyinput ( yyscan_t yyscanner ); #else -static int input (yyscan_t yyscanner ); +static int input ( yyscan_t yyscanner ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -813,7 +836,7 @@ static int input (yyscan_t yyscanner ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) +#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -837,7 +860,7 @@ static int input (yyscan_t yyscanner ); else \ { \ errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ + while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ @@ -879,7 +902,7 @@ static int input (yyscan_t yyscanner ); #define YY_DECL_IS_OURS 1 extern int yylex \ - (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner); + (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner); #define YY_DECL int yylex \ (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) @@ -894,7 +917,7 @@ extern int yylex \ /* Code executed at the end of each rule. */ #ifndef YY_BREAK -#define YY_BREAK break; +#define YY_BREAK /*LINTED*/break; #endif #define YY_RULE_SETUP \ @@ -904,16 +927,11 @@ extern int yylex \ */ YY_DECL { - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; -#line 75 "lex_sql.l" - - -#line 916 "lex_sql.cpp" - yylval = yylval_param; yylloc = yylloc_param; @@ -938,13 +956,19 @@ YY_DECL if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (yyscanner); YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); + yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); } - yy_load_buffer_state(yyscanner ); + yy_load_buffer_state( yyscanner ); } - while ( 1 ) /* loops until end-of-file is reached */ + { +#line 75 "lex_sql.l" + + +#line 970 "lex_sql.cpp" + + while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { yy_cp = yyg->yy_c_buf_p; @@ -960,7 +984,7 @@ YY_DECL yy_match: do { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { yyg->yy_last_accepting_state = yy_current_state; @@ -970,9 +994,9 @@ YY_DECL { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 183 ) - yy_c = yy_meta[(unsigned int) yy_c]; + yy_c = yy_meta[yy_c]; } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 485 ); @@ -1298,7 +1322,7 @@ YY_RULE_SETUP #line 142 "lex_sql.l" ECHO; YY_BREAK -#line 1302 "lex_sql.cpp" +#line 1326 "lex_sql.cpp" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(STR): yyterminate(); @@ -1377,7 +1401,7 @@ case YY_STATE_EOF(STR): { yyg->yy_did_buffer_switch_on_eof = 0; - if ( yywrap(yyscanner ) ) + if ( yywrap( yyscanner ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up @@ -1430,6 +1454,7 @@ case YY_STATE_EOF(STR): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ + } /* end of user's declarations */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer @@ -1442,9 +1467,9 @@ case YY_STATE_EOF(STR): static int yy_get_next_buffer (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = yyg->yytext_ptr; - register int number_to_move, i; + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = yyg->yytext_ptr; + int number_to_move, i; int ret_val; if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) @@ -1473,7 +1498,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) /* Try to read more data. */ /* First move last chars to start of buffer. */ - number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1; + number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1); for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); @@ -1493,7 +1518,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) (yyg->yy_c_buf_p - b->yy_ch_buf); @@ -1509,11 +1534,12 @@ static int yy_get_next_buffer (yyscan_t yyscanner) b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ - yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); + yyrealloc( (void *) b->yy_ch_buf, + (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); } else /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; + b->yy_ch_buf = NULL; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( @@ -1531,7 +1557,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - yyg->yy_n_chars, (size_t) num_to_read ); + yyg->yy_n_chars, num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; } @@ -1541,7 +1567,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin ,yyscanner); + yyrestart( yyin , yyscanner); } else @@ -1555,12 +1581,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner) else ret_val = EOB_ACT_CONTINUE_SCAN; - if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); + int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( + (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + /* "- 2" to take care of EOB's */ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); } yyg->yy_n_chars += number_to_move; @@ -1576,15 +1605,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner) static yy_state_type yy_get_previous_state (yyscan_t yyscanner) { - register yy_state_type yy_current_state; - register char *yy_cp; + yy_state_type yy_current_state; + char *yy_cp; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yy_current_state = yyg->yy_start; for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { yyg->yy_last_accepting_state = yy_current_state; @@ -1594,9 +1623,9 @@ static int yy_get_next_buffer (yyscan_t yyscanner) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 183 ) - yy_c = yy_meta[(unsigned int) yy_c]; + yy_c = yy_meta[yy_c]; } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; } return yy_current_state; @@ -1609,11 +1638,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner) */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) { - register int yy_is_jam; + int yy_is_jam; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ - register char *yy_cp = yyg->yy_c_buf_p; + char *yy_cp = yyg->yy_c_buf_p; - register YY_CHAR yy_c = 1; + YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { yyg->yy_last_accepting_state = yy_current_state; @@ -1623,14 +1652,19 @@ static int yy_get_next_buffer (yyscan_t yyscanner) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 183 ) - yy_c = yy_meta[(unsigned int) yy_c]; + yy_c = yy_meta[yy_c]; } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; yy_is_jam = (yy_current_state == 182); + (void)yyg; return yy_is_jam ? 0 : yy_current_state; } +#ifndef YY_NO_UNPUT + +#endif + #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (yyscan_t yyscanner) @@ -1656,7 +1690,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) else { /* need more input */ - int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; + int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr); ++yyg->yy_c_buf_p; switch ( yy_get_next_buffer( yyscanner ) ) @@ -1673,14 +1707,14 @@ static int yy_get_next_buffer (yyscan_t yyscanner) */ /* Reset buffer status. */ - yyrestart(yyin ,yyscanner); + yyrestart( yyin , yyscanner); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { - if ( yywrap(yyscanner ) ) - return EOF; + if ( yywrap( yyscanner ) ) + return 0; if ( ! yyg->yy_did_buffer_switch_on_eof ) YY_NEW_FILE; @@ -1718,11 +1752,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner) if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (yyscanner); YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); + yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); } - yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); - yy_load_buffer_state(yyscanner ); + yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner); + yy_load_buffer_state( yyscanner ); } /** Switch to a different input buffer. @@ -1751,7 +1785,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner) } YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state(yyscanner ); + yy_load_buffer_state( yyscanner ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag @@ -1780,7 +1814,7 @@ static void yy_load_buffer_state (yyscan_t yyscanner) { YY_BUFFER_STATE b; - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); + b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); @@ -1789,13 +1823,13 @@ static void yy_load_buffer_state (yyscan_t yyscanner) /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ - b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ,yyscanner ); + b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; - yy_init_buffer(b,file ,yyscanner); + yy_init_buffer( b, file , yyscanner); return b; } @@ -1815,15 +1849,11 @@ static void yy_load_buffer_state (yyscan_t yyscanner) YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) - yyfree((void *) b->yy_ch_buf ,yyscanner ); + yyfree( (void *) b->yy_ch_buf , yyscanner ); - yyfree((void *) b ,yyscanner ); + yyfree( (void *) b , yyscanner ); } -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ - /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. @@ -1834,7 +1864,7 @@ extern int isatty (int ); int oerrno = errno; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flush_buffer(b ,yyscanner); + yy_flush_buffer( b , yyscanner); b->yy_input_file = file; b->yy_fill_buffer = 1; @@ -1878,7 +1908,7 @@ extern int isatty (int ); b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state(yyscanner ); + yy_load_buffer_state( yyscanner ); } /** Pushes the new state onto the stack. The new state becomes @@ -1910,7 +1940,7 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state(yyscanner ); + yy_load_buffer_state( yyscanner ); yyg->yy_did_buffer_switch_on_eof = 1; } @@ -1924,13 +1954,13 @@ void yypop_buffer_state (yyscan_t yyscanner) if (!YY_CURRENT_BUFFER) return; - yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner); + yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner); YY_CURRENT_BUFFER_LVALUE = NULL; if (yyg->yy_buffer_stack_top > 0) --yyg->yy_buffer_stack_top; if (YY_CURRENT_BUFFER) { - yy_load_buffer_state(yyscanner ); + yy_load_buffer_state( yyscanner ); yyg->yy_did_buffer_switch_on_eof = 1; } } @@ -1940,7 +1970,7 @@ void yypop_buffer_state (yyscan_t yyscanner) */ static void yyensure_buffer_stack (yyscan_t yyscanner) { - int num_to_alloc; + yy_size_t num_to_alloc; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; if (!yyg->yy_buffer_stack) { @@ -1949,15 +1979,15 @@ static void yyensure_buffer_stack (yyscan_t yyscanner) * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ - num_to_alloc = 1; + num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) , yyscanner); if ( ! yyg->yy_buffer_stack ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - + memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - + yyg->yy_buffer_stack_max = num_to_alloc; yyg->yy_buffer_stack_top = 0; return; @@ -1966,7 +1996,7 @@ static void yyensure_buffer_stack (yyscan_t yyscanner) if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; + yy_size_t grow_size = 8 /* arbitrary grow size */; num_to_alloc = yyg->yy_buffer_stack_max + grow_size; yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc @@ -1986,7 +2016,7 @@ static void yyensure_buffer_stack (yyscan_t yyscanner) * @param base the character buffer * @param size the size in bytes of the character buffer * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. + * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) { @@ -1996,23 +2026,23 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscann base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ - return 0; + return NULL; - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); + b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; - b->yy_input_file = 0; + b->yy_input_file = NULL; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - yy_switch_to_buffer(b ,yyscanner ); + yy_switch_to_buffer( b , yyscanner ); return b; } @@ -2025,20 +2055,20 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscann * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ -YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner) { - return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner); + return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner) { YY_BUFFER_STATE b; char *buf; @@ -2046,8 +2076,8 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yysc int i; /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) yyalloc(n ,yyscanner ); + n = (yy_size_t) (_yybytes_len + 2); + buf = (char *) yyalloc( n , yyscanner ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); @@ -2056,7 +2086,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yysc buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - b = yy_scan_buffer(buf,n ,yyscanner); + b = yy_scan_buffer( buf, n , yyscanner); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); @@ -2072,9 +2102,11 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yysc #define YY_EXIT_FAILURE 2 #endif -static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) +static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner) { - (void) fprintf( stderr, "%s\n", msg ); + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + (void)yyg; + fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } @@ -2112,7 +2144,7 @@ YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner) int yyget_lineno (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - + if (! YY_CURRENT_BUFFER) return 0; @@ -2125,7 +2157,7 @@ int yyget_lineno (yyscan_t yyscanner) int yyget_column (yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - + if (! YY_CURRENT_BUFFER) return 0; @@ -2180,51 +2212,51 @@ void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) } /** Set the current line number. - * @param line_number + * @param _line_number line number * @param yyscanner The scanner object. */ -void yyset_lineno (int line_number , yyscan_t yyscanner) +void yyset_lineno (int _line_number , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* lineno is only valid if an input buffer exists. */ if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "yyset_lineno called with no buffer" , yyscanner); + YY_FATAL_ERROR( "yyset_lineno called with no buffer" ); - yylineno = line_number; + yylineno = _line_number; } /** Set the current column. - * @param line_number + * @param _column_no column number * @param yyscanner The scanner object. */ -void yyset_column (int column_no , yyscan_t yyscanner) +void yyset_column (int _column_no , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* column is only valid if an input buffer exists. */ if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "yyset_column called with no buffer" , yyscanner); + YY_FATAL_ERROR( "yyset_column called with no buffer" ); - yycolumn = column_no; + yycolumn = _column_no; } /** Set the input stream. This does not discard the current * input buffer. - * @param in_str A readable stream. + * @param _in_str A readable stream. * @param yyscanner The scanner object. * @see yy_switch_to_buffer */ -void yyset_in (FILE * in_str , yyscan_t yyscanner) +void yyset_in (FILE * _in_str , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyin = in_str ; + yyin = _in_str ; } -void yyset_out (FILE * out_str , yyscan_t yyscanner) +void yyset_out (FILE * _out_str , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyout = out_str ; + yyout = _out_str ; } int yyget_debug (yyscan_t yyscanner) @@ -2233,10 +2265,10 @@ int yyget_debug (yyscan_t yyscanner) return yy_flex_debug; } -void yyset_debug (int bdebug , yyscan_t yyscanner) +void yyset_debug (int _bdebug , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flex_debug = bdebug ; + yy_flex_debug = _bdebug ; } /* Accessor methods for yylval and yylloc */ @@ -2271,9 +2303,7 @@ void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) * the ONLY reentrant function that doesn't take the scanner as the last argument. * That's why we explicitly handle the declaration, instead of using our macros. */ - int yylex_init(yyscan_t* ptr_yy_globals) - { if (ptr_yy_globals == NULL){ errno = EINVAL; @@ -2300,9 +2330,7 @@ int yylex_init(yyscan_t* ptr_yy_globals) * The user defined value in the first argument will be available to yyalloc in * the yyextra field. */ - -int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) - +int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals ) { struct yyguts_t dummy_yyguts; @@ -2312,20 +2340,20 @@ int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) errno = EINVAL; return 1; } - + *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); - + if (*ptr_yy_globals == NULL){ errno = ENOMEM; return 1; } - + /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - + yyset_extra (yy_user_defined, *ptr_yy_globals); - + return yy_init_globals ( *ptr_yy_globals ); } @@ -2336,10 +2364,10 @@ static int yy_init_globals (yyscan_t yyscanner) * This function is called from yylex_destroy(), so don't allocate here. */ - yyg->yy_buffer_stack = 0; + yyg->yy_buffer_stack = NULL; yyg->yy_buffer_stack_top = 0; yyg->yy_buffer_stack_max = 0; - yyg->yy_c_buf_p = (char *) 0; + yyg->yy_c_buf_p = NULL; yyg->yy_init = 0; yyg->yy_start = 0; @@ -2352,8 +2380,8 @@ static int yy_init_globals (yyscan_t yyscanner) yyin = stdin; yyout = stdout; #else - yyin = (FILE *) 0; - yyout = (FILE *) 0; + yyin = NULL; + yyout = NULL; #endif /* For future reference: Set errno on error, since we are called by @@ -2369,17 +2397,17 @@ int yylex_destroy (yyscan_t yyscanner) /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ - yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); + yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(yyscanner); } /* Destroy the stack itself. */ - yyfree(yyg->yy_buffer_stack ,yyscanner); + yyfree(yyg->yy_buffer_stack , yyscanner); yyg->yy_buffer_stack = NULL; /* Destroy the start condition stack. */ - yyfree(yyg->yy_start_stack ,yyscanner ); + yyfree( yyg->yy_start_stack , yyscanner ); yyg->yy_start_stack = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time @@ -2397,18 +2425,21 @@ int yylex_destroy (yyscan_t yyscanner) */ #ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) +static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner) { - register int i; + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + (void)yyg; + + int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) +static int yy_flex_strlen (const char * s , yyscan_t yyscanner) { - register int n; + int n; for ( n = 0; s[n]; ++n ) ; @@ -2418,11 +2449,16 @@ static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) void *yyalloc (yy_size_t size , yyscan_t yyscanner) { - return (void *) malloc( size ); + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + (void)yyg; + return malloc(size); } void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) { + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + (void)yyg; + /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter @@ -2430,11 +2466,13 @@ void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ - return (void *) realloc( (char *) ptr, size ); + return realloc(ptr, size); } void yyfree (void * ptr , yyscan_t yyscanner) { + struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + (void)yyg; free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } @@ -2443,8 +2481,7 @@ void yyfree (void * ptr , yyscan_t yyscanner) #line 142 "lex_sql.l" - void scan_string(const char *str, yyscan_t scanner) { - yy_switch_to_buffer(yy_scan_string(str,scanner),scanner); + yy_switch_to_buffer(yy_scan_string(str, scanner), scanner); } diff --git a/src/observer/sql/parser/lex_sql.h b/src/observer/sql/parser/lex_sql.h index 2862800d5..77b26a92c 100644 --- a/src/observer/sql/parser/lex_sql.h +++ b/src/observer/sql/parser/lex_sql.h @@ -3,7 +3,6 @@ #define yyIN_HEADER 1 #line 6 "lex_sql.h" -#line 2 "lex_sql.l" /* 这里的代码会被复制到lex_sql.cpp的最开始位置 定义yy_size_t的原因是因为flex生成的代码,会使用yy_size_t与其他类型的数字 @@ -27,10 +26,7 @@ do { \ } \ while (0); - - - -#line 34 "lex_sql.h" +#line 30 "lex_sql.h" #define YY_INT_ALIGNED short int @@ -38,12 +34,36 @@ while (0); #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 +#define YY_FLEX_MINOR_VERSION 6 +#define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif +#ifdef yyget_lval +#define yyget_lval_ALREADY_DEFINED +#else +#define yyget_lval yyget_lval +#endif + +#ifdef yyset_lval +#define yyset_lval_ALREADY_DEFINED +#else +#define yyset_lval yyset_lval +#endif + +#ifdef yyget_lloc +#define yyget_lloc_ALREADY_DEFINED +#else +#define yyget_lloc yyget_lloc +#endif + +#ifdef yyset_lloc +#define yyset_lloc_ALREADY_DEFINED +#else +#define yyset_lloc yyset_lloc +#endif + /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ @@ -84,7 +104,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -115,27 +134,23 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ +#ifndef SIZE_MAX +#define SIZE_MAX (~(size_t)0) +#endif -/* C99 requires __STDC__ to be defined as 1. */ -#if defined (__STDC__) +#endif /* ! C99 */ -#define YY_USE_CONST +#endif /* ! FLEXINT_H */ -#endif /* defined (__STDC__) */ -#endif /* ! __cplusplus */ +/* begin standard C++ headers. */ -#ifdef YY_USE_CONST +/* TODO: this is always defined, so inline it */ #define yyconst const + +#if defined(__GNUC__) && __GNUC__ >= 3 +#define yynoreturn __attribute__((__noreturn__)) #else -#define yyconst +#define yynoreturn #endif /* An opaque pointer. */ @@ -157,7 +172,15 @@ typedef void* yyscan_t; /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif #ifndef YY_TYPEDEF_YY_BUFFER_STATE @@ -182,7 +205,7 @@ struct yy_buffer_state /* Size of input buffer in bytes, not including room for EOB * characters. */ - yy_size_t yy_buf_size; + int yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. @@ -210,7 +233,7 @@ struct yy_buffer_state int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ - + /* Whether to try to fill the input buffer when we reach the * end of it. */ @@ -221,25 +244,25 @@ struct yy_buffer_state }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ -void yyrestart (FILE *input_file ,yyscan_t yyscanner ); -void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); -void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -void yypop_buffer_state (yyscan_t yyscanner ); +void yyrestart ( FILE *input_file , yyscan_t yyscanner ); +void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); +YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner ); +void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); +void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); +void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); +void yypop_buffer_state ( yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); +YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner ); +YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner ); +YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner ); -void *yyalloc (yy_size_t ,yyscan_t yyscanner ); -void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); -void yyfree (void * ,yyscan_t yyscanner ); +void *yyalloc ( yy_size_t , yyscan_t yyscanner ); +void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner ); +void yyfree ( void * , yyscan_t yyscanner ); /* Begin user sect3 */ -#define yywrap(n) 1 +#define yywrap(yyscanner) (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP #define yytext_ptr yytext_r @@ -264,44 +287,48 @@ void yyfree (void * ,yyscan_t yyscanner ); int yylex_init (yyscan_t* scanner); -int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); +int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -int yylex_destroy (yyscan_t yyscanner ); +int yylex_destroy ( yyscan_t yyscanner ); + +int yyget_debug ( yyscan_t yyscanner ); + +void yyset_debug ( int debug_flag , yyscan_t yyscanner ); -int yyget_debug (yyscan_t yyscanner ); +YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner ); -void yyset_debug (int debug_flag ,yyscan_t yyscanner ); +void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner ); -YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner ); +FILE *yyget_in ( yyscan_t yyscanner ); -void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); +void yyset_in ( FILE * _in_str , yyscan_t yyscanner ); -FILE *yyget_in (yyscan_t yyscanner ); +FILE *yyget_out ( yyscan_t yyscanner ); -void yyset_in (FILE * in_str ,yyscan_t yyscanner ); +void yyset_out ( FILE * _out_str , yyscan_t yyscanner ); -FILE *yyget_out (yyscan_t yyscanner ); + int yyget_leng ( yyscan_t yyscanner ); -void yyset_out (FILE * out_str ,yyscan_t yyscanner ); +char *yyget_text ( yyscan_t yyscanner ); -int yyget_leng (yyscan_t yyscanner ); +int yyget_lineno ( yyscan_t yyscanner ); -char *yyget_text (yyscan_t yyscanner ); +void yyset_lineno ( int _line_number , yyscan_t yyscanner ); -int yyget_lineno (yyscan_t yyscanner ); +int yyget_column ( yyscan_t yyscanner ); -void yyset_lineno (int line_number ,yyscan_t yyscanner ); +void yyset_column ( int _column_no , yyscan_t yyscanner ); -YYSTYPE * yyget_lval (yyscan_t yyscanner ); +YYSTYPE * yyget_lval ( yyscan_t yyscanner ); -void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner ); +void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner ); - YYLTYPE *yyget_lloc (yyscan_t yyscanner ); + YYLTYPE *yyget_lloc ( yyscan_t yyscanner ); - void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner ); + void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner ); /* Macros after this point can all be overridden by user definitions in * section 1. @@ -309,18 +336,18 @@ void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner ); #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus -extern "C" int yywrap (yyscan_t yyscanner ); +extern "C" int yywrap ( yyscan_t yyscanner ); #else -extern int yywrap (yyscan_t yyscanner ); +extern int yywrap ( yyscan_t yyscanner ); #endif #endif #ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); +static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); +static int yy_flex_strlen ( const char * , yyscan_t yyscanner); #endif #ifndef YY_NO_INPUT @@ -329,7 +356,12 @@ static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Number of entries by which start-condition stack grows. */ @@ -344,7 +376,7 @@ static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); #define YY_DECL_IS_OURS 1 extern int yylex \ - (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner); + (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner); #define YY_DECL int yylex \ (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) @@ -364,9 +396,154 @@ extern int yylex \ #undef YY_DECL #endif +#ifndef yy_create_buffer_ALREADY_DEFINED +#undef yy_create_buffer +#endif +#ifndef yy_delete_buffer_ALREADY_DEFINED +#undef yy_delete_buffer +#endif +#ifndef yy_scan_buffer_ALREADY_DEFINED +#undef yy_scan_buffer +#endif +#ifndef yy_scan_string_ALREADY_DEFINED +#undef yy_scan_string +#endif +#ifndef yy_scan_bytes_ALREADY_DEFINED +#undef yy_scan_bytes +#endif +#ifndef yy_init_buffer_ALREADY_DEFINED +#undef yy_init_buffer +#endif +#ifndef yy_flush_buffer_ALREADY_DEFINED +#undef yy_flush_buffer +#endif +#ifndef yy_load_buffer_state_ALREADY_DEFINED +#undef yy_load_buffer_state +#endif +#ifndef yy_switch_to_buffer_ALREADY_DEFINED +#undef yy_switch_to_buffer +#endif +#ifndef yypush_buffer_state_ALREADY_DEFINED +#undef yypush_buffer_state +#endif +#ifndef yypop_buffer_state_ALREADY_DEFINED +#undef yypop_buffer_state +#endif +#ifndef yyensure_buffer_stack_ALREADY_DEFINED +#undef yyensure_buffer_stack +#endif +#ifndef yylex_ALREADY_DEFINED +#undef yylex +#endif +#ifndef yyrestart_ALREADY_DEFINED +#undef yyrestart +#endif +#ifndef yylex_init_ALREADY_DEFINED +#undef yylex_init +#endif +#ifndef yylex_init_extra_ALREADY_DEFINED +#undef yylex_init_extra +#endif +#ifndef yylex_destroy_ALREADY_DEFINED +#undef yylex_destroy +#endif +#ifndef yyget_debug_ALREADY_DEFINED +#undef yyget_debug +#endif +#ifndef yyset_debug_ALREADY_DEFINED +#undef yyset_debug +#endif +#ifndef yyget_extra_ALREADY_DEFINED +#undef yyget_extra +#endif +#ifndef yyset_extra_ALREADY_DEFINED +#undef yyset_extra +#endif +#ifndef yyget_in_ALREADY_DEFINED +#undef yyget_in +#endif +#ifndef yyset_in_ALREADY_DEFINED +#undef yyset_in +#endif +#ifndef yyget_out_ALREADY_DEFINED +#undef yyget_out +#endif +#ifndef yyset_out_ALREADY_DEFINED +#undef yyset_out +#endif +#ifndef yyget_leng_ALREADY_DEFINED +#undef yyget_leng +#endif +#ifndef yyget_text_ALREADY_DEFINED +#undef yyget_text +#endif +#ifndef yyget_lineno_ALREADY_DEFINED +#undef yyget_lineno +#endif +#ifndef yyset_lineno_ALREADY_DEFINED +#undef yyset_lineno +#endif +#ifndef yyget_column_ALREADY_DEFINED +#undef yyget_column +#endif +#ifndef yyset_column_ALREADY_DEFINED +#undef yyset_column +#endif +#ifndef yywrap_ALREADY_DEFINED +#undef yywrap +#endif +#ifndef yyget_lval_ALREADY_DEFINED +#undef yyget_lval +#endif +#ifndef yyset_lval_ALREADY_DEFINED +#undef yyset_lval +#endif +#ifndef yyget_lloc_ALREADY_DEFINED +#undef yyget_lloc +#endif +#ifndef yyset_lloc_ALREADY_DEFINED +#undef yyset_lloc +#endif +#ifndef yyalloc_ALREADY_DEFINED +#undef yyalloc +#endif +#ifndef yyrealloc_ALREADY_DEFINED +#undef yyrealloc +#endif +#ifndef yyfree_ALREADY_DEFINED +#undef yyfree +#endif +#ifndef yytext_ALREADY_DEFINED +#undef yytext +#endif +#ifndef yyleng_ALREADY_DEFINED +#undef yyleng +#endif +#ifndef yyin_ALREADY_DEFINED +#undef yyin +#endif +#ifndef yyout_ALREADY_DEFINED +#undef yyout +#endif +#ifndef yy_flex_debug_ALREADY_DEFINED +#undef yy_flex_debug +#endif +#ifndef yylineno_ALREADY_DEFINED +#undef yylineno +#endif +#ifndef yytables_fload_ALREADY_DEFINED +#undef yytables_fload +#endif +#ifndef yytables_destroy_ALREADY_DEFINED +#undef yytables_destroy +#endif +#ifndef yyTABLES_NAME_ALREADY_DEFINED +#undef yyTABLES_NAME +#endif + #line 142 "lex_sql.l" -#line 371 "lex_sql.h" +#line 548 "lex_sql.h" #undef yyIN_HEADER #endif /* yyHEADER_H */ 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..affff0b04 --- /dev/null +++ b/src/observer/sql/stmt/drop_table_stmt.cpp @@ -0,0 +1,25 @@ +/* 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 "common/types.h" +#include "sql/stmt/drop_table_stmt.h" +#include "event/sql_debug.h" + +RC DropTableStmt::create(Db *db, const DropTableSqlNode &create_table, Stmt *&stmt) +{ + stmt = new DropTableStmt(create_table.relation_name); + sql_debug("create table statement: table name %s", create_table.relation_name.c_str()); + return RC::SUCCESS; +} 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..dadd103ee --- /dev/null +++ b/src/observer/sql/stmt/drop_table_stmt.h @@ -0,0 +1,44 @@ +/* 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 +#include + +#include "sql/stmt/stmt.h" + +class Db; + +/** + * @brief 表示创建表的语句 + * @ingroup Statement + * @details 虽然解析成了stmt,但是与原始的SQL解析后的数据也差不多 + */ +class DropTableStmt : public Stmt +{ +public: + DropTableStmt(const std::string &table_name) : table_name_(table_name) {} + + virtual ~DropTableStmt() = default; + + StmtType type() const override { return StmtType::DROP_TABLE; } + + const std::string &table_name() const { return table_name_; } + + static RC create(Db *db, const DropTableSqlNode &create_table, Stmt *&stmt); + +private: + std::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 61be9c1b6..50a3caf7c 100644 --- a/src/observer/sql/stmt/stmt.cpp +++ b/src/observer/sql/stmt/stmt.cpp @@ -29,6 +29,7 @@ See the Mulan PSL v2 for more details. */ #include "sql/stmt/show_tables_stmt.h" #include "sql/stmt/trx_begin_stmt.h" #include "sql/stmt/trx_end_stmt.h" +#include "sql/stmt/drop_table_stmt.h" bool stmt_type_ddl(StmtType type) { @@ -107,7 +108,9 @@ RC Stmt::create_stmt(Db *db, ParsedSqlNode &sql_node, Stmt *&stmt) case SCF_CALC: { return CalcStmt::create(sql_node.calc, stmt); } - + case SCF_DROP_TABLE: { + return DropTableStmt::create(db, sql_node.drop_table, stmt); + } default: { LOG_INFO("Command::type %d doesn't need to create statement.", sql_node.flag); } break; diff --git a/src/observer/storage/buffer/disk_buffer_pool.cpp b/src/observer/storage/buffer/disk_buffer_pool.cpp index 92215cc7f..158548024 100644 --- a/src/observer/storage/buffer/disk_buffer_pool.cpp +++ b/src/observer/storage/buffer/disk_buffer_pool.cpp @@ -103,7 +103,7 @@ int BPFrameManager::purge_frames(int count, function purger) Frame *BPFrameManager::get(int buffer_pool_id, PageNum page_num) { - FrameId frame_id(buffer_pool_id, page_num); + FrameId frame_id(buffer_pool_id, page_num); lock_guard lock_guard(lock_); return get_internal(frame_id); @@ -125,7 +125,7 @@ Frame *BPFrameManager::alloc(int buffer_pool_id, PageNum page_num) lock_guard lock_guard(lock_); - Frame *frame = get_internal(frame_id); + Frame *frame = get_internal(frame_id); if (frame != nullptr) { return frame; } @@ -170,7 +170,7 @@ list BPFrameManager::find_list(int buffer_pool_id) lock_guard lock_guard(lock_); list frames; - auto fetcher = [&frames, buffer_pool_id](const FrameId &frame_id, Frame *const frame) -> bool { + auto fetcher = [&frames, buffer_pool_id](const FrameId &frame_id, Frame *const frame) -> bool { if (buffer_pool_id == frame_id.buffer_pool_id()) { frame->pin(); frames.push_back(frame); @@ -213,9 +213,12 @@ RC BufferPoolIterator::reset() } //////////////////////////////////////////////////////////////////////////////// -DiskBufferPool::DiskBufferPool( - BufferPoolManager &bp_manager, BPFrameManager &frame_manager, DoubleWriteBuffer &dblwr_manager, LogHandler &log_handler) - : bp_manager_(bp_manager), frame_manager_(frame_manager), dblwr_manager_(dblwr_manager), log_handler_(*this, log_handler) +DiskBufferPool::DiskBufferPool(BufferPoolManager &bp_manager, BPFrameManager &frame_manager, + DoubleWriteBuffer &dblwr_manager, LogHandler &log_handler) + : bp_manager_(bp_manager), + frame_manager_(frame_manager), + dblwr_manager_(dblwr_manager), + log_handler_(*this, log_handler) {} DiskBufferPool::~DiskBufferPool() @@ -237,7 +240,7 @@ RC DiskBufferPool::open_file(const char *file_name) file_desc_ = fd; Page header_page; - int ret = readn(file_desc_, &header_page, sizeof(header_page)); + int ret = readn(file_desc_, &header_page, sizeof(header_page)); if (ret != 0) { LOG_ERROR("Failed to read first page of %s, due to %s.", file_name, strerror(errno)); close(fd); @@ -246,7 +249,7 @@ RC DiskBufferPool::open_file(const char *file_name) } BPFileHeader *tmp_file_header = reinterpret_cast(header_page.data); - buffer_pool_id_ = tmp_file_header->buffer_pool_id; + buffer_pool_id_ = tmp_file_header->buffer_pool_id; RC rc = allocate_frame(BP_HEADER_PAGE, &hdr_frame_); if (rc != RC::SUCCESS) { @@ -364,7 +367,7 @@ RC DiskBufferPool::allocate_page(Frame **frame) // TODO, do we need clean the loaded page's data? hdr_frame_->mark_dirty(); LSN lsn = 0; - rc = log_handler_.allocate_page(i, lsn); + rc = log_handler_.allocate_page(i, lsn); if (OB_FAIL(rc)) { LOG_ERROR("Failed to log allocate page %d, rc=%s", i, strrc(rc)); // 忽略了错误 @@ -386,7 +389,7 @@ RC DiskBufferPool::allocate_page(Frame **frame) } LSN lsn = 0; - rc = log_handler_.allocate_page(file_header_->page_count, lsn); + rc = log_handler_.allocate_page(file_header_->page_count, lsn); if (OB_FAIL(rc)) { LOG_ERROR("Failed to log allocate page %d, rc=%s", file_header_->page_count, strrc(rc)); // 忽略了错误 @@ -436,9 +439,9 @@ RC DiskBufferPool::dispose_page(PageNum page_num) LOG_ERROR("Failed to dispose page %d, because it is the first page. filename=%s", page_num, file_name_.c_str()); return RC::INTERNAL; } - + scoped_lock lock_guard(lock_); - Frame *used_frame = frame_manager_.get(id(), page_num); + Frame *used_frame = frame_manager_.get(id(), page_num); if (used_frame != nullptr) { ASSERT("the page try to dispose is in use. frame:%s", used_frame->to_string().c_str()); frame_manager_.free(id(), page_num, used_frame); @@ -447,7 +450,7 @@ RC DiskBufferPool::dispose_page(PageNum page_num) } LSN lsn = 0; - RC rc = log_handler_.deallocate_page(page_num, lsn); + RC rc = log_handler_.deallocate_page(page_num, lsn); if (OB_FAIL(rc)) { LOG_ERROR("Failed to log deallocate page %d, rc=%s", page_num, strrc(rc)); // ignore error handle @@ -492,7 +495,7 @@ RC DiskBufferPool::purge_page(PageNum page_num) { scoped_lock lock_guard(lock_); - Frame *used_frame = frame_manager_.get(id(), page_num); + Frame *used_frame = frame_manager_.get(id(), page_num); if (used_frame != nullptr) { return purge_frame(page_num, used_frame); } @@ -647,7 +650,7 @@ RC DiskBufferPool::redo_allocate_page(LSN lsn, PageNum page_num) file_header_->page_count++; hdr_frame_->set_lsn(lsn); hdr_frame_->mark_dirty(); - + // TODO 应该检查文件是否足够大,包含了当前新分配的页面 Bitmap bitmap(file_header_->bitmap, file_header_->page_count); @@ -731,13 +734,13 @@ RC DiskBufferPool::check_page_num(PageNum page_num) RC DiskBufferPool::load_page(PageNum page_num, Frame *frame) { Page &page = frame->page(); - RC rc = dblwr_manager_.read_page(this, page_num, page); + RC rc = dblwr_manager_.read_page(this, page_num, page); if (OB_SUCC(rc)) { return rc; } scoped_lock lock_guard(wr_lock_); - int64_t offset = ((int64_t)page_num) * BP_PAGE_SIZE; + int64_t offset = ((int64_t)page_num) * BP_PAGE_SIZE; if (lseek(file_desc_, offset, SEEK_SET) == -1) { LOG_ERROR("Failed to load page %s:%d, due to failed to lseek:%s.", file_name_.c_str(), page_num, strerror(errno)); @@ -891,7 +894,7 @@ RC BufferPoolManager::flush_page(Frame &frame) int buffer_pool_id = frame.buffer_pool_id(); scoped_lock lock_guard(lock_); - auto iter = id_to_buffer_pools_.find(buffer_pool_id); + auto iter = id_to_buffer_pools_.find(buffer_pool_id); if (iter == id_to_buffer_pools_.end()) { LOG_WARN("unknown buffer pool of id %d", buffer_pool_id); return RC::INTERNAL; @@ -912,8 +915,24 @@ RC BufferPoolManager::get_buffer_pool(int32_t id, DiskBufferPool *&bp) LOG_WARN("unknown buffer pool of id %d", id); return RC::INTERNAL; } - + bp = iter->second; return RC::SUCCESS; } +RC BufferPoolManager::remove_file(const char *file_name) +{ + if (file_name == nullptr) { + return RC::SUCCESS; + } + if (close(open(file_name, O_RDWR)) < 0) { + LOG_ERROR("Failed to close file %s, due to %s.", file_name, strerror(errno)); + return RC::IOERR_CLOSE; + } + + if (unlink(file_name) < 0) { + LOG_ERROR("Failed to remove file %s, due to %s.", file_name, strerror(errno)); + return RC ::FILE_REMOVE; + } + return RC::SUCCESS; +} diff --git a/src/observer/storage/buffer/disk_buffer_pool.h b/src/observer/storage/buffer/disk_buffer_pool.h index 9ff02922f..1528548bb 100644 --- a/src/observer/storage/buffer/disk_buffer_pool.h +++ b/src/observer/storage/buffer/disk_buffer_pool.h @@ -330,6 +330,8 @@ class BufferPoolManager final RC open_file(LogHandler &log_handler, const char *file_name, DiskBufferPool *&bp); RC close_file(const char *file_name); + RC remove_file(const char *file_name); + RC flush_page(Frame &frame); BPFrameManager &get_frame_manager() { return frame_manager_; } diff --git a/src/observer/storage/db/db.cpp b/src/observer/storage/db/db.cpp index 74e9a169c..66873ec90 100644 --- a/src/observer/storage/db/db.cpp +++ b/src/observer/storage/db/db.cpp @@ -160,6 +160,25 @@ RC Db::create_table(const char *table_name, span attribut LOG_INFO("Create table success. table name=%s, table_id:%d", table_name, table_id); return RC::SUCCESS; } +RC Db::drop_table(const char *table_name) +{ + auto it = opened_tables_.find(table_name); + if (it == opened_tables_.end()) { + LOG_WARN("table %s not exist",table_name); + return RC::SCHEMA_TABLE_NOT_EXIST; + } + Table *table = it->second; + + RC rc = table->destroy(path_.c_str()); + if (rc != RC::SUCCESS) { + LOG_ERROR("Failed to drop table %s.", table_name); + return rc; + } + + opened_tables_.erase(it); + delete table; + return RC::SUCCESS; +} Table *Db::find_table(const char *table_name) const { diff --git a/src/observer/storage/db/db.h b/src/observer/storage/db/db.h index 8eee8943e..cc8872f5e 100644 --- a/src/observer/storage/db/db.h +++ b/src/observer/storage/db/db.h @@ -66,6 +66,8 @@ class Db RC create_table(const char *table_name, span attributes, const StorageFormat storage_format = StorageFormat::ROW_FORMAT); + RC drop_table(const char *table_name); + /** * @brief 根据表名查找表 */ diff --git a/src/observer/storage/default/default_handler.cpp b/src/observer/storage/default/default_handler.cpp index e310aa916..b727a2afc 100644 --- a/src/observer/storage/default/default_handler.cpp +++ b/src/observer/storage/default/default_handler.cpp @@ -44,9 +44,9 @@ RC DefaultHandler::init(const char *base_dir, const char *trx_kit_name, const ch return RC::INTERNAL; } - base_dir_ = base_dir; - db_dir_ = db_dir; - trx_kit_name_ = trx_kit_name; + base_dir_ = base_dir; + db_dir_ = db_dir; + trx_kit_name_ = trx_kit_name; log_handler_name_ = log_handler_name; const char *sys_db = "sys"; @@ -143,7 +143,14 @@ RC DefaultHandler::create_table(const char *dbname, const char *relation_name, s return db->create_table(relation_name, attributes); } -RC DefaultHandler::drop_table(const char *dbname, const char *relation_name) { return RC::UNIMPLEMENTED; } +RC DefaultHandler::drop_table(const char *dbname, const char *relation_name) +{ + Db *db = find_db(dbname); + if (db == nullptr) { + return RC::SCHEMA_DB_NOT_OPENED; + } + return db->drop_table(relation_name); +} Db *DefaultHandler::find_db(const char *dbname) const { diff --git a/src/observer/storage/table/table.cpp b/src/observer/storage/table/table.cpp index 5396c9f1b..27cdbee40 100644 --- a/src/observer/storage/table/table.cpp +++ b/src/observer/storage/table/table.cpp @@ -64,7 +64,7 @@ RC Table::create(Db *db, int32_t table_id, const char *path, const char *name, c LOG_WARN("Name cannot be empty"); return RC::INVALID_ARGUMENT; } - LOG_INFO("Begin to create table %s:%s", base_dir, name); + LOG_INFO("Begin to create able %s:%s", base_dir, name); if (attributes.size() == 0) { LOG_WARN("Invalid arguments. table_name=%s, attribute_count=%d", name, attributes.size()); @@ -127,6 +127,48 @@ RC Table::create(Db *db, int32_t table_id, const char *path, const char *name, c return rc; } +// 为什么要先刷新所有的脏页 +// TODO:从哪里分析的可以这么删除 +RC Table::destroy(const char *dir) +{ + RC rc = sync(); // 刷新所有脏页 + if (rc != RC::SUCCESS) { + LOG_ERROR("Failed to sync table %s. rc=%d:%s", name(), rc, strrc(rc)); + return rc; + } + // 1.destroy indexes + const int index_num = table_meta_.index_num(); + for (int i = 0; i < index_num; i++) { + ((BplusTreeIndex *)indexes_[i])->close(); + const IndexMeta *index_meta = table_meta_.index(i); + if (index_meta != nullptr) { + std::string index_file = table_index_file(dir, name(), index_meta->name()); + if (unlink(index_file.c_str()) != 0) { + LOG_ERROR("Failed to delete index file. file name=%s, errmsg=%s", index_file.c_str(), strerror(errno)); + return RC::GENERIC_ERROR; + } + } + } + + // 2.destroy record_handler + if (record_handler_ != nullptr) { + record_handler_->close(); + delete record_handler_; + record_handler_ = nullptr; + } + // 3.destroy buffer_pool and data file + std ::string data_file = table_data_file(dir, name()); + BufferPoolManager &bpm = db_->buffer_pool_manager(); + rc = bpm.remove_file(data_file.c_str()); // TODO: remove_file + + // 4.destroy table_meta file + std::string meta_file = table_meta_file(dir, name()); + if (unlink(meta_file.c_str()) != 0) { + LOG_ERROR("Failed to delete meta file. file name=%s, errmsg=%s", meta_file.c_str(), strerror(errno)); + return RC::GENERIC_ERROR; + } + return rc; +} RC Table::open(Db *db, const char *meta_file, const char *base_dir) { // 加载元数据文件 @@ -272,7 +314,7 @@ RC Table::make_record(int value_num, const Value *values, Record &record) for (int i = 0; i < value_num && OB_SUCC(rc); i++) { const FieldMeta *field = table_meta_.field(i + normal_field_start_index); - const Value & value = values[i]; + const Value &value = values[i]; if (field->type() != value.attr_type()) { Value real_value; rc = Value::cast_to(value, field->type(), real_value); diff --git a/src/observer/storage/table/table.h b/src/observer/storage/table/table.h index 089e13ae4..bb6b105a3 100644 --- a/src/observer/storage/table/table.h +++ b/src/observer/storage/table/table.h @@ -54,6 +54,8 @@ class Table RC create(Db *db, int32_t table_id, const char *path, const char *name, const char *base_dir, span attributes, StorageFormat storage_format); + RC destroy(const char *dir); + /** * 打开一个表 * @param meta_file 保存表元数据的文件完整路径