Skip to content
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

clp-package: Use a server to receive results when searching from the command line. #333

Merged
merged 7 commits into from
Apr 3, 2024

Conversation

wraymo
Copy link
Contributor

@wraymo wraymo commented Mar 26, 2024

References

#299 and #324

Description

#299 and #324 add support for sending query results to a network destination. This PR adds a network server to the package to receive query results.

Validation performed

  • Built the package and compressed hive-24hrs logs using clp
  • Executed sbin/search.sh "org.apache.hadoop.metrics2.impl.MetricsSystemImpl: ReduceTask metrics system shutdown complete". Used WebUI to run the same query. Both returned results as expected.
  • Changed the storage engine to clp-s and compressed first 1,000,000 log messages of mongodb dataset.
  • Executed sbin/search.sh "id: 22419". Used WebUI to run the same query. Both returned results as expected.

@kirkrodrigues kirkrodrigues self-requested a review March 30, 2024 00:42
for unpacked in unpacker:
print(f"{unpacked[0]}: {unpacked[2]}", end="")
except asyncio.CancelledError:
return
Copy link
Member

Choose a reason for hiding this comment

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

What's the intent with swallowing the error?

Copy link
Contributor Author

@wraymo wraymo Apr 1, 2024

Choose a reason for hiding this comment

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

Do you think it's better not to catch the error and handle it in main?

Copy link
Member

Choose a reason for hiding this comment

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

In this case, yeah, I think so since we're not doing anything special with the error and asyncio.run should swallow it anyway.

@wraymo wraymo requested a review from kirkrodrigues April 1, 2024 20:26
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.

A few more small things

@wraymo
Copy link
Contributor Author

wraymo commented Apr 2, 2024

Sorry, missed two points

@wraymo wraymo requested a review from kirkrodrigues April 2, 2024 20:00
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.

How about:

clp-package: Use a server to receive results when searching from the command line.

@wraymo wraymo merged commit 9b4c8dd into y-scope:main Apr 3, 2024
10 checks passed
@wraymo wraymo changed the title Add a network server to the package to receive query results clp-package: Use a server to receive results when searching from the command line. Apr 3, 2024
junhaoliao pushed a commit to junhaoliao/clp that referenced this pull request Apr 5, 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.

2 participants