This is an automated email from the ASF dual-hosted git repository. aleksraiden pushed a change to branch aleksraiden-patch-golang-lint-2.0 in repository https://gitbox.apache.org/repos/asf/kvrocks.git
from c7accac2a Update x.py add 3e2e7744d chore(deps): bump Google Snappy to v1.2.2 (#2854) add 18bae5f66 chore(deps): bump oneTBB to 2022.1.0 (#2855) add a83090adc chore(ci): bump crate-ci/typos to v1.31.0 (#2857) add 077b41fae chore: set CMAKE_POLICY_VERSION_MINIMUM & pin the version of dorny/paths-filter (#2870) add 5c3082875 ci: migrate macos-13 build to macos-14 (#2876) add 89991ef86 fix(bloom): invalid access in GetSelf (#2867) add 2db5d86b6 chore(deps): bump jsoncons to v1.3.1 (#2875) add 2b383c328 chore(deps): bump cpptrace to v0.8.3 (#2872) add 5edecd164 chore(deps): bump rocksdb to v10.0.1 (#2864) add 6fcc38fc8 fix(protocol): inline mode should allow the quoted string (#2873) add 8892e1ae4 fix: typo in compaction checker (#2879) add 18e6674ee fix(tdigest): fix centroid encoding overwrite for same mean (#2878) add 76a21bcb4 feat(storage): support for sideloading SSTs (#2845) add a71131ffb chore: clean up cgo flags and conditionally compile grocksdb (#2885) add e4d035214 feat(search): add debug mode for FT.EXPLAINSQL (#2886) add 7770f13f3 refactor: replace glog with spdlog (#2881) add 37532fde8 chore(log): replace logging calls in `cli/*` and `common/*` (#2888) add 96ddf41de chore(log): replace logging calls in `utils/kvrocks2redis` (#2890) add 98242c0d1 chore(log): replace logging calls in `config/*` (#2891) add 5f8e94bd3 chore(log): add unreachable() based on the current logging infra (#2893) add f420bd071 chore(log): replace logging calls in `types/*` (#2892) add 5b3d89a2d chore(ci): mark the branch 2.12 as a protected branch (#2895) add 78d38ab21 fix(ci): use CMAKE 3.31 instead of 4.0 in macOS (#2899) add 5333c346c fix(stream): should return an empty string instead of nil in XREAD/XRANGE (#2897) add 5c73de213 chore(log): remove the DCHECK macro (#2896) add 858d7f2ae chore(log): replace logging calls in `cluster/*` (#2894) add 1c59c909c chore: fix & cleanup RESP error messages (#2902) add b4b14f0b4 feat(script): pass storage context through scripting (#2901) add 36a5776a4 chore(log): replace logging calls in commands/* (#2905) add c4d9ce052 fix(core): potential data race between blocking command and transaction (#2910) add 009a1bd80 chore(util): add prefix/suffix string util functions (#2911) add efb4b4c20 fix(ci): add workaround for rocksdb compiling on arch linux gcc 15 (#2929) add 4ab849195 chore(deps): bump Google test to v1.17.0 (#2913) add 9117d220a chore(ci): update crate-ci/typos action to v1.32.0 (#2926) add aec1e528c chore(deps): bump fmtlib to 11.2.0 (#2925) add 8c92c97b0 chore(log): replace logging calls in server/* (#2928) add 1ee52eb3a chore(log): replace logging calls in storage/* (#2909) add a352409db chore(log): replace logging calls in storage/rdb (#2936) add 496f9d4ca fix(zset): wrong RESP reply in ZRANDMEMBER and ZMSCORE command (#2937) add 2b290b3cf chore(tests): remove SST load command test and grocksdb (#2942) add e9591f993 feat(logs): enable saving the slow logs into the file (#2903) add a87f44e89 chore(deps): bump rocksdb to v10.2.1 (#2912) add 6719b6071 chore(search): rename TopNSort to TopN (#2930) add 5d71a8178 feat(cmds): add support for CLIENT REPLY subcommand (#2943) add 7851bf308 chore(deps): bump spdlog to 1.15.3 (#2951) add 5d4141f9a ci: add a clang build job in ubuntu ARM runner (#2952) add 2923a89ba chore(README): refine the wording for supported platform, cluster and license (#2953) add 8206262f6 fix(zset): crash in ZRANDMEMBER for non-existent keys (#2982) add 86df0a67f feat(tdigest): Add support for QUANTILE command (#2849) add adbf8c3ff fix(zset): wrong RESP reply in ZMSCORE command for non-existent key (#2983) add ef820b5ef fix(list): dst-key's version is 0 in rpoplpush cmd for non-existent dst-key (#2985) add ff9ecad7d chore(config): mark the configuration `rocksdb.row_cache_size` as deprecated (#2989) add fab88919a chore(config): change `raw-key-value` as the default cluster migration type (#2990) add fa5f77f15 chore: remove ghproxy option in x.py (#2991) add 896d31984 fix(stream): ensure XINFO STREAM command has enough arguments (#2994) add 2cd7e1437 fix(search): missing the indexing phase for scripting (#2998) add 4d9c51696 chore(deps): update go deps (#2999) add 006daf0c3 fix(txn): wrong RESP reply for EXEC if error occurred in commit (#2996) add db08209e0 build(jemalloc): enable the profiling option when compiling the jemalloc (#3001) add ac66ad5a4 build: replace zlib with zlib-ng for rocksdb compression (#3003) add ed2b6a827 feat(command): add a new command to enable/disable/dump the memory profiling (#3007) add 644c6b766 chore(Dockerfile): enable the jemalloc option but no active (#3011) add 15592c4d7 fix(event): should log reason string instead of id in EventListener::OnFlushCompleted (#3012) add 7846492cb feat(event): add logging for blob file creation and deletion (#3014) add 065d4cfbf feat(config): allow to configure the rocksdb.min_write_buffer_number_to_merge (#3016) add 398b94794 fix(storage): don't try to commit empty write batches (#3015) add 14abba473 fix: Unset change_level if level_compaction_dynamic_level_bytes is enabled (#3020) add 8a50e51c5 fix(core): remove extraneous RocksDB::CancelAllBackgroundWork calls (#3017) (#3019) add 9b04a87f8 chore(deps): bump cpptrace to v1.0.0 (#3025) add 110fdf6e5 feat(command): add redis command to flush memtables (#3022) add fb8f11686 fix(core): avoid hardcoding RocksDB property strings (#3029) add 6a1e23bef feat(storage): allow to enable the blob cache (#3027) add 2f2c11d0b fix(config): Parse rocksdb.max_bytes_for_level_base as uint64_t (#3032) add f4664f88a feat(search): accept DIALECT option in FT.SEARCH (#3037) add 7250ebe99 chore(deps): bump cpptrace to v1.0.2 (#3039) add 859953b84 feat(config): allow to configure the rocksdb.sst_file_delete_rate_bytes_per_sec (#3040) add 6d726cc8d chore(deps): bump oneTBB to v2022.2.0 (#3043) add 28d95a39b chore(ci): bump crate-ci/typos to 1.34.0 (#3042) add 49315f56e fix(config): Setting rocksdb.level0_slowdown_writes_trigger to 0 disables it (#3034) add 7aaba5c79 chore(search): use c++ attributes gnu::may_alias (#3045) add 2f3cdf7c3 chore(deps): bump rocksdb v10.4.2 (#3050) add fe8b4ccac feat(command): add new command to flush the block cache (#3049) add 4f739ed2a Merge branch 'unstable' into aleksraiden-patch-golang-lint-2.0 No new revisions were added by this update. Summary of changes: .asf.yaml | 1 + .github/workflows/kvrocks.yaml | 61 +- CMakeLists.txt | 10 +- Dockerfile | 2 + NOTICE | 4 +- README.md | 11 +- cmake/cpptrace.cmake | 4 +- cmake/fmt.cmake | 4 +- cmake/glog.cmake | 31 - cmake/gtest.cmake | 4 +- cmake/jemalloc.cmake | 10 +- cmake/jsoncons.cmake | 4 +- cmake/modules/FindZLIB.cmake | 4 +- cmake/rocksdb.cmake | 4 +- cmake/snappy.cmake | 4 +- cmake/{pegtl.cmake => spdlog.cmake} | 10 +- cmake/tbb.cmake | 4 +- cmake/zlib.cmake | 12 +- kvrocks.conf | 69 ++- licenses/LICENSE-glog.txt | 28 - licenses/{LICENSE-lua.txt => LICENSE-spdlog.txt} | 8 +- licenses/{LICENSE-zlib.txt => LICENSE-zlib-ng.txt} | 14 +- src/cli/daemon_util.h | 16 +- src/cli/main.cc | 78 ++- src/cli/signal_util.h | 18 +- src/cli/version_util.h | 13 +- src/cluster/cluster.cc | 27 +- src/cluster/replication.cc | 156 +++-- src/cluster/slot_import.h | 3 +- src/cluster/slot_migrate.cc | 154 +++-- src/cluster/slot_migrate.h | 2 +- src/cluster/sync_migrate_context.cc | 3 +- src/cluster/sync_migrate_context.h | 2 +- src/commands/blocking_commander.h | 10 +- src/commands/cmd_function.cc | 11 +- src/commands/cmd_hll.cc | 6 +- src/commands/cmd_json.cc | 2 +- src/commands/cmd_pubsub.cc | 2 +- src/commands/cmd_replication.cc | 37 +- src/commands/cmd_script.cc | 8 +- src/commands/cmd_search.cc | 26 +- src/commands/cmd_server.cc | 241 +++++++- src/commands/cmd_stream.cc | 26 +- src/commands/cmd_tdigest.cc | 39 ++ src/commands/cmd_txn.cc | 15 +- src/commands/cmd_zset.cc | 6 +- src/commands/command_parser.h | 2 +- src/commands/commander.h | 2 +- src/common/bitfield_util.cc | 8 +- src/common/logging.h | 85 +++ src/common/rdb_stream.cc | 2 +- src/common/status.h | 2 +- src/common/string_util.cc | 116 +++- src/common/string_util.h | 7 +- src/common/task_runner.cc | 2 +- src/config/config.cc | 687 +++++++++++---------- src/config/config.h | 22 +- src/search/executors/filter_executor.h | 5 +- .../{topn_sort_executor.h => topn_executor.h} | 18 +- src/search/index_manager.cc | 14 + src/search/index_manager.h | 2 + src/search/indexer.cc | 3 +- src/search/ir_iterator.h | 2 +- src/search/ir_pass.h | 9 +- src/search/ir_plan.h | 14 +- src/search/passes/cost_model.h | 3 +- src/search/passes/index_selection.h | 7 +- src/search/passes/interval_analysis.h | 3 + src/search/passes/lower_to_plan.h | 2 + src/search/passes/manager.h | 9 +- src/search/passes/push_down_not_expr.h | 2 + src/search/passes/recorder.h | 15 +- src/search/passes/simplify_and_or_expr.h | 2 + src/search/passes/simplify_boolean.h | 2 + src/search/passes/sort_limit_fuse.h | 4 +- src/search/passes/sort_limit_to_knn.h | 2 + src/search/plan_executor.cc | 10 +- src/server/memory_profiler.cc | 135 ++++ src/{version.h.in => server/memory_profiler.h} | 10 +- src/server/redis_connection.cc | 58 +- src/server/redis_connection.h | 15 + src/server/redis_request.cc | 10 +- src/server/server.cc | 134 ++-- src/server/server.h | 9 + src/server/tls_util.cc | 22 +- src/server/worker.cc | 40 +- src/stats/log_collector.cc | 25 + src/stats/log_collector.h | 6 + src/storage/batch_debugger.h | 2 +- src/storage/batch_extractor.cc | 60 +- src/storage/batch_indexer.h | 6 +- src/storage/compact_filter.cc | 19 +- src/storage/compaction_checker.cc | 33 +- src/storage/event_listener.cc | 119 ++-- src/storage/event_listener.h | 8 +- src/storage/iterator.h | 4 +- src/storage/rdb/rdb.cc | 43 +- src/storage/scripting.cc | 62 +- src/storage/scripting.h | 31 +- src/storage/storage.cc | 226 ++++--- src/storage/storage.h | 13 +- src/types/hyperloglog.cc | 4 +- src/types/redis_bitmap.cc | 6 +- src/types/redis_bitmap_string.cc | 5 +- src/types/redis_bloom_chain.cc | 4 +- src/types/redis_hash.cc | 6 +- src/types/redis_hyperloglog.cc | 16 +- src/types/redis_list.cc | 2 +- src/types/redis_set.cc | 2 +- src/types/redis_tdigest.cc | 37 +- src/types/redis_tdigest.h | 5 +- src/types/redis_zset.cc | 2 +- src/types/sample_helper.h | 2 +- src/types/tdigest.cc | 10 +- src/types/tdigest.h | 4 +- tests/cppunit/config_test.cc | 45 ++ tests/cppunit/ir_pass_test.cc | 4 +- tests/cppunit/main.cc | 2 - tests/cppunit/plan_executor_test.cc | 6 +- tests/cppunit/storage_test.cc | 45 ++ tests/cppunit/string_util_test.cc | 78 ++- tests/cppunit/types/bloom_chain_test.cc | 34 + tests/cppunit/types/tdigest_test.cc | 68 +- tests/gocase/go.mod | 14 +- tests/gocase/go.sum | 14 + .../integration/slotmigrate/slotmigrate_test.go | 45 +- tests/gocase/unit/config/config_test.go | 24 + tests/gocase/unit/connection/connection_test.go | 1 + .../unit/flushblockcache/flushblockcache_test.go | 82 +++ .../unit/flushmemtable/flushmemtable_test.go | 106 ++++ .../unit/introspection/introspection_test.go | 34 + tests/gocase/unit/kprofile/kprofile_test.go | 105 ++++ tests/gocase/unit/log/logclean_test.go | 4 +- tests/gocase/unit/protocol/protocol_test.go | 20 + tests/gocase/unit/pubsub/pubsubshard_test.go | 2 +- tests/gocase/unit/type/list/list_test.go | 153 +++++ tests/gocase/unit/type/stream/stream_test.go | 20 + tests/gocase/unit/type/tdigest/tdigest_test.go | 105 ++++ tests/gocase/unit/type/zset/zset_test.go | 26 + tests/gocase/util/server.go | 4 +- tests/gocase/util/tcp_client.go | 10 + utils/kvrocks2redis/config.cc | 5 +- utils/kvrocks2redis/config.h | 3 +- utils/kvrocks2redis/main.cc | 34 +- utils/kvrocks2redis/parser.cc | 4 +- utils/kvrocks2redis/redis_writer.cc | 33 +- utils/kvrocks2redis/redis_writer.h | 3 +- utils/kvrocks2redis/sync.cc | 29 +- x.py | 6 +- 149 files changed, 3272 insertions(+), 1358 deletions(-) delete mode 100644 cmake/glog.cmake copy cmake/{pegtl.cmake => spdlog.cmake} (82%) delete mode 100644 licenses/LICENSE-glog.txt copy licenses/{LICENSE-lua.txt => LICENSE-spdlog.txt} (77%) rename licenses/{LICENSE-zlib.txt => LICENSE-zlib-ng.txt} (59%) create mode 100644 src/common/logging.h rename src/search/executors/{topn_sort_executor.h => topn_executor.h} (83%) create mode 100644 src/server/memory_profiler.cc copy src/{version.h.in => server/memory_profiler.h} (79%) create mode 100644 tests/gocase/unit/flushblockcache/flushblockcache_test.go create mode 100644 tests/gocase/unit/flushmemtable/flushmemtable_test.go create mode 100644 tests/gocase/unit/kprofile/kprofile_test.go