Skip to content

Commit 34a06a5

Browse files
committed
Merge remote-tracking branch 'origin/main' into retension_period
2 parents 74af600 + 759f3b0 commit 34a06a5

File tree

90 files changed

+2372
-3311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+2372
-3311
lines changed

components/clp-package-utils/clp_package_utils/scripts/start_clp.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ def start_webui(
909909
"MongoDbStreamFilesCollectionName": clp_config.results_cache.stream_collection_name,
910910
"ClientDir": str(container_webui_dir / "client"),
911911
"LogViewerDir": str(container_webui_dir / "yscope-log-viewer"),
912-
"StreamFilesDir": str(container_clp_config.stream_output.get_directory()),
913912
"StreamTargetUncompressedSize": container_clp_config.stream_output.target_uncompressed_size,
914913
}
915914

@@ -918,7 +917,7 @@ def start_webui(
918917
stream_storage = clp_config.stream_output.storage
919918
if StorageType.S3 == stream_storage.type:
920919
s3_config = stream_storage.s3_config
921-
920+
server_settings_json_updates["StreamFilesDir"] = None
922921
server_settings_json_updates["StreamFilesS3Region"] = s3_config.region_code
923922
server_settings_json_updates["StreamFilesS3PathPrefix"] = (
924923
f"{s3_config.bucket}/{s3_config.key_prefix}"
@@ -929,6 +928,9 @@ def start_webui(
929928
else:
930929
server_settings_json_updates["StreamFilesS3Profile"] = None
931930
elif StorageType.FS == stream_storage.type:
931+
server_settings_json_updates["StreamFilesDir"] = str(
932+
container_clp_config.stream_output.get_directory()
933+
)
932934
server_settings_json_updates["StreamFilesS3Region"] = None
933935
server_settings_json_updates["StreamFilesS3PathPrefix"] = None
934936
server_settings_json_updates["StreamFilesS3Profile"] = None
@@ -961,7 +963,6 @@ def start_webui(
961963
]
962964
necessary_mounts = [
963965
mounts.clp_home,
964-
mounts.stream_output_dir,
965966
]
966967
if StorageType.S3 == stream_storage.type:
967968
auth = stream_storage.s3_config.aws_authentication
@@ -977,6 +978,9 @@ def start_webui(
977978
necessary_mounts.append(mounts.aws_config_dir)
978979
if aws_env_vars:
979980
necessary_env_vars.extend(aws_env_vars)
981+
elif StorageType.FS == stream_storage.type:
982+
necessary_mounts.append(mounts.stream_output_dir)
983+
980984
append_docker_options(container_cmd, necessary_mounts, necessary_env_vars)
981985
container_cmd.append(clp_config.execution_container)
982986

components/core/CMakeLists.txt

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,14 @@ if(CLP_NEED_YSTDLIB)
297297
add_subdirectory("${CLP_YSTDLIB_SOURCE_DIRECTORY}" "${CMAKE_BINARY_DIR}/ystdlib" EXCLUDE_FROM_ALL)
298298
endif()
299299

300-
# Find and setup ZStd Library
301300
if(CLP_NEED_ZSTD)
301+
# v1.4.8 is the lowest version available in the package managers of the OSes we support.
302+
find_package(zstd 1.4.8 REQUIRED)
303+
message(STATUS "Found zstd ${zstd_VERSION}")
302304
if(CLP_USE_STATIC_LIBS)
303-
set(ZStd_USE_STATIC_LIBS ON)
304-
endif()
305-
find_package(ZStd 1.4.4 REQUIRED)
306-
if(ZStd_FOUND)
307-
message(STATUS "Found ZStd ${ZStd_VERSION}")
305+
set(zstd_TARGET zstd::libzstd_static)
308306
else()
309-
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for ZStd")
307+
set(zstd_TARGET zstd::libzstd_shared)
310308
endif()
311309
endif()
312310

@@ -402,12 +400,6 @@ set(SOURCE_FILES_clp_s_unitTest
402400
src/clp_s/SchemaWriter.hpp
403401
src/clp_s/search/AddTimestampConditions.cpp
404402
src/clp_s/search/AddTimestampConditions.hpp
405-
src/clp_s/search/clp_search/EncodedVariableInterpreter.cpp
406-
src/clp_s/search/clp_search/EncodedVariableInterpreter.hpp
407-
src/clp_s/search/clp_search/Grep.cpp
408-
src/clp_s/search/clp_search/Grep.hpp
409-
src/clp_s/search/clp_search/Query.cpp
410-
src/clp_s/search/clp_search/Query.hpp
411403
src/clp_s/search/EvaluateRangeIndexFilters.cpp
412404
src/clp_s/search/EvaluateRangeIndexFilters.hpp
413405
src/clp_s/search/EvaluateTimestampIndex.cpp
@@ -429,10 +421,6 @@ set(SOURCE_FILES_clp_s_unitTest
429421
src/clp_s/TimestampEntry.hpp
430422
src/clp_s/Utils.cpp
431423
src/clp_s/Utils.hpp
432-
src/clp_s/VariableDecoder.cpp
433-
src/clp_s/VariableDecoder.hpp
434-
src/clp_s/VariableEncoder.cpp
435-
src/clp_s/VariableEncoder.hpp
436424
src/clp_s/ZstdCompressor.cpp
437425
src/clp_s/ZstdCompressor.hpp
438426
src/clp_s/ZstdDecompressor.cpp
@@ -579,6 +567,8 @@ set(SOURCE_FILES_unitTest
579567
src/clp/GlobalSQLiteMetadataDB.hpp
580568
src/clp/Grep.cpp
581569
src/clp/Grep.hpp
570+
src/clp/GrepCore.cpp
571+
src/clp/GrepCore.hpp
582572
src/clp/hash_utils.cpp
583573
src/clp/hash_utils.hpp
584574
src/clp/ir/constants.hpp
@@ -627,6 +617,8 @@ set(SOURCE_FILES_unitTest
627617
src/clp/Profiler.hpp
628618
src/clp/Query.cpp
629619
src/clp/Query.hpp
620+
src/clp/QueryToken.cpp
621+
src/clp/QueryToken.hpp
630622
src/clp/ReaderInterface.cpp
631623
src/clp/ReaderInterface.hpp
632624
src/clp/ReadOnlyMemoryMappedFile.cpp
@@ -716,7 +708,7 @@ set(SOURCE_FILES_unitTest
716708
tests/test-ffi_KeyValuePairLogEvent.cpp
717709
tests/test-ffi_SchemaTree.cpp
718710
tests/test-FileDescriptorReader.cpp
719-
tests/test-Grep.cpp
711+
tests/test-GrepCore.cpp
720712
tests/test-hash_utils.cpp
721713
tests/test-ir_encoding_methods.cpp
722714
tests/test-ir_parsing.cpp
@@ -778,7 +770,7 @@ if(CLP_BUILD_TESTING)
778770
ystdlib::containers
779771
ystdlib::error_handling
780772
${LIBLZMA_LIBRARIES}
781-
ZStd::ZStd
773+
${zstd_TARGET}
782774
)
783775
target_compile_features(unitTest
784776
PRIVATE cxx_std_20

components/core/cmake/Modules/FindLZ4.cmake

Lines changed: 0 additions & 103 deletions
This file was deleted.

components/core/cmake/Modules/FindZStd.cmake

Lines changed: 0 additions & 106 deletions
This file was deleted.

components/core/cmake/Options/options.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ function(set_clp_s_clp_dependencies_dependencies)
249249
CLP_NEED_BOOST
250250
CLP_NEED_CURL
251251
CLP_NEED_FMT
252+
CLP_NEED_LOG_SURGEON
252253
CLP_NEED_MSGPACKCXX
253254
CLP_NEED_NLOHMANN_JSON
254255
CLP_NEED_OPENSSL
@@ -311,6 +312,7 @@ endfunction()
311312
function(set_clp_s_search_dependencies)
312313
set_clp_need_flags(
313314
CLP_NEED_ABSL
315+
CLP_NEED_LOG_SURGEON
314316
CLP_NEED_SIMDJSON
315317
CLP_NEED_SPDLOG
316318
)

0 commit comments

Comments
 (0)