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

Fixing the bug for Upsert compaction task generator #12380

Merged

Conversation

snleee
Copy link
Contributor

@snleee snleee commented Feb 7, 2024

  • The current task generator had an issue with the null pointer exception when validDocIds metadata doesn't show up on the list of ZK metadata. Fixed the logic to properly handle this case.
  • Added the default value for validDocIdsType for API
  • Added unit tests

- The current task generator had an issue with the null pointer
  exception when validDocIds metadata doesn't show up on the
  list of ZK metadata. Fixed the logic to properly handle
  this case.
- Added the default value for validDocIdsType for API
- Added unit tests
@snleee snleee force-pushed the improve-upsert-compaction-task-generator branch from c678916 to 4bb1a7f Compare February 7, 2024 08:05
@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (0761a65) 61.71% compared to head (4bb1a7f) 61.70%.

Files Patch % Lines
...psertcompaction/UpsertCompactionTaskGenerator.java 70.00% 2 Missing and 1 partial ⚠️
...oller/api/resources/PinotTableRestletResource.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #12380      +/-   ##
============================================
- Coverage     61.71%   61.70%   -0.02%     
  Complexity      207      207              
============================================
  Files          2426     2426              
  Lines        132776   132784       +8     
  Branches      20541    20544       +3     
============================================
- Hits          81946    81937       -9     
- Misses        44817    44832      +15     
- Partials       6013     6015       +2     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (ø)
integration <0.01% <0.00%> (ø)
integration1 <0.01% <0.00%> (ø)
integration2 0.00% <0.00%> (ø)
java-11 61.66% <63.63%> (-0.01%) ⬇️
java-21 61.59% <63.63%> (-0.01%) ⬇️
skip-bytebuffers-false 61.68% <63.63%> (-0.03%) ⬇️
skip-bytebuffers-true 61.57% <63.63%> (+26.71%) ⬆️
temurin 61.70% <63.63%> (-0.02%) ⬇️
unittests 61.70% <63.63%> (-0.02%) ⬇️
unittests1 46.87% <ø> (-0.03%) ⬇️
unittests2 27.72% <63.63%> (+<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.

@snleee snleee merged commit f6ae06f into apache:master Feb 7, 2024
19 checks passed
@snleee snleee deleted the improve-upsert-compaction-task-generator branch February 7, 2024 17:09
suyashpatel98 pushed a commit to suyashpatel98/pinot that referenced this pull request Feb 28, 2024
- The current task generator had an issue with the null pointer
  exception when validDocIds metadata doesn't show up on the
  list of ZK metadata. Fixed the logic to properly handle
  this case.
- Added the default value for validDocIdsType for API
- Added unit tests
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