From d69f47b4969b877da3d1067c29c9978b889e1df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=90=E6=9D=A5?= Date: Thu, 7 Nov 2024 21:34:36 +0800 Subject: [PATCH 1/7] fix bplus tree log --- 474.patch | 161 ++++++++++++++++++ src/observer/storage/index/bplus_tree_log.cpp | 2 +- 2 files changed, 162 insertions(+), 1 deletion(-) create mode 100644 474.patch diff --git a/474.patch b/474.patch new file mode 100644 index 000000000..21b43ea28 --- /dev/null +++ b/474.patch @@ -0,0 +1,161 @@ +From b1c7e6a57d896352dfaf2396a4644b61960b4a24 Mon Sep 17 00:00:00 2001 +From: AUA +Date: Mon, 4 Nov 2024 11:48:42 +0000 +Subject: [PATCH 1/3] commit-message: update the cmakelists.txt #432 + +--- + CMakeLists.txt | 27 ++++++++++++++------------- + build.sh | 31 ++++++++++++++----------------- + 2 files changed, 28 insertions(+), 30 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 31b5917f6..1b6540d9b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,6 +10,14 @@ SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) + + SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) + ++# 设置默认构建类型为 Debug ++if(NOT CMAKE_BUILD_TYPE) ++ set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type:Default is debug" FORCE) ++endif() ++ ++# 输出当前构建类型 ++message(STATUS "Using build type: ${CMAKE_BUILD_TYPE}") ++ + OPTION(ENABLE_ASAN "Enable build with address sanitizer" ON) + OPTION(ENABLE_TSAN "Build with thread sanitizer" OFF) + OPTION(ENABLE_UBSAN "Build with undefined behavior sanitizer" OFF) +@@ -57,19 +65,6 @@ IF(USE_SIMD) + ADD_DEFINITIONS(-DUSE_SIMD) + ENDIF(USE_SIMD) + +-IF(DEBUG) +- MESSAGE(STATUS "DEBUG has been set as TRUE ${DEBUG}") +- SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -O0 -g -DDEBUG ") +- ADD_DEFINITIONS(-DENABLE_DEBUG) +-ELSEIF(NOT DEFINED ENV{DEBUG}) +- MESSAGE(STATUS "Disable debug") +- SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -O2 -g ") +-ELSE() +- MESSAGE(STATUS "Enable debug") +- SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -O0 -g -DDEBUG") +- ADD_DEFINITIONS(-DENABLE_DEBUG) +-ENDIF(DEBUG) +- + IF (CONCURRENCY) + MESSAGE(STATUS "CONCURRENCY is ON") + SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -DCONCURRENCY") +@@ -164,6 +159,12 @@ ENDIF(WITH_UNIT_TESTS) + + SET(CMAKE_CXX_FLAGS ${CMAKE_COMMON_FLAGS}) + SET(CMAKE_C_FLAGS ${CMAKE_COMMON_FLAGS}) ++ ++set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0 -DDEBUG") ++set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -DNDEBUG") ++set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -DDEBUG") ++set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os") ++ + MESSAGE(STATUS "CMAKE_CXX_FLAGS is " ${CMAKE_CXX_FLAGS}) + + # ADD_SUBDIRECTORY(src bin) bin 为目标目录, 可以省略 +diff --git a/build.sh b/build.sh +index 0a914d671..4b4f0f2f7 100755 +--- a/build.sh ++++ b/build.sh +@@ -137,8 +137,8 @@ function do_build + { + TYPE=$1; shift + prepare_build_dir $TYPE || return +- echo "${CMAKE_COMMAND} ${TOPDIR} $@" +- ${CMAKE_COMMAND} -S ${TOPDIR} $@ ++ echo "${CMAKE_COMMAND} $@ ${TOPDIR}" ++ ${CMAKE_COMMAND} $@ -S ${TOPDIR} + } + + function do_clean +@@ -147,23 +147,20 @@ function do_clean + find . -maxdepth 1 -type d -name 'build_*' | xargs rm -rf + } + +-function build +-{ +- set -- "${BUILD_ARGS[@]}" +- case "x$1" in +- xrelease) +- do_build "$@" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEBUG=OFF +- ;; +- xdebug) +- do_build "$@" -DCMAKE_BUILD_TYPE=Debug -DDEBUG=ON +- ;; +- *) +- BUILD_ARGS=(debug "${BUILD_ARGS[@]}") +- build +- ;; +- esac ++function build { ++ # 默认参数是 debug ++ if [ -z "${BUILD_ARGS[0]}" ]; then ++ set -- "debug" # 如果没有参数,则设置默认值 ++ else ++ set -- "${BUILD_ARGS[@]}" # 否则使用 BUILD_ARGS 的第一个参数 ++ fi ++ local build_type_lower=$(echo "$1" | tr '[:upper:]' '[:lower:]') # 转换为小写 ++ echo "Build type: $build_type_lower" # 输出构建类型 ++ ++ do_build "$build_type_lower" -DCMAKE_BUILD_TYPE="$build_type_lower" # 调用 do_build + } + ++ + function main + { + case "$1" in + +From 360240155dd67d397cd406c6e23c543e53bace48 Mon Sep 17 00:00:00 2001 +From: AUA +Date: Mon, 4 Nov 2024 12:27:03 +0000 +Subject: [PATCH 2/3] commit-message: update the cmakelists.txt #432 + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1b6540d9b..a6618dc4e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -161,7 +161,7 @@ SET(CMAKE_CXX_FLAGS ${CMAKE_COMMON_FLAGS}) + SET(CMAKE_C_FLAGS ${CMAKE_COMMON_FLAGS}) + + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0 -DDEBUG") +-set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -DNDEBUG") ++set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -DDEBUG") + set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os") + + +From 8c68a18b6035177e0f30e54569b45f50f0e7e193 Mon Sep 17 00:00:00 2001 +From: AUA +Date: Mon, 4 Nov 2024 12:48:05 +0000 +Subject: [PATCH 3/3] commit-message: update the cmakelists.txt #432 + +--- + build.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/build.sh b/build.sh +index 4b4f0f2f7..e0ba80810 100755 +--- a/build.sh ++++ b/build.sh +@@ -137,8 +137,8 @@ function do_build + { + TYPE=$1; shift + prepare_build_dir $TYPE || return +- echo "${CMAKE_COMMAND} $@ ${TOPDIR}" +- ${CMAKE_COMMAND} $@ -S ${TOPDIR} ++ echo "${CMAKE_COMMAND} ${TOPDIR} $@" ++ ${CMAKE_COMMAND} -S ${TOPDIR} $@ + } + + function do_clean diff --git a/src/observer/storage/index/bplus_tree_log.cpp b/src/observer/storage/index/bplus_tree_log.cpp index e2ee32ff3..2225a38e1 100644 --- a/src/observer/storage/index/bplus_tree_log.cpp +++ b/src/observer/storage/index/bplus_tree_log.cpp @@ -33,7 +33,7 @@ BplusTreeLogger::BplusTreeLogger(LogHandler &log_handler, int32_t buffer_pool_id : log_handler_(log_handler), buffer_pool_id_(buffer_pool_id) {} -BplusTreeLogger::~BplusTreeLogger() { commit(); } +BplusTreeLogger::~BplusTreeLogger() {} RC BplusTreeLogger::init_header_page(Frame *frame, const IndexFileHeader &header) { From 2429115ac6d6c833cffbcaf08b0093314192a5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=90=E6=9D=A5?= Date: Fri, 8 Nov 2024 09:57:45 +0800 Subject: [PATCH 2/7] remove unused file --- 474.patch | 161 ------------------------------------------------------ 1 file changed, 161 deletions(-) delete mode 100644 474.patch diff --git a/474.patch b/474.patch deleted file mode 100644 index 21b43ea28..000000000 --- a/474.patch +++ /dev/null @@ -1,161 +0,0 @@ -From b1c7e6a57d896352dfaf2396a4644b61960b4a24 Mon Sep 17 00:00:00 2001 -From: AUA -Date: Mon, 4 Nov 2024 11:48:42 +0000 -Subject: [PATCH 1/3] commit-message: update the cmakelists.txt #432 - ---- - CMakeLists.txt | 27 ++++++++++++++------------- - build.sh | 31 ++++++++++++++----------------- - 2 files changed, 28 insertions(+), 30 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 31b5917f6..1b6540d9b 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -10,6 +10,14 @@ SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) - - SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) - -+# 设置默认构建类型为 Debug -+if(NOT CMAKE_BUILD_TYPE) -+ set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type:Default is debug" FORCE) -+endif() -+ -+# 输出当前构建类型 -+message(STATUS "Using build type: ${CMAKE_BUILD_TYPE}") -+ - OPTION(ENABLE_ASAN "Enable build with address sanitizer" ON) - OPTION(ENABLE_TSAN "Build with thread sanitizer" OFF) - OPTION(ENABLE_UBSAN "Build with undefined behavior sanitizer" OFF) -@@ -57,19 +65,6 @@ IF(USE_SIMD) - ADD_DEFINITIONS(-DUSE_SIMD) - ENDIF(USE_SIMD) - --IF(DEBUG) -- MESSAGE(STATUS "DEBUG has been set as TRUE ${DEBUG}") -- SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -O0 -g -DDEBUG ") -- ADD_DEFINITIONS(-DENABLE_DEBUG) --ELSEIF(NOT DEFINED ENV{DEBUG}) -- MESSAGE(STATUS "Disable debug") -- SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -O2 -g ") --ELSE() -- MESSAGE(STATUS "Enable debug") -- SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -O0 -g -DDEBUG") -- ADD_DEFINITIONS(-DENABLE_DEBUG) --ENDIF(DEBUG) -- - IF (CONCURRENCY) - MESSAGE(STATUS "CONCURRENCY is ON") - SET(CMAKE_COMMON_FLAGS "${CMAKE_COMMON_FLAGS} -DCONCURRENCY") -@@ -164,6 +159,12 @@ ENDIF(WITH_UNIT_TESTS) - - SET(CMAKE_CXX_FLAGS ${CMAKE_COMMON_FLAGS}) - SET(CMAKE_C_FLAGS ${CMAKE_COMMON_FLAGS}) -+ -+set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0 -DDEBUG") -+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -DNDEBUG") -+set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -DDEBUG") -+set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os") -+ - MESSAGE(STATUS "CMAKE_CXX_FLAGS is " ${CMAKE_CXX_FLAGS}) - - # ADD_SUBDIRECTORY(src bin) bin 为目标目录, 可以省略 -diff --git a/build.sh b/build.sh -index 0a914d671..4b4f0f2f7 100755 ---- a/build.sh -+++ b/build.sh -@@ -137,8 +137,8 @@ function do_build - { - TYPE=$1; shift - prepare_build_dir $TYPE || return -- echo "${CMAKE_COMMAND} ${TOPDIR} $@" -- ${CMAKE_COMMAND} -S ${TOPDIR} $@ -+ echo "${CMAKE_COMMAND} $@ ${TOPDIR}" -+ ${CMAKE_COMMAND} $@ -S ${TOPDIR} - } - - function do_clean -@@ -147,23 +147,20 @@ function do_clean - find . -maxdepth 1 -type d -name 'build_*' | xargs rm -rf - } - --function build --{ -- set -- "${BUILD_ARGS[@]}" -- case "x$1" in -- xrelease) -- do_build "$@" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDEBUG=OFF -- ;; -- xdebug) -- do_build "$@" -DCMAKE_BUILD_TYPE=Debug -DDEBUG=ON -- ;; -- *) -- BUILD_ARGS=(debug "${BUILD_ARGS[@]}") -- build -- ;; -- esac -+function build { -+ # 默认参数是 debug -+ if [ -z "${BUILD_ARGS[0]}" ]; then -+ set -- "debug" # 如果没有参数,则设置默认值 -+ else -+ set -- "${BUILD_ARGS[@]}" # 否则使用 BUILD_ARGS 的第一个参数 -+ fi -+ local build_type_lower=$(echo "$1" | tr '[:upper:]' '[:lower:]') # 转换为小写 -+ echo "Build type: $build_type_lower" # 输出构建类型 -+ -+ do_build "$build_type_lower" -DCMAKE_BUILD_TYPE="$build_type_lower" # 调用 do_build - } - -+ - function main - { - case "$1" in - -From 360240155dd67d397cd406c6e23c543e53bace48 Mon Sep 17 00:00:00 2001 -From: AUA -Date: Mon, 4 Nov 2024 12:27:03 +0000 -Subject: [PATCH 2/3] commit-message: update the cmakelists.txt #432 - ---- - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 1b6540d9b..a6618dc4e 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -161,7 +161,7 @@ SET(CMAKE_CXX_FLAGS ${CMAKE_COMMON_FLAGS}) - SET(CMAKE_C_FLAGS ${CMAKE_COMMON_FLAGS}) - - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -O0 -DDEBUG") --set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -DNDEBUG") -+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2") - set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -DDEBUG") - set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os") - - -From 8c68a18b6035177e0f30e54569b45f50f0e7e193 Mon Sep 17 00:00:00 2001 -From: AUA -Date: Mon, 4 Nov 2024 12:48:05 +0000 -Subject: [PATCH 3/3] commit-message: update the cmakelists.txt #432 - ---- - build.sh | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/build.sh b/build.sh -index 4b4f0f2f7..e0ba80810 100755 ---- a/build.sh -+++ b/build.sh -@@ -137,8 +137,8 @@ function do_build - { - TYPE=$1; shift - prepare_build_dir $TYPE || return -- echo "${CMAKE_COMMAND} $@ ${TOPDIR}" -- ${CMAKE_COMMAND} $@ -S ${TOPDIR} -+ echo "${CMAKE_COMMAND} ${TOPDIR} $@" -+ ${CMAKE_COMMAND} -S ${TOPDIR} $@ - } - - function do_clean From 6d88bc008eec6bc36444982deb0f57f0d55376b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=90=E6=9D=A5?= Date: Wed, 13 Nov 2024 14:27:09 +0800 Subject: [PATCH 3/7] add some logs --- deps/common/log/log.h | 1 + src/observer/storage/buffer/disk_buffer_pool.cpp | 5 +++-- src/observer/storage/buffer/frame.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deps/common/log/log.h b/deps/common/log/log.h index f51b798c8..c31983bf7 100644 --- a/deps/common/log/log.h +++ b/deps/common/log/log.h @@ -319,6 +319,7 @@ int Log::out(const LOG_LEVEL console_level, const LOG_LEVEL log_level, T &msg) do { \ if (!(expression)) { \ LOG_PANIC(description, ##__VA_ARGS__); \ + LOG_PANIC("%s", lbt()); \ assert(expression); \ } \ } while (0) diff --git a/src/observer/storage/buffer/disk_buffer_pool.cpp b/src/observer/storage/buffer/disk_buffer_pool.cpp index 92215cc7f..7ceba56ac 100644 --- a/src/observer/storage/buffer/disk_buffer_pool.cpp +++ b/src/observer/storage/buffer/disk_buffer_pool.cpp @@ -372,6 +372,7 @@ RC DiskBufferPool::allocate_page(Frame **frame) hdr_frame_->set_lsn(lsn); + LOG_INFO("allocate a new page without extend buffer pool. page num=%d, buffer pool=%d", i, id()); lock_.unlock(); return get_this_page(i, frame); } @@ -401,7 +402,7 @@ RC DiskBufferPool::allocate_page(Frame **frame) return rc; } - LOG_INFO("allocate new page. file=%s, pageNum=%d, pin=%d", + LOG_INFO("allocate new page by extending bufferpool. file=%s, pageNum=%d, pin=%d", file_name_.c_str(), page_num, allocated_frame->pin_count()); file_header_->allocated_pages++; @@ -705,7 +706,7 @@ RC DiskBufferPool::allocate_frame(PageNum page_num, Frame **buffer) Frame *frame = frame_manager_.alloc(id(), page_num); if (frame != nullptr) { *buffer = frame; - LOG_DEBUG("allocate frame %p, page num %d", frame, page_num); + LOG_DEBUG("allocate frame %p, page num %d, frame=%s", frame, page_num, frame->to_string().c_str()); return RC::SUCCESS; } diff --git a/src/observer/storage/buffer/frame.cpp b/src/observer/storage/buffer/frame.cpp index b25ec67cc..c61972e3a 100644 --- a/src/observer/storage/buffer/frame.cpp +++ b/src/observer/storage/buffer/frame.cpp @@ -262,6 +262,6 @@ string Frame::to_string() const { stringstream ss; ss << "frame id:" << frame_id().to_string() << ", dirty=" << dirty() << ", pin=" << pin_count() - << ", lsn=" << lsn(); + << ", lsn=" << lsn() << ", this=" << this; return ss.str(); } From e6ba846f3d058c79a2a257cb645bd70ce59544fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=90=E6=9D=A5?= Date: Wed, 13 Nov 2024 16:09:58 +0800 Subject: [PATCH 4/7] fix build.sh: missing command line argument --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 13b899418..b228154b8 100755 --- a/build.sh +++ b/build.sh @@ -157,7 +157,7 @@ function build { local build_type_lower=$(echo "$1" | tr '[:upper:]' '[:lower:]') # 转换为小写 echo "Build type: $build_type_lower" # 输出构建类型 - do_build "$build_type_lower" -DCMAKE_BUILD_TYPE="$build_type_lower" # 调用 do_build + do_build $@ -DCMAKE_BUILD_TYPE="$build_type_lower" # 调用 do_build } From 8b4ffd4288926eebccbf8c6dda34342d7759cdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=90=E6=9D=A5?= Date: Wed, 13 Nov 2024 16:12:14 +0800 Subject: [PATCH 5/7] logs --- 1.log | 317 ++++++++++++++++++ CMakeLists.txt | 2 +- deps/common/log/log.cpp | 2 +- .../storage/buffer/disk_buffer_pool.cpp | 8 +- src/observer/storage/buffer/frame.cpp | 2 +- src/observer/storage/index/.bplus_tree.h.swp | Bin 0 -> 16384 bytes 6 files changed, 325 insertions(+), 6 deletions(-) create mode 100644 1.log create mode 100644 src/observer/storage/index/.bplus_tree.h.swp diff --git a/1.log b/1.log new file mode 100644 index 000000000..5aae88d72 --- /dev/null +++ b/1.log @@ -0,0 +1,317 @@ +build.sh debug -DENABLE_NOPIE=ON -DCONCURRENCY=ON --make -j4 +Build type: debug +create soft link for build_debug, linked by directory named build +cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --log-level=STATUS /root/oceanbase-source/miniob -DENABLE_NOPIE=ON -DCONCURRENCY=ON -DCMAKE_BUILD_TYPE=debug +-- The C compiler identification is GNU 11.4.0 +-- The CXX compiler identification is GNU 11.4.0 +-- Detecting C compiler ABI info +-- Detecting C compiler ABI info - done +-- Check for working C compiler: /usr/bin/cc - skipped +-- Detecting C compile features +-- Detecting C compile features - done +-- Detecting CXX compiler ABI info +-- Detecting CXX compiler ABI info - done +-- Check for working CXX compiler: /usr/bin/c++ - skipped +-- Detecting CXX compile features +-- Detecting CXX compile features - done +-- This is Project source dir /root/oceanbase-source/miniob +-- This is PROJECT_BINARY_DIR dir /root/oceanbase-source/miniob/build_debug +-- Using build type: debug +-- HOME dir: /root +-- This is UNIX +-- CONCURRENCY is ON +-- CMAKE_CXX_COMPILER_ID is GNU +-- Instrumenting with Address Sanitizer +-- CMAKE_INSTALL_PREFIX has been set as /usr/local +-- Install target dir is /usr/local +-- CMAKE_COMMON_FLAGS is -Wall -Werror -Wno-error=sign-compare -DDEBUG -g -O0 -no-pie -DCONCURRENCY -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope +-- CMAKE_CXX_FLAGS is -Wall -Werror -Wno-error=sign-compare -DDEBUG -g -O0 -no-pie -DCONCURRENCY -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope +-- This is PROJECT_BINARY_DIR dir /root/oceanbase-source/miniob/build_debug +-- This is PROJECT_SOURCE_DIR dir /root/oceanbase-source/miniob +-- This is CMAKE_CURRENT_SOURCE_DIR dir /root/oceanbase-source/miniob/src/observer +-- Found libevent include directory: /usr/local/include +-- Found libevent component: /usr/local/lib/libevent_core.a +-- Found libevent component: /usr/local/lib/libevent_extra.a +-- Found libevent component: /usr/local/lib/libevent_pthreads.a +-- Found libevent 2.1.12 in /usr/local +-- Looking for pthread.h +-- Looking for pthread.h - found +-- Performing Test CMAKE_HAVE_LIBC_PTHREAD +-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success +-- Found Threads: TRUE +-- Configuring done +-- Generating done +-- Build files have been written to: /root/oceanbase-source/miniob/build_debug +[ 0%] Building CXX object deps/common/CMakeFiles/common.dir/conf/ini.cpp.o +[ 1%] Building CXX object deps/common/CMakeFiles/common.dir/io/io.cpp.o +[ 1%] Building CXX object deps/common/CMakeFiles/common.dir/lang/bitmap.cpp.o +[ 2%] Building CXX object deps/common/CMakeFiles/common.dir/lang/comparator.cpp.o +[ 2%] Building CXX object deps/common/CMakeFiles/common.dir/lang/mutex.cpp.o +[ 2%] Building CXX object deps/common/CMakeFiles/common.dir/lang/serializer.cpp.o +[ 3%] Building CXX object deps/common/CMakeFiles/common.dir/lang/string.cpp.o +[ 3%] Building CXX object deps/common/CMakeFiles/common.dir/log/log.cpp.o +[ 4%] Building CXX object deps/common/CMakeFiles/common.dir/math/crc.cpp.o +[ 4%] Building CXX object deps/common/CMakeFiles/common.dir/math/md5.cpp.o +[ 4%] Building CXX object deps/common/CMakeFiles/common.dir/math/random_generator.cpp.o +[ 5%] Building CXX object deps/common/CMakeFiles/common.dir/math/regex.cpp.o +[ 5%] Building CXX object deps/common/CMakeFiles/common.dir/math/simd_util.cpp.o +[ 6%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/console_reporter.cpp.o +[ 6%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/histogram_snapshot.cpp.o +[ 7%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/log_reporter.cpp.o +[ 7%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/metrics.cpp.o +[ 7%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/metrics_registry.cpp.o +[ 8%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/reporter.cpp.o +[ 8%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/reservoir.cpp.o +[ 9%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/sampler.cpp.o +[ 9%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/timer_snapshot.cpp.o +[ 10%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/uniform_reservoir.cpp.o +[ 10%] Building CXX object deps/common/CMakeFiles/common.dir/mm/mem_pool.cpp.o +[ 10%] Building CXX object deps/common/CMakeFiles/common.dir/os/os.cpp.o +[ 11%] Building CXX object deps/common/CMakeFiles/common.dir/os/path.cpp.o +[ 11%] Building CXX object deps/common/CMakeFiles/common.dir/os/pidfile.cpp.o +[ 12%] Building CXX object deps/common/CMakeFiles/common.dir/os/process.cpp.o +[ 12%] Building CXX object deps/common/CMakeFiles/common.dir/os/process_param.cpp.o +[ 13%] Building CXX object deps/common/CMakeFiles/common.dir/os/signal.cpp.o +[ 13%] Building CXX object deps/common/CMakeFiles/common.dir/thread/thread_pool_executor.cpp.o +[ 13%] Building CXX object deps/common/CMakeFiles/common.dir/thread/thread_util.cpp.o +[ 14%] Building CXX object deps/common/CMakeFiles/common.dir/time/datetime.cpp.o +[ 14%] Building CXX object deps/common/CMakeFiles/common.dir/time/timeout_info.cpp.o +[ 15%] Linking CXX static library ../../lib/libcommon.a +[ 15%] Built target common +[ 15%] Building CXX object src/obclient/CMakeFiles/obclient.dir/client.cpp.o +[ 16%] Building CXX object unittest/common/CMakeFiles/bitmap_test.dir/bitmap_test.cpp.o +[ 16%] Building CXX object unittest/common/CMakeFiles/integer_generator_test.dir/integer_generator_test.cpp.o +[ 16%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/lex_sql.cpp.o +[ 16%] Linking CXX executable ../../bin/obclient +[ 16%] Built target obclient +[ 17%] Building CXX object unittest/common/CMakeFiles/log_test.dir/log_test.cpp.o +[ 17%] Linking CXX executable ../../bin/bitmap_test +[ 17%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/yacc_sql.cpp.o +[ 17%] Built target bitmap_test +[ 18%] Building CXX object unittest/common/CMakeFiles/lower_bound_test.dir/lower_bound_test.cpp.o +[ 19%] Linking CXX executable ../../bin/integer_generator_test +[ 19%] Built target integer_generator_test +[ 19%] Building CXX object unittest/common/CMakeFiles/md5_test.dir/md5_test.cpp.o +[ 20%] Linking CXX executable ../../bin/md5_test +[ 20%] Built target md5_test +[ 20%] Building CXX object unittest/common/CMakeFiles/mem_pool_test.dir/mem_pool_test.cpp.o +[ 20%] Linking CXX executable ../../bin/log_test +[ 20%] Built target log_test +[ 21%] Building CXX object unittest/common/CMakeFiles/pidfile_test.dir/pidfile_test.cpp.o +[ 22%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/global_context.cpp.o +[ 22%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/init.cpp.o +[ 22%] Linking CXX executable ../../bin/lower_bound_test +[ 22%] Built target lower_bound_test +[ 22%] Building CXX object unittest/common/CMakeFiles/serializer_test.dir/serializer_test.cpp.o +[ 23%] Linking CXX executable ../../bin/mem_pool_test +[ 23%] Built target mem_pool_test +[ 23%] Building CXX object unittest/common/CMakeFiles/simple_queue_test.dir/simple_queue_test.cpp.o +[ 23%] Linking CXX executable ../../bin/pidfile_test +[ 23%] Built target pidfile_test +[ 23%] Building CXX object unittest/common/CMakeFiles/thread_pool_executor_test.dir/thread_pool_executor_test.cpp.o +[ 24%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/rc.cpp.o +[ 24%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/attr_type.cpp.o +[ 25%] Linking CXX executable ../../bin/serializer_test +[ 25%] Built target serializer_test +[ 26%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/char_type.cpp.o +[ 27%] Linking CXX executable ../../bin/simple_queue_test +[ 27%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/data_type.cpp.o +[ 27%] Built target simple_queue_test +[ 27%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/float_type.cpp.o +[ 28%] Linking CXX executable ../../bin/thread_pool_executor_test +[ 28%] Built target thread_pool_executor_test +[ 29%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/integer_type.cpp.o +[ 29%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/value.cpp.o +[ 30%] Building CXX object src/observer/CMakeFiles/observer_static.dir/event/session_event.cpp.o +[ 30%] Building CXX object src/observer/CMakeFiles/observer_static.dir/event/sql_debug.cpp.o +[ 31%] Building CXX object src/observer/CMakeFiles/observer_static.dir/event/sql_event.cpp.o +[ 31%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/buffered_writer.cpp.o +[ 31%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/cli_communicator.cpp.o +[ 32%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/communicator.cpp.o +[ 32%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/java_thread_pool_thread_handler.cpp.o +[ 33%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/mysql_communicator.cpp.o +[ 33%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/one_thread_per_connection_thread_handler.cpp.o +[ 34%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/plain_communicator.cpp.o +[ 34%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/ring_buffer.cpp.o +[ 34%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/server.cpp.o +[ 35%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/sql_task_handler.cpp.o +[ 35%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/thread_handler.cpp.o +[ 36%] Building CXX object src/observer/CMakeFiles/observer_static.dir/session/session.cpp.o +[ 36%] Building CXX object src/observer/CMakeFiles/observer_static.dir/session/session_stage.cpp.o +[ 37%] Building CXX object src/observer/CMakeFiles/observer_static.dir/session/thread_data.cpp.o +[ 37%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/command_executor.cpp.o +[ 37%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/create_index_executor.cpp.o +[ 38%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/create_table_executor.cpp.o +[ 38%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/desc_table_executor.cpp.o +[ 39%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/execute_stage.cpp.o +[ 39%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/load_data_executor.cpp.o +[ 39%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/set_variable_executor.cpp.o +[ 40%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/sql_result.cpp.o +[ 40%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/aggregate_hash_table.cpp.o +[ 41%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/aggregate_state.cpp.o +[ 41%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/aggregator.cpp.o +[ 42%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/composite_tuple.cpp.o +[ 42%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/expression.cpp.o +[ 42%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/expression_iterator.cpp.o +[ 43%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/tuple_cell.cpp.o +[ 43%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/aggregate_vec_physical_operator.cpp.o +[ 44%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/delete_logical_operator.cpp.o +[ 44%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/delete_physical_operator.cpp.o +[ 45%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/explain_physical_operator.cpp.o +[ 45%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/expr_vec_physical_operator.cpp.o +[ 45%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/group_by_logical_operator.cpp.o +[ 46%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/group_by_physical_operator.cpp.o +[ 46%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/group_by_vec_physical_operator.cpp.o +[ 47%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/hash_group_by_physical_operator.cpp.o +[ 47%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/index_scan_physical_operator.cpp.o +[ 48%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/insert_logical_operator.cpp.o +[ 48%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/insert_physical_operator.cpp.o +[ 48%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/join_physical_operator.cpp.o +[ 49%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/logical_operator.cpp.o +[ 49%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/physical_operator.cpp.o +[ 50%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/predicate_logical_operator.cpp.o +[ 50%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/predicate_physical_operator.cpp.o +[ 50%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/project_logical_operator.cpp.o +[ 51%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/project_physical_operator.cpp.o +[ 51%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/project_vec_physical_operator.cpp.o +[ 52%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/scalar_group_by_physical_operator.cpp.o +[ 52%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/table_get_logical_operator.cpp.o +[ 53%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/table_scan_physical_operator.cpp.o +[ 53%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/table_scan_vec_physical_operator.cpp.o +[ 53%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/comparison_simplification_rule.cpp.o +[ 54%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/conjunction_simplification_rule.cpp.o +[ 54%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/expression_rewriter.cpp.o +[ 55%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/logical_plan_generator.cpp.o +[ 55%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/optimize_stage.cpp.o +[ 56%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/physical_plan_generator.cpp.o +[ 56%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/predicate_pushdown_rewriter.cpp.o +[ 56%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/predicate_rewrite.cpp.o +[ 57%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/rewriter.cpp.o +[ 57%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/expression_binder.cpp.o +[ 58%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/parse.cpp.o +[ 58%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/parse_stage.cpp.o +[ 59%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/resolve_stage.cpp.o +[ 59%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/plan_cache/plan_cache_stage.cpp.o +[ 59%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/query_cache/query_cache_stage.cpp.o +[ 60%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/create_index_stmt.cpp.o +[ 60%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/create_table_stmt.cpp.o +[ 61%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/delete_stmt.cpp.o +[ 61%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/desc_table_stmt.cpp.o +[ 62%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/explain_stmt.cpp.o +[ 62%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/filter_stmt.cpp.o +[ 62%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/insert_stmt.cpp.o +[ 63%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/load_data_stmt.cpp.o +[ 63%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/select_stmt.cpp.o +[ 64%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/stmt.cpp.o +[ 64%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/update_stmt.cpp.o +[ 64%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/buffer_pool_log.cpp.o +[ 65%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/disk_buffer_pool.cpp.o +[ 65%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/double_write_buffer.cpp.o +[ 66%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/frame.cpp.o +[ 66%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/disk_log_handler.cpp.o +[ 67%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/integrated_log_replayer.cpp.o +[ 67%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_buffer.cpp.o +[ 67%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_entry.cpp.o +[ 68%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_file.cpp.o +[ 68%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_handler.cpp.o +[ 69%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/chunk.cpp.o +[ 69%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/column.cpp.o +[ 70%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/condition_filter.cpp.o +[ 70%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/meta_util.cpp.o +[ 70%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/db/db.cpp.o +[ 71%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/default/default_handler.cpp.o +[ 71%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/field/field.cpp.o +[ 72%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/field/field_meta.cpp.o +[ 72%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree.cpp.o +[ 73%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree_index.cpp.o +[ 73%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree_log.cpp.o +[ 73%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree_log_entry.cpp.o +[ 74%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/index.cpp.o +[ 74%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/index_meta.cpp.o +[ 75%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/latch_memo.cpp.o +[ 75%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/persist/persist.cpp.o +[ 75%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/record/record_log.cpp.o +[ 76%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/record/record_manager.cpp.o +[ 76%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/table/table.cpp.o +[ 77%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/table/table_meta.cpp.o +[ 77%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/mvcc_trx.cpp.o +[ 78%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/mvcc_trx_log.cpp.o +[ 78%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/trx.cpp.o +[ 78%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/vacuous_trx.cpp.o +[ 79%] Linking CXX static library ../../lib/libobserver.a +[ 80%] Built target observer_static +[ 81%] Building CXX object test/perf/CMakeFiles/client_performance_test.dir/client_performance_test.cpp.o +[ 82%] Building CXX object src/observer/CMakeFiles/observer.dir/main.cpp.o +[ 82%] Building CXX object tools/CMakeFiles/clog_dump.dir/clog_dump.cpp.o +[ 82%] Building CXX object unittest/observer/CMakeFiles/aggregate_hash_table_test.dir/aggregate_hash_table_test.cpp.o +[ 82%] Linking CXX executable ../../bin/client_performance_test +[ 82%] Linking CXX executable ../../bin/observer +[ 82%] Built target client_performance_test +[ 83%] Building CXX object unittest/observer/CMakeFiles/arithmetic_operator_test.dir/arithmetic_operator_test.cpp.o +[ 84%] Linking CXX executable ../bin/clog_dump +[ 84%] Linking CXX executable ../../bin/aggregate_hash_table_test +[ 84%] Built target clog_dump +[ 84%] Building CXX object unittest/observer/CMakeFiles/bp_manager_test.dir/bp_manager_test.cpp.o +[ 84%] Built target observer +[ 84%] Building CXX object unittest/observer/CMakeFiles/bplus_tree_log_entry_test.dir/bplus_tree_log_entry_test.cpp.o +[ 84%] Built target aggregate_hash_table_test +[ 84%] Building CXX object unittest/observer/CMakeFiles/bplus_tree_log_test.dir/bplus_tree_log_test.cpp.o +[ 84%] Linking CXX executable ../../bin/arithmetic_operator_test +[ 84%] Built target arithmetic_operator_test +[ 84%] Building CXX object unittest/observer/CMakeFiles/bplus_tree_test.dir/bplus_tree_test.cpp.o +[ 85%] Linking CXX executable ../../bin/bp_manager_test +[ 85%] Built target bp_manager_test +[ 86%] Linking CXX executable ../../bin/bplus_tree_log_entry_test +[ 87%] Building CXX object unittest/observer/CMakeFiles/buffer_pool_log_test.dir/buffer_pool_log_test.cpp.o +[ 87%] Built target bplus_tree_log_entry_test +[ 88%] Building CXX object unittest/observer/CMakeFiles/chunk_test.dir/chunk_test.cpp.o +[ 89%] Linking CXX executable ../../bin/bplus_tree_log_test +[ 89%] Linking CXX executable ../../bin/bplus_tree_test +[ 89%] Built target bplus_tree_log_test +[ 89%] Building CXX object unittest/observer/CMakeFiles/composite_tuple_test.dir/composite_tuple_test.cpp.o +[ 89%] Linking CXX executable ../../bin/chunk_test +[ 89%] Built target bplus_tree_test +[ 89%] Building CXX object unittest/observer/CMakeFiles/disk_buffer_pool_test.dir/disk_buffer_pool_test.cpp.o +[ 89%] Built target chunk_test +[ 90%] Building CXX object unittest/observer/CMakeFiles/disk_log_handler_test.dir/disk_log_handler_test.cpp.o +[ 90%] Linking CXX executable ../../bin/buffer_pool_log_test +[ 90%] Built target buffer_pool_log_test +[ 91%] Building CXX object unittest/observer/CMakeFiles/double_write_buffer_test.dir/double_write_buffer_test.cpp.o +[ 92%] Linking CXX executable ../../bin/composite_tuple_test +[ 92%] Linking CXX executable ../../bin/disk_buffer_pool_test +[ 92%] Built target composite_tuple_test +[ 92%] Building CXX object unittest/observer/CMakeFiles/expression_test.dir/expression_test.cpp.o +[ 92%] Linking CXX executable ../../bin/disk_log_handler_test +[ 92%] Built target disk_buffer_pool_test +[ 92%] Building CXX object unittest/observer/CMakeFiles/log_buffer_test.dir/log_buffer_test.cpp.o +[ 92%] Built target disk_log_handler_test +[ 92%] Building CXX object unittest/observer/CMakeFiles/log_entry_test.dir/log_entry_test.cpp.o +[ 92%] Linking CXX executable ../../bin/double_write_buffer_test +[ 93%] Linking CXX executable ../../bin/log_buffer_test +[ 93%] Linking CXX executable ../../bin/log_entry_test +[ 93%] Built target double_write_buffer_test +[ 94%] Linking CXX executable ../../bin/expression_test +[ 95%] Building CXX object unittest/observer/CMakeFiles/log_file_test.dir/log_file_test.cpp.o +[ 95%] Built target log_buffer_test +[ 95%] Built target log_entry_test +[ 95%] Building CXX object unittest/observer/CMakeFiles/mvcc_trx_log_test.dir/mvcc_trx_log_test.cpp.o +[ 95%] Building CXX object unittest/observer/CMakeFiles/parser_test.dir/parser_test.cpp.o +[ 95%] Built target expression_test +[ 95%] Building CXX object unittest/observer/CMakeFiles/pax_storage_test.dir/pax_storage_test.cpp.o +[ 96%] Linking CXX executable ../../bin/parser_test +[ 96%] Linking CXX executable ../../bin/log_file_test +[ 96%] Built target log_file_test +[ 96%] Built target parser_test +[ 96%] Building CXX object unittest/observer/CMakeFiles/persist_test.dir/persist_test.cpp.o +[ 97%] Building CXX object unittest/observer/CMakeFiles/record_manager_test.dir/record_manager_test.cpp.o +[ 98%] Linking CXX executable ../../bin/mvcc_trx_log_test +[ 99%] Linking CXX executable ../../bin/pax_storage_test +[ 99%] Linking CXX executable ../../bin/persist_test +[ 99%] Built target mvcc_trx_log_test +[100%] Building CXX object unittest/observer/CMakeFiles/ring_buffer_test.dir/ring_buffer_test.cpp.o +[100%] Built target pax_storage_test +[100%] Built target persist_test +[100%] Linking CXX executable ../../bin/record_manager_test +[100%] Linking CXX executable ../../bin/ring_buffer_test +[100%] Built target record_manager_test +[100%] Built target ring_buffer_test diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e7dfbb7e..2e44a119c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,7 +163,7 @@ IF(WITH_UNIT_TESTS) ENDIF (ENABLE_COVERAGE) enable_testing() ENDIF(WITH_UNIT_TESTS) - +message(STATUS "CMAKE_COMMON_FLAGS is " ${CMAKE_COMMON_FLAGS}) SET(CMAKE_CXX_FLAGS ${CMAKE_COMMON_FLAGS}) SET(CMAKE_C_FLAGS ${CMAKE_COMMON_FLAGS}) diff --git a/deps/common/log/log.cpp b/deps/common/log/log.cpp index cc1d3c057..26d4032cc 100644 --- a/deps/common/log/log.cpp +++ b/deps/common/log/log.cpp @@ -349,7 +349,7 @@ int LoggerFactory::init_default( return init(log_file, &g_log, log_level, console_level, rotate_type); } - +#define LBT_SYMBOLS const char *lbt() { constexpr int buffer_size = 100; diff --git a/src/observer/storage/buffer/disk_buffer_pool.cpp b/src/observer/storage/buffer/disk_buffer_pool.cpp index 7ceba56ac..74a8ea497 100644 --- a/src/observer/storage/buffer/disk_buffer_pool.cpp +++ b/src/observer/storage/buffer/disk_buffer_pool.cpp @@ -115,6 +115,7 @@ Frame *BPFrameManager::get_internal(const FrameId &frame_id) (void)frames_.get(frame_id, frame); if (frame != nullptr) { frame->pin(); + LOG_DEBUG("got a frame. frame=%s", frame->to_string().c_str()); } return frame; } @@ -138,6 +139,7 @@ Frame *BPFrameManager::alloc(int buffer_pool_id, PageNum page_num) frame->set_page_num(page_num); frame->pin(); frames_.put(frame_id, frame); + LOG_DEBUG("allocate a new frame. frame=%s", frame->to_string().c_str()); } return frame; } @@ -372,7 +374,7 @@ RC DiskBufferPool::allocate_page(Frame **frame) hdr_frame_->set_lsn(lsn); - LOG_INFO("allocate a new page without extend buffer pool. page num=%d, buffer pool=%d", i, id()); + LOG_DEBUG("allocate a new page without extend buffer pool. page num=%d, buffer pool=%d", i, id()); lock_.unlock(); return get_this_page(i, frame); } @@ -402,8 +404,8 @@ RC DiskBufferPool::allocate_page(Frame **frame) return rc; } - LOG_INFO("allocate new page by extending bufferpool. file=%s, pageNum=%d, pin=%d", - file_name_.c_str(), page_num, allocated_frame->pin_count()); + LOG_INFO("allocate new page by extending bufferpool. buffer_pool_id=%d, pageNum=%d, pin=%d", + id(), page_num, allocated_frame->pin_count()); file_header_->allocated_pages++; file_header_->page_count++; diff --git a/src/observer/storage/buffer/frame.cpp b/src/observer/storage/buffer/frame.cpp index c61972e3a..b25ec67cc 100644 --- a/src/observer/storage/buffer/frame.cpp +++ b/src/observer/storage/buffer/frame.cpp @@ -262,6 +262,6 @@ string Frame::to_string() const { stringstream ss; ss << "frame id:" << frame_id().to_string() << ", dirty=" << dirty() << ", pin=" << pin_count() - << ", lsn=" << lsn() << ", this=" << this; + << ", lsn=" << lsn(); return ss.str(); } diff --git a/src/observer/storage/index/.bplus_tree.h.swp b/src/observer/storage/index/.bplus_tree.h.swp new file mode 100644 index 0000000000000000000000000000000000000000..8858137b253ea277e40faf520f61542e4d2667c0 GIT binary patch literal 16384 zcmeI3du$ZP9mh9m+O&B!O;J=-shYSFx-<4IcA_dh0?OGw!zE|m>F$8gs#@*c&E2io z+r8}Lz)&c!q>$i10)(_p%tHhy#KyEDX(0|#S|w@KN{!S?{j2}fceYWbKGRC{k$z`q z&psbM?7seJyDL84+nL||cIG>eot+)h%hpEv$b*4S0mt2f@b2md@~8cageT74AsD)D zvEccRqM|8!y1ipQyKT&&sAs6GrDc=0o4RdesK}FxrjZf#v`LLJHAK_W4LMImMa$An zV!EW-reqnE1`6}t#EbV7@DymGz@5VVogK?qqg=HuxTR z6Py9N!49wuYy~BtgD-+FfX{(@!TWaz!h7H%cn(ky1dG7c+XZ0?yaz6TQSb^l2)+z9 zfsMcfDXV?tO6aN9ef%r2A=>|ZxMtl z_%Zkv7y-jzGZ+AI5Cyk^UwudrCcy;w1$YOHfOFt1I0ZHW8GH#u!6TpxypQ(u2QUiG zgC_xNV>`g?gODu(A*N+0TAt`7YRK68;q&`4x@KA=Q;-ePTJ{s?Qh+574_THGM-qz~ zWQmLmsl=~*t|{3<3~JeiM(Sgw!Qr49$!L}94#~h^wN|adm(}pmMs8q{a1wTB@ zN*ZwNxtVLiyp`;{wAk#Uwk=Ww#dvmvpF z>2f#`ESCs|CS}>8L006gfYdZ8%c@NSmM(GKeSYSGkhLtBIFY^?KW$udDI=TKL%c#( z`pW(`E{~fB$HPBXldLRt#b{D_C_}l5$B=04# zA+0PFO1K@$3G(~Oon+~CcMH_%>hsU(spEQ29SiXU`D;yZx)B=Gv{j2&o020weogLM zL6)KOIVo5Zaf4S}mt9{OWiIm)GjnF#Yyg4ftO2ES&Jm@qCitK-Qx#2G=ZwKWGqlvD zUij!TlgW7+WR_a8qMBrSAes33Za&;heeLA-#3Jyik2{FWLuw zS6?_k{+&y(nc8us^28vw!8kSb)xpZi!O89WDkp|2PaT89UvA%d{b+Xn(BvDt{-Xm} zk8H_o*bWArp-#cGLe?_0Zq)L(ujKMlpGtEU>mB)mPcfh2Ul!YVohB*c^v{RPC zv0^u=_sttEA1)m$9>8u?=M{~vu187ky{C=XtfPWmRe{$BsWm%cypil9pzhYb90B2MR4s zEmhgd6r>_8>T_EeG@~0?k)NcZtYHVQF}G>j&gHPpH>;Q%B>r0}>AKor{J1KjjblqN zKS>bFoNa<$P}DUM8E4ELCu?~zXKRi=a>FfZ>6wj*xe%3$&7H848w1Vbd6#6yWJhTT^8PW~3Xr zv(Wot@t8tMA5{ieIQu6gDJHNO75Z#d)<`@V#dDG5bb}zrl(-Lq0Bdx8;Y9c9P=6}a z6^TYt>q#s@dLt>)i*ty?Ly1(RdrdTyAn`Sccq|zX2;oR-bvQx7kHr(=WRlrO`r^?@ zxTg)>raQW(C(^%)bgfB|{#c4cBYlxnxCbK^F8kXf{k;i9hx@|)=v}GRkt9jRdQ(Mcp|no(gX8YKMD1dmQWI*Eu<@yj3nF0I@~x0zpzdq!;vs<-V3|+=bs+ly9(anq+(2aZ`qlu0n(4$jWuiK<34-h?#ry|}8FoKqFm7A@ZYy}<5 z3}m!TCaPi*Q_oo&We6!}SPN$_Dwgi(jn|K&NzljG>>{hME@(2Jjdc+a_%3$>Z*D%b z#Kz`!W7h2h=;Ndt`Es5qn6mjv=d#X@nfmr^QfQG?{KEy?v;s71qmX_l12ML*z6<;6 z*_DW@S1jZ#ms3;)&BhFnkgD=0n#rbAY@dBLAh7p;ig)rK0QUZ0`+j~6@BMFsH^D35 z95?~WAPSa(R`4^d2MmENU^7?+ZU;YdeZI^5dWWZgr+}w`r+}w`r+}w`r+}w`r+}w` zr@+5Y0q5&b8fz%Ex8kPfoMM=kM2l>_A+ZCj} zgQevwDZyYLEyj_Hh((LRAZ&}0ttpS&R4Q2pfBlp;&;fkdK$>1dE>hB(u?>T2mXu?c zEJK>DsxW76MJ#+wUVN=``swkp!HKbv%5(cBF7K%hpWv5MyT-6ojb-cV;XQ1f?eJ)I zaKuf Date: Wed, 13 Nov 2024 16:12:28 +0800 Subject: [PATCH 6/7] remove unsed files --- 1.log | 317 ---------------------------------------------------------- 1 file changed, 317 deletions(-) delete mode 100644 1.log diff --git a/1.log b/1.log deleted file mode 100644 index 5aae88d72..000000000 --- a/1.log +++ /dev/null @@ -1,317 +0,0 @@ -build.sh debug -DENABLE_NOPIE=ON -DCONCURRENCY=ON --make -j4 -Build type: debug -create soft link for build_debug, linked by directory named build -cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --log-level=STATUS /root/oceanbase-source/miniob -DENABLE_NOPIE=ON -DCONCURRENCY=ON -DCMAKE_BUILD_TYPE=debug --- The C compiler identification is GNU 11.4.0 --- The CXX compiler identification is GNU 11.4.0 --- Detecting C compiler ABI info --- Detecting C compiler ABI info - done --- Check for working C compiler: /usr/bin/cc - skipped --- Detecting C compile features --- Detecting C compile features - done --- Detecting CXX compiler ABI info --- Detecting CXX compiler ABI info - done --- Check for working CXX compiler: /usr/bin/c++ - skipped --- Detecting CXX compile features --- Detecting CXX compile features - done --- This is Project source dir /root/oceanbase-source/miniob --- This is PROJECT_BINARY_DIR dir /root/oceanbase-source/miniob/build_debug --- Using build type: debug --- HOME dir: /root --- This is UNIX --- CONCURRENCY is ON --- CMAKE_CXX_COMPILER_ID is GNU --- Instrumenting with Address Sanitizer --- CMAKE_INSTALL_PREFIX has been set as /usr/local --- Install target dir is /usr/local --- CMAKE_COMMON_FLAGS is -Wall -Werror -Wno-error=sign-compare -DDEBUG -g -O0 -no-pie -DCONCURRENCY -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope --- CMAKE_CXX_FLAGS is -Wall -Werror -Wno-error=sign-compare -DDEBUG -g -O0 -no-pie -DCONCURRENCY -fno-omit-frame-pointer -fsanitize=address -fsanitize-address-use-after-scope --- This is PROJECT_BINARY_DIR dir /root/oceanbase-source/miniob/build_debug --- This is PROJECT_SOURCE_DIR dir /root/oceanbase-source/miniob --- This is CMAKE_CURRENT_SOURCE_DIR dir /root/oceanbase-source/miniob/src/observer --- Found libevent include directory: /usr/local/include --- Found libevent component: /usr/local/lib/libevent_core.a --- Found libevent component: /usr/local/lib/libevent_extra.a --- Found libevent component: /usr/local/lib/libevent_pthreads.a --- Found libevent 2.1.12 in /usr/local --- Looking for pthread.h --- Looking for pthread.h - found --- Performing Test CMAKE_HAVE_LIBC_PTHREAD --- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success --- Found Threads: TRUE --- Configuring done --- Generating done --- Build files have been written to: /root/oceanbase-source/miniob/build_debug -[ 0%] Building CXX object deps/common/CMakeFiles/common.dir/conf/ini.cpp.o -[ 1%] Building CXX object deps/common/CMakeFiles/common.dir/io/io.cpp.o -[ 1%] Building CXX object deps/common/CMakeFiles/common.dir/lang/bitmap.cpp.o -[ 2%] Building CXX object deps/common/CMakeFiles/common.dir/lang/comparator.cpp.o -[ 2%] Building CXX object deps/common/CMakeFiles/common.dir/lang/mutex.cpp.o -[ 2%] Building CXX object deps/common/CMakeFiles/common.dir/lang/serializer.cpp.o -[ 3%] Building CXX object deps/common/CMakeFiles/common.dir/lang/string.cpp.o -[ 3%] Building CXX object deps/common/CMakeFiles/common.dir/log/log.cpp.o -[ 4%] Building CXX object deps/common/CMakeFiles/common.dir/math/crc.cpp.o -[ 4%] Building CXX object deps/common/CMakeFiles/common.dir/math/md5.cpp.o -[ 4%] Building CXX object deps/common/CMakeFiles/common.dir/math/random_generator.cpp.o -[ 5%] Building CXX object deps/common/CMakeFiles/common.dir/math/regex.cpp.o -[ 5%] Building CXX object deps/common/CMakeFiles/common.dir/math/simd_util.cpp.o -[ 6%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/console_reporter.cpp.o -[ 6%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/histogram_snapshot.cpp.o -[ 7%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/log_reporter.cpp.o -[ 7%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/metrics.cpp.o -[ 7%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/metrics_registry.cpp.o -[ 8%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/reporter.cpp.o -[ 8%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/reservoir.cpp.o -[ 9%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/sampler.cpp.o -[ 9%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/timer_snapshot.cpp.o -[ 10%] Building CXX object deps/common/CMakeFiles/common.dir/metrics/uniform_reservoir.cpp.o -[ 10%] Building CXX object deps/common/CMakeFiles/common.dir/mm/mem_pool.cpp.o -[ 10%] Building CXX object deps/common/CMakeFiles/common.dir/os/os.cpp.o -[ 11%] Building CXX object deps/common/CMakeFiles/common.dir/os/path.cpp.o -[ 11%] Building CXX object deps/common/CMakeFiles/common.dir/os/pidfile.cpp.o -[ 12%] Building CXX object deps/common/CMakeFiles/common.dir/os/process.cpp.o -[ 12%] Building CXX object deps/common/CMakeFiles/common.dir/os/process_param.cpp.o -[ 13%] Building CXX object deps/common/CMakeFiles/common.dir/os/signal.cpp.o -[ 13%] Building CXX object deps/common/CMakeFiles/common.dir/thread/thread_pool_executor.cpp.o -[ 13%] Building CXX object deps/common/CMakeFiles/common.dir/thread/thread_util.cpp.o -[ 14%] Building CXX object deps/common/CMakeFiles/common.dir/time/datetime.cpp.o -[ 14%] Building CXX object deps/common/CMakeFiles/common.dir/time/timeout_info.cpp.o -[ 15%] Linking CXX static library ../../lib/libcommon.a -[ 15%] Built target common -[ 15%] Building CXX object src/obclient/CMakeFiles/obclient.dir/client.cpp.o -[ 16%] Building CXX object unittest/common/CMakeFiles/bitmap_test.dir/bitmap_test.cpp.o -[ 16%] Building CXX object unittest/common/CMakeFiles/integer_generator_test.dir/integer_generator_test.cpp.o -[ 16%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/lex_sql.cpp.o -[ 16%] Linking CXX executable ../../bin/obclient -[ 16%] Built target obclient -[ 17%] Building CXX object unittest/common/CMakeFiles/log_test.dir/log_test.cpp.o -[ 17%] Linking CXX executable ../../bin/bitmap_test -[ 17%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/yacc_sql.cpp.o -[ 17%] Built target bitmap_test -[ 18%] Building CXX object unittest/common/CMakeFiles/lower_bound_test.dir/lower_bound_test.cpp.o -[ 19%] Linking CXX executable ../../bin/integer_generator_test -[ 19%] Built target integer_generator_test -[ 19%] Building CXX object unittest/common/CMakeFiles/md5_test.dir/md5_test.cpp.o -[ 20%] Linking CXX executable ../../bin/md5_test -[ 20%] Built target md5_test -[ 20%] Building CXX object unittest/common/CMakeFiles/mem_pool_test.dir/mem_pool_test.cpp.o -[ 20%] Linking CXX executable ../../bin/log_test -[ 20%] Built target log_test -[ 21%] Building CXX object unittest/common/CMakeFiles/pidfile_test.dir/pidfile_test.cpp.o -[ 22%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/global_context.cpp.o -[ 22%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/init.cpp.o -[ 22%] Linking CXX executable ../../bin/lower_bound_test -[ 22%] Built target lower_bound_test -[ 22%] Building CXX object unittest/common/CMakeFiles/serializer_test.dir/serializer_test.cpp.o -[ 23%] Linking CXX executable ../../bin/mem_pool_test -[ 23%] Built target mem_pool_test -[ 23%] Building CXX object unittest/common/CMakeFiles/simple_queue_test.dir/simple_queue_test.cpp.o -[ 23%] Linking CXX executable ../../bin/pidfile_test -[ 23%] Built target pidfile_test -[ 23%] Building CXX object unittest/common/CMakeFiles/thread_pool_executor_test.dir/thread_pool_executor_test.cpp.o -[ 24%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/rc.cpp.o -[ 24%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/attr_type.cpp.o -[ 25%] Linking CXX executable ../../bin/serializer_test -[ 25%] Built target serializer_test -[ 26%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/char_type.cpp.o -[ 27%] Linking CXX executable ../../bin/simple_queue_test -[ 27%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/data_type.cpp.o -[ 27%] Built target simple_queue_test -[ 27%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/float_type.cpp.o -[ 28%] Linking CXX executable ../../bin/thread_pool_executor_test -[ 28%] Built target thread_pool_executor_test -[ 29%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/type/integer_type.cpp.o -[ 29%] Building CXX object src/observer/CMakeFiles/observer_static.dir/common/value.cpp.o -[ 30%] Building CXX object src/observer/CMakeFiles/observer_static.dir/event/session_event.cpp.o -[ 30%] Building CXX object src/observer/CMakeFiles/observer_static.dir/event/sql_debug.cpp.o -[ 31%] Building CXX object src/observer/CMakeFiles/observer_static.dir/event/sql_event.cpp.o -[ 31%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/buffered_writer.cpp.o -[ 31%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/cli_communicator.cpp.o -[ 32%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/communicator.cpp.o -[ 32%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/java_thread_pool_thread_handler.cpp.o -[ 33%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/mysql_communicator.cpp.o -[ 33%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/one_thread_per_connection_thread_handler.cpp.o -[ 34%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/plain_communicator.cpp.o -[ 34%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/ring_buffer.cpp.o -[ 34%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/server.cpp.o -[ 35%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/sql_task_handler.cpp.o -[ 35%] Building CXX object src/observer/CMakeFiles/observer_static.dir/net/thread_handler.cpp.o -[ 36%] Building CXX object src/observer/CMakeFiles/observer_static.dir/session/session.cpp.o -[ 36%] Building CXX object src/observer/CMakeFiles/observer_static.dir/session/session_stage.cpp.o -[ 37%] Building CXX object src/observer/CMakeFiles/observer_static.dir/session/thread_data.cpp.o -[ 37%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/command_executor.cpp.o -[ 37%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/create_index_executor.cpp.o -[ 38%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/create_table_executor.cpp.o -[ 38%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/desc_table_executor.cpp.o -[ 39%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/execute_stage.cpp.o -[ 39%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/load_data_executor.cpp.o -[ 39%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/set_variable_executor.cpp.o -[ 40%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/executor/sql_result.cpp.o -[ 40%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/aggregate_hash_table.cpp.o -[ 41%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/aggregate_state.cpp.o -[ 41%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/aggregator.cpp.o -[ 42%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/composite_tuple.cpp.o -[ 42%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/expression.cpp.o -[ 42%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/expression_iterator.cpp.o -[ 43%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/expr/tuple_cell.cpp.o -[ 43%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/aggregate_vec_physical_operator.cpp.o -[ 44%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/delete_logical_operator.cpp.o -[ 44%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/delete_physical_operator.cpp.o -[ 45%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/explain_physical_operator.cpp.o -[ 45%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/expr_vec_physical_operator.cpp.o -[ 45%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/group_by_logical_operator.cpp.o -[ 46%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/group_by_physical_operator.cpp.o -[ 46%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/group_by_vec_physical_operator.cpp.o -[ 47%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/hash_group_by_physical_operator.cpp.o -[ 47%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/index_scan_physical_operator.cpp.o -[ 48%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/insert_logical_operator.cpp.o -[ 48%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/insert_physical_operator.cpp.o -[ 48%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/join_physical_operator.cpp.o -[ 49%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/logical_operator.cpp.o -[ 49%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/physical_operator.cpp.o -[ 50%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/predicate_logical_operator.cpp.o -[ 50%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/predicate_physical_operator.cpp.o -[ 50%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/project_logical_operator.cpp.o -[ 51%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/project_physical_operator.cpp.o -[ 51%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/project_vec_physical_operator.cpp.o -[ 52%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/scalar_group_by_physical_operator.cpp.o -[ 52%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/table_get_logical_operator.cpp.o -[ 53%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/table_scan_physical_operator.cpp.o -[ 53%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/operator/table_scan_vec_physical_operator.cpp.o -[ 53%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/comparison_simplification_rule.cpp.o -[ 54%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/conjunction_simplification_rule.cpp.o -[ 54%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/expression_rewriter.cpp.o -[ 55%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/logical_plan_generator.cpp.o -[ 55%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/optimize_stage.cpp.o -[ 56%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/physical_plan_generator.cpp.o -[ 56%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/predicate_pushdown_rewriter.cpp.o -[ 56%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/predicate_rewrite.cpp.o -[ 57%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/optimizer/rewriter.cpp.o -[ 57%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/expression_binder.cpp.o -[ 58%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/parse.cpp.o -[ 58%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/parse_stage.cpp.o -[ 59%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/parser/resolve_stage.cpp.o -[ 59%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/plan_cache/plan_cache_stage.cpp.o -[ 59%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/query_cache/query_cache_stage.cpp.o -[ 60%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/create_index_stmt.cpp.o -[ 60%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/create_table_stmt.cpp.o -[ 61%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/delete_stmt.cpp.o -[ 61%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/desc_table_stmt.cpp.o -[ 62%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/explain_stmt.cpp.o -[ 62%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/filter_stmt.cpp.o -[ 62%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/insert_stmt.cpp.o -[ 63%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/load_data_stmt.cpp.o -[ 63%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/select_stmt.cpp.o -[ 64%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/stmt.cpp.o -[ 64%] Building CXX object src/observer/CMakeFiles/observer_static.dir/sql/stmt/update_stmt.cpp.o -[ 64%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/buffer_pool_log.cpp.o -[ 65%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/disk_buffer_pool.cpp.o -[ 65%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/double_write_buffer.cpp.o -[ 66%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/buffer/frame.cpp.o -[ 66%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/disk_log_handler.cpp.o -[ 67%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/integrated_log_replayer.cpp.o -[ 67%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_buffer.cpp.o -[ 67%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_entry.cpp.o -[ 68%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_file.cpp.o -[ 68%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/clog/log_handler.cpp.o -[ 69%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/chunk.cpp.o -[ 69%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/column.cpp.o -[ 70%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/condition_filter.cpp.o -[ 70%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/common/meta_util.cpp.o -[ 70%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/db/db.cpp.o -[ 71%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/default/default_handler.cpp.o -[ 71%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/field/field.cpp.o -[ 72%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/field/field_meta.cpp.o -[ 72%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree.cpp.o -[ 73%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree_index.cpp.o -[ 73%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree_log.cpp.o -[ 73%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/bplus_tree_log_entry.cpp.o -[ 74%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/index.cpp.o -[ 74%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/index_meta.cpp.o -[ 75%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/index/latch_memo.cpp.o -[ 75%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/persist/persist.cpp.o -[ 75%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/record/record_log.cpp.o -[ 76%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/record/record_manager.cpp.o -[ 76%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/table/table.cpp.o -[ 77%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/table/table_meta.cpp.o -[ 77%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/mvcc_trx.cpp.o -[ 78%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/mvcc_trx_log.cpp.o -[ 78%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/trx.cpp.o -[ 78%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/vacuous_trx.cpp.o -[ 79%] Linking CXX static library ../../lib/libobserver.a -[ 80%] Built target observer_static -[ 81%] Building CXX object test/perf/CMakeFiles/client_performance_test.dir/client_performance_test.cpp.o -[ 82%] Building CXX object src/observer/CMakeFiles/observer.dir/main.cpp.o -[ 82%] Building CXX object tools/CMakeFiles/clog_dump.dir/clog_dump.cpp.o -[ 82%] Building CXX object unittest/observer/CMakeFiles/aggregate_hash_table_test.dir/aggregate_hash_table_test.cpp.o -[ 82%] Linking CXX executable ../../bin/client_performance_test -[ 82%] Linking CXX executable ../../bin/observer -[ 82%] Built target client_performance_test -[ 83%] Building CXX object unittest/observer/CMakeFiles/arithmetic_operator_test.dir/arithmetic_operator_test.cpp.o -[ 84%] Linking CXX executable ../bin/clog_dump -[ 84%] Linking CXX executable ../../bin/aggregate_hash_table_test -[ 84%] Built target clog_dump -[ 84%] Building CXX object unittest/observer/CMakeFiles/bp_manager_test.dir/bp_manager_test.cpp.o -[ 84%] Built target observer -[ 84%] Building CXX object unittest/observer/CMakeFiles/bplus_tree_log_entry_test.dir/bplus_tree_log_entry_test.cpp.o -[ 84%] Built target aggregate_hash_table_test -[ 84%] Building CXX object unittest/observer/CMakeFiles/bplus_tree_log_test.dir/bplus_tree_log_test.cpp.o -[ 84%] Linking CXX executable ../../bin/arithmetic_operator_test -[ 84%] Built target arithmetic_operator_test -[ 84%] Building CXX object unittest/observer/CMakeFiles/bplus_tree_test.dir/bplus_tree_test.cpp.o -[ 85%] Linking CXX executable ../../bin/bp_manager_test -[ 85%] Built target bp_manager_test -[ 86%] Linking CXX executable ../../bin/bplus_tree_log_entry_test -[ 87%] Building CXX object unittest/observer/CMakeFiles/buffer_pool_log_test.dir/buffer_pool_log_test.cpp.o -[ 87%] Built target bplus_tree_log_entry_test -[ 88%] Building CXX object unittest/observer/CMakeFiles/chunk_test.dir/chunk_test.cpp.o -[ 89%] Linking CXX executable ../../bin/bplus_tree_log_test -[ 89%] Linking CXX executable ../../bin/bplus_tree_test -[ 89%] Built target bplus_tree_log_test -[ 89%] Building CXX object unittest/observer/CMakeFiles/composite_tuple_test.dir/composite_tuple_test.cpp.o -[ 89%] Linking CXX executable ../../bin/chunk_test -[ 89%] Built target bplus_tree_test -[ 89%] Building CXX object unittest/observer/CMakeFiles/disk_buffer_pool_test.dir/disk_buffer_pool_test.cpp.o -[ 89%] Built target chunk_test -[ 90%] Building CXX object unittest/observer/CMakeFiles/disk_log_handler_test.dir/disk_log_handler_test.cpp.o -[ 90%] Linking CXX executable ../../bin/buffer_pool_log_test -[ 90%] Built target buffer_pool_log_test -[ 91%] Building CXX object unittest/observer/CMakeFiles/double_write_buffer_test.dir/double_write_buffer_test.cpp.o -[ 92%] Linking CXX executable ../../bin/composite_tuple_test -[ 92%] Linking CXX executable ../../bin/disk_buffer_pool_test -[ 92%] Built target composite_tuple_test -[ 92%] Building CXX object unittest/observer/CMakeFiles/expression_test.dir/expression_test.cpp.o -[ 92%] Linking CXX executable ../../bin/disk_log_handler_test -[ 92%] Built target disk_buffer_pool_test -[ 92%] Building CXX object unittest/observer/CMakeFiles/log_buffer_test.dir/log_buffer_test.cpp.o -[ 92%] Built target disk_log_handler_test -[ 92%] Building CXX object unittest/observer/CMakeFiles/log_entry_test.dir/log_entry_test.cpp.o -[ 92%] Linking CXX executable ../../bin/double_write_buffer_test -[ 93%] Linking CXX executable ../../bin/log_buffer_test -[ 93%] Linking CXX executable ../../bin/log_entry_test -[ 93%] Built target double_write_buffer_test -[ 94%] Linking CXX executable ../../bin/expression_test -[ 95%] Building CXX object unittest/observer/CMakeFiles/log_file_test.dir/log_file_test.cpp.o -[ 95%] Built target log_buffer_test -[ 95%] Built target log_entry_test -[ 95%] Building CXX object unittest/observer/CMakeFiles/mvcc_trx_log_test.dir/mvcc_trx_log_test.cpp.o -[ 95%] Building CXX object unittest/observer/CMakeFiles/parser_test.dir/parser_test.cpp.o -[ 95%] Built target expression_test -[ 95%] Building CXX object unittest/observer/CMakeFiles/pax_storage_test.dir/pax_storage_test.cpp.o -[ 96%] Linking CXX executable ../../bin/parser_test -[ 96%] Linking CXX executable ../../bin/log_file_test -[ 96%] Built target log_file_test -[ 96%] Built target parser_test -[ 96%] Building CXX object unittest/observer/CMakeFiles/persist_test.dir/persist_test.cpp.o -[ 97%] Building CXX object unittest/observer/CMakeFiles/record_manager_test.dir/record_manager_test.cpp.o -[ 98%] Linking CXX executable ../../bin/mvcc_trx_log_test -[ 99%] Linking CXX executable ../../bin/pax_storage_test -[ 99%] Linking CXX executable ../../bin/persist_test -[ 99%] Built target mvcc_trx_log_test -[100%] Building CXX object unittest/observer/CMakeFiles/ring_buffer_test.dir/ring_buffer_test.cpp.o -[100%] Built target pax_storage_test -[100%] Built target persist_test -[100%] Linking CXX executable ../../bin/record_manager_test -[100%] Linking CXX executable ../../bin/ring_buffer_test -[100%] Built target record_manager_test -[100%] Built target ring_buffer_test From de707bc54ecf55de34d1f59491d07855e077f0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=90=E6=9D=A5?= Date: Wed, 13 Nov 2024 16:13:44 +0800 Subject: [PATCH 7/7] fix --- CMakeLists.txt | 2 +- deps/common/log/log.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e44a119c..4e7dfbb7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,7 +163,7 @@ IF(WITH_UNIT_TESTS) ENDIF (ENABLE_COVERAGE) enable_testing() ENDIF(WITH_UNIT_TESTS) -message(STATUS "CMAKE_COMMON_FLAGS is " ${CMAKE_COMMON_FLAGS}) + SET(CMAKE_CXX_FLAGS ${CMAKE_COMMON_FLAGS}) SET(CMAKE_C_FLAGS ${CMAKE_COMMON_FLAGS}) diff --git a/deps/common/log/log.cpp b/deps/common/log/log.cpp index 26d4032cc..cc1d3c057 100644 --- a/deps/common/log/log.cpp +++ b/deps/common/log/log.cpp @@ -349,7 +349,7 @@ int LoggerFactory::init_default( return init(log_file, &g_log, log_level, console_level, rotate_type); } -#define LBT_SYMBOLS + const char *lbt() { constexpr int buffer_size = 100;