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 000000000..8858137b2 Binary files /dev/null and b/src/observer/storage/index/.bplus_tree.h.swp differ