8000 clo: Add CLI command to extract a compressed file as IR. by haiqi96 · Pull Request #437 · y-scope/clp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

clo: Add CLI command to extract a compressed file as IR. #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10000
Merged
merged 106 commits into from
Jun 22, 2024

Conversation

haiqi96
Copy link
Contributor
@haiqi96 haiqi96 commented Jun 12, 2024

Description

The change refactored clo so it takes in a command and can extract a file split into one or more IR chunks.
clo extracts the IRs to a local file system path, and sends metadata to a mongodb specified by the user input.

Validation performed

  1. Verified that CLP package still properly return search results.
    The following validation are all performed directly via commandline (as opposed to in a clp package)
  2. Compressed a hadoop64MB log into an archive, resulting in a single file split.
  3. Extract the file split as IR with target-size = 16MB (resulting in 5 IR chunks), with results sent to a mongodb running in container
  • Verified that metadata are properly written to the mongodb collection
  • Verified that is_last_ir_chunk is set properly in the metadata.
  • Verified that IR chunks are successfully written to the disk

Copy link
Member

Choose a reason for hiding this comment

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

Since this file only contains the exception class, I would name it CloOperationFailed.hpp

Copy link
Member
@LinZhihao-723 LinZhihao-723 left a comment

Choose a reason for hiding this comment

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

Ask Haiqi asked, this is a review on CommandLinArguments.hpp/cpp and clo.cpp.
Note that the review is brief, mostly catching micro-level issues. Didn't review it from an architecture level, so the variable naming + API design review might be required (please let me know if I should do a further as well).

Copy link
Member
@kirkrodrigues kirkrodrigues left a comment

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:

clo: Add CLI command to extract a compressed file as IR.

@haiqi96 haiqi96 changed the title core-clp: Add CLI command in clo to extract a compressed file as IR. clo: Add CLI command to extract a compressed file as IR. Jun 22, 2024
@haiqi96 haiqi96 merged commit ea99f50 into y-scope:main Jun 22, 2024
11 checks passed
jackluo923 pushed a commit to jackluo923/clp that referenced this pull request Dec 4, 2024
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
0