Skip to content

Conversation

@SteNicholas
Copy link
Member

@SteNicholas SteNicholas commented Mar 9, 2024

What changes were proposed in this pull request?

Override toString method for StoreVersion.

Why are the changes needed?

Avoid displaying StoreVersionhashCode in the IOException thrown after the checkVersion check fails in RocksDBProvider/LevelDBProvider, show something like:

cannot read state DB with version org.apache.celeborn.service.deploy.worker.shuffledb.StoreVersion1f, incompatible with current version org.apache.celeborn.service.deploy.worker.shuffledb.StoreVersion3e

Backport apache/spark#44624.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • DBProviderSuiteJ

@SteNicholas
Copy link
Member Author

cc @waitinfuture, @FMX, @cxzl25.

@codecov
Copy link

codecov bot commented Mar 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.74%. Comparing base (b3eed34) to head (99f7c3a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2372      +/-   ##
==========================================
+ Coverage   48.72%   48.74%   +0.02%     
==========================================
  Files         209      209              
  Lines       13014    13014              
  Branches     1121     1121              
==========================================
+ Hits         6340     6342       +2     
+ Misses       6263     6262       -1     
+ Partials      411      410       -1     

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

Copy link
Contributor

@FMX FMX 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. Merged into main(v0.5.0).

Copy link
Contributor

@FMX FMX 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. Merged into main(v0.5.0).

@FMX FMX closed this in 7f6cb67 Mar 11, 2024
SteNicholas added a commit that referenced this pull request Apr 23, 2024
### What changes were proposed in this pull request?

Override `toString` method for `StoreVersion`.

### Why are the changes needed?

Avoid displaying `StoreVersionhashCode` in the `IOException` thrown after the checkVersion check fails in `RocksDBProvider`/`LevelDBProvider`, show something like:
```
cannot read state DB with version org.apache.celeborn.service.deploy.worker.shuffledb.StoreVersion1f, incompatible with current version org.apache.celeborn.service.deploy.worker.shuffledb.StoreVersion3e
```
Backport apache/spark#44624.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

- `DBProviderSuiteJ`

Closes #2372 from SteNicholas/CELEBORN-1316.

Authored-by: SteNicholas <[email protected]>
Signed-off-by: mingji <[email protected]>
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.

3 participants