Skip to content

Conversation

@jtao15
Copy link
Contributor

@jtao15 jtao15 commented Feb 8, 2022

Enhance revertReplaceSegments api so reverting entry1 in the following example is not allowed:
entry1: {Seg_0 -> Seg1, COMPLETED}
entry2: {Seg_1 -> Seg2, COMPLETED/IN_PROGRESS}

Copy link
Member

Choose a reason for hiding this comment

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

Can you put a fail after line 761 then please?

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

Choose a reason for hiding this comment

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

@jtao15 Can we add fail() for all the places where we try{} catch{} ?

I think that we have a lot of tests like this and I remember that I didn't add fail().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Member

Choose a reason for hiding this comment

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

the currentLineageEntry here seems unnecessary?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@snleee snleee left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

Choose a reason for hiding this comment

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

@jtao15 Can we add fail() for all the places where we try{} catch{} ?

I think that we have a lot of tests like this and I remember that I didn't add fail().

@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2022

Codecov Report

Merging #8166 (2ce2f88) into master (58f74ce) will increase coverage by 0.04%.
The diff coverage is 90.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #8166      +/-   ##
============================================
+ Coverage     71.36%   71.40%   +0.04%     
+ Complexity     4308     4307       -1     
============================================
  Files          1623     1623              
  Lines         84356    84365       +9     
  Branches      12654    12657       +3     
============================================
+ Hits          60197    60245      +48     
+ Misses        20023    19993      -30     
+ Partials       4136     4127       -9     
Flag Coverage Δ
integration1 28.90% <0.00%> (+0.03%) ⬆️
integration2 27.56% <0.00%> (-0.13%) ⬇️
unittests1 67.88% <ø> (+<0.01%) ⬆️
unittests2 14.19% <90.00%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
...ntroller/helix/core/PinotHelixResourceManager.java 66.05% <90.00%> (+0.28%) ⬆️
...pinot/common/utils/fetcher/HttpSegmentFetcher.java 61.53% <0.00%> (-10.26%) ⬇️
...a/org/apache/pinot/common/utils/ServiceStatus.java 60.00% <0.00%> (-7.15%) ⬇️
.../pinot/server/starter/helix/BaseServerStarter.java 57.98% <0.00%> (-1.97%) ⬇️
...r/helix/SegmentOnlineOfflineStateModelFactory.java 63.20% <0.00%> (-1.89%) ⬇️
...e/pinot/segment/local/io/util/PinotDataBitSet.java 95.62% <0.00%> (-1.46%) ⬇️
...ces/PinotSegmentUploadDownloadRestletResource.java 57.51% <0.00%> (-1.29%) ⬇️
...e/pinot/broker/broker/helix/BaseBrokerStarter.java 75.67% <0.00%> (-1.09%) ⬇️
.../pinot/core/data/manager/BaseTableDataManager.java 86.80% <0.00%> (-0.86%) ⬇️
...e/pinot/common/utils/FileUploadDownloadClient.java 63.00% <0.00%> (-0.74%) ⬇️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58f74ce...2ce2f88. Read the comment docs.

Copy link
Member

@jackjlli jackjlli left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for making the change!

@jtao15 jtao15 force-pushed the consistentPush branch 2 times, most recently from 4e9ca3e to 61261e7 Compare February 11, 2022 00:52
…g example is not allowed:

entry1: {Seg_0 -> Seg1, COMPLETED}
entry2: {Seg_1 -> Seg2, COMPLETED/IN_PROGRESS}
@snleee snleee merged commit fb572bd into apache:master Feb 11, 2022
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.

5 participants