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

Move resolveComparisonTies from addOrReplaceSegment to base class #13396

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

tibrewalpratik17
Copy link
Contributor

Moving resolveComparisonTies from addOrReplaceSegment to base class.
There are 2 ways of doing this:

  • Always call resolveComparisonTies in base class before calling addOrReplaceSegment. There are 3 instances of addOrReplaceSegment calls in base class.
  • Put resolveComparisonTies inside addOrReplaceSegment method in base class itself and change the abstract method name to doAddOrReplaceSegment. This is in parity with other methods we have in extended class - doAddRecord, doRemoveExpiredPrimaryKeys, doUpdateRecord where we prefix the abstract method by do.

We are doing the latter here.

@tibrewalpratik17 tibrewalpratik17 added upsert refactor backward-incompat Referenced by PRs that introduce or fix backward compat issues labels Jun 14, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 62.00%. Comparing base (59551e4) to head (604c98e).
Report is 627 commits behind head on master.

Files Patch % Lines
...cal/upsert/BasePartitionUpsertMetadataManager.java 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13396      +/-   ##
============================================
+ Coverage     61.75%   62.00%   +0.25%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2550     +114     
  Lines        133233   140263    +7030     
  Branches      20636    21799    +1163     
============================================
+ Hits          82274    86974    +4700     
- Misses        44911    46680    +1769     
- Partials       6048     6609     +561     
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 61.96% <50.00%> (+0.25%) ⬆️
java-21 61.89% <50.00%> (+0.27%) ⬆️
skip-bytebuffers-false 61.99% <50.00%> (+0.25%) ⬆️
skip-bytebuffers-true 61.87% <50.00%> (+34.14%) ⬆️
temurin 62.00% <50.00%> (+0.25%) ⬆️
unittests 62.00% <50.00%> (+0.25%) ⬆️
unittests1 46.54% <0.00%> (-0.35%) ⬇️
unittests2 27.69% <50.00%> (-0.04%) ⬇️

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.

@tibrewalpratik17 tibrewalpratik17 marked this pull request as ready for review June 14, 2024 18:29
@tibrewalpratik17 tibrewalpratik17 removed the backward-incompat Referenced by PRs that introduce or fix backward compat issues label Jun 14, 2024
@klsince klsince merged commit a2aa00c into apache:master Jun 18, 2024
20 checks passed
@tibrewalpratik17 tibrewalpratik17 deleted the minor_refactor_upsert branch June 20, 2024 16:14
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.

3 participants