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

Improve warn logs for validDocID snapshot flow #13280

Merged
merged 2 commits into from
May 31, 2024

Conversation

tibrewalpratik17
Copy link
Contributor

label:
bugfix

Scenario: Upsert compaction runs at a much higher frequency as compared to segment commit. When a segment is compacted, the valid-doc-id snapshot is not available until next commit cycle.

Our logs are flooded with these WARN messages saying snapshot is missing for a segment at every upsert-compaction-task-generator run. The number of log lines is almost equivalent to the number of segments available in the table.

This patch groups all the logs together to not flood the logs and improve the logging experience overall.

cc @snleee @klsince

@tibrewalpratik17 tibrewalpratik17 force-pushed the improve_logs_compaction branch 2 times, most recently from baa7191 to c3de33c Compare May 30, 2024 21:36
@codecov-commenter
Copy link

codecov-commenter commented May 30, 2024

Codecov Report

Attention: Patch coverage is 11.11111% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 62.16%. Comparing base (59551e4) to head (7a7988c).
Report is 522 commits behind head on master.

Files Patch % Lines
...che/pinot/server/api/resources/TablesResource.java 11.11% 14 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13280      +/-   ##
============================================
+ Coverage     61.75%   62.16%   +0.40%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2536     +100     
  Lines        133233   139413    +6180     
  Branches      20636    21552     +916     
============================================
+ Hits          82274    86660    +4386     
- Misses        44911    46260    +1349     
- Partials       6048     6493     +445     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 62.13% <11.11%> (+0.42%) ⬆️
java-21 62.04% <11.11%> (+0.42%) ⬆️
skip-bytebuffers-false 62.14% <11.11%> (+0.40%) ⬆️
skip-bytebuffers-true 62.00% <11.11%> (+34.27%) ⬆️
temurin 62.16% <11.11%> (+0.40%) ⬆️
unittests 62.15% <11.11%> (+0.40%) ⬆️
unittests1 46.74% <ø> (-0.16%) ⬇️
unittests2 27.74% <11.11%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@klsince klsince merged commit a1f9b89 into apache:master May 31, 2024
19 checks passed
gortiz pushed a commit to gortiz/pinot that referenced this pull request Jun 14, 2024
* Improve warn logs for requesting validDocID snapshots

* Move verbose logs to debug level and keep some aggregated stats in warn logs
@tibrewalpratik17 tibrewalpratik17 deleted the improve_logs_compaction branch June 14, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants