Skip to content

clp-s: Add archive_id to search results.#435

Merged
haiqi96 merged 21 commits into
y-scope:mainfrom
haiqi96:CLPSArchiveID
Jun 14, 2024
Merged

clp-s: Add archive_id to search results.#435
haiqi96 merged 21 commits into
y-scope:mainfrom
haiqi96:CLPSArchiveID

Conversation

@haiqi96

@haiqi96 haiqi96 commented Jun 10, 2024

Copy link
Copy Markdown
Contributor

References

Description

This PR adds archive_id to the search results of clp-s and a few refactorings:

  1. Let clp-s:ArchiveReader tracks archive_id and update the signature of open() function.
  2. replace std::string with std::string_view in clp-s' OutputHandler
  3. replace "should_output_timestamp" with "should_output_metadata"

Validation performed

  1. Compressed and searched mongod log with clp-s binary directly. Verified that results are output properly
  2. Ingested mongod log with clp-s package. Verified that both search.sh and webui can return the results properly
  3. Confirmed that messages in the results_cache have associated archive_id.

@haiqi96 haiqi96 marked this pull request as draft June 10, 2024 19:20
@haiqi96 haiqi96 marked this pull request as ready for review June 10, 2024 19:55
@haiqi96 haiqi96 changed the title Add archive_id to the search results of clp-s clp-s: Add archive_id to the search results of clp-s Jun 10, 2024
Comment thread components/core/src/clp_s/search/OutputHandler.hpp
Comment thread components/core/src/clp_s/ArchiveReader.cpp
Comment thread components/core/src/clp_s/clp-s.cpp
Comment thread components/core/src/clp_s/clp-s.cpp Outdated
Comment thread components/core/src/clp_s/search/OutputHandler.cpp
Comment thread components/core/src/clp_s/search/OutputHandler.cpp Outdated
Comment thread components/core/src/clp_s/search/OutputHandler.cpp Outdated
Comment thread components/core/src/clp_s/search/OutputHandler.hpp Outdated
Comment thread components/core/src/clp_s/search/OutputHandler.hpp Outdated
haiqi96 and others added 4 commits June 13, 2024 14:46
Comment thread components/core/src/clp_s/search/Output.cpp Outdated
Comment thread components/core/src/clp_s/search/Output.cpp Outdated
Comment thread components/core/src/clp_s/ArchiveReader.cpp Outdated
@haiqi96 haiqi96 requested a review from kirkrodrigues June 14, 2024 01:49

@kirkrodrigues kirkrodrigues left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the PR title, how about:

clp-s: Add archive_id to search results.

@haiqi96 haiqi96 changed the title clp-s: Add archive_id to the search results of clp-s clp-s: Add archive_id to search results. Jun 14, 2024
@haiqi96 haiqi96 merged commit eedbd20 into y-scope:main Jun 14, 2024
@haiqi96 haiqi96 deleted the CLPSArchiveID branch June 28, 2024 14:43
jackluo923 pushed a commit to jackluo923/clp that referenced this pull request Dec 4, 2024
junhaoliao pushed a commit to junhaoliao/clp that referenced this pull request May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants