Skip to content

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Jan 8, 2024

What changes were proposed in this pull request?

This pr aims to override toString method for o.a.s.network.shuffledb.StoreVersion

Why are the changes needed?

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

cannot read state DB with version org.apache.spark.network.shuffledb.StoreVersion@1f, incompatible with current version org.apache.spark.network.shuffledb.StoreVersion@3e

Does this PR introduce any user-facing change?

No

How was this patch tested?

Add new test

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the CORE label Jan 8, 2024
Copy link
Contributor

@mridulm mridulm 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 fixing this !

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@dongjoon-hyun
Copy link
Member

Merged to master for Apache Spark 4.0.0.
Thank you, @LuciferYang and Mridul.

@LuciferYang
Copy link
Contributor Author

Thanks @dongjoon-hyun and @mridulm

FMX pushed a commit to apache/celeborn that referenced this pull request Mar 11, 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]>
SteNicholas added a commit to apache/celeborn 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants