Skip to content

Core: Fix typo in HadoopTableOperations - #11880

Merged
Fokko merged 1 commit into
apache:mainfrom
okumin:version-hint-typo
Dec 29, 2024
Merged

Core: Fix typo in HadoopTableOperations#11880
Fokko merged 1 commit into
apache:mainfrom
okumin:version-hint-typo

Conversation

@okumin

@okumin okumin commented Dec 27, 2024

Copy link
Copy Markdown
Contributor

version-hint.txt is incorrect and confusing as version-hint.text is the valid file name.

@github-actions github-actions Bot added the core label Dec 27, 2024
Comment thread core/src/main/java/org/apache/iceberg/hadoop/HadoopTableOperations.java Outdated
return maxVersion;
} catch (IOException io) {
LOG.warn("Error trying to recover version-hint.txt data for {}", versionHintFile, e);
LOG.warn("Error trying to recover the latest version number for {}", versionHintFile, io);

@okumin okumin Dec 28, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

version-hint.txt is not correct. Based on this discussion, I replaced it with a more informative and non-redundant expression, as versionHintFile already includes the filename.

This is the new message.

Error trying to recover the latest version number for file:/var/folders/0n/191xk_2s2_3dbz7t6_jpws100000gn/T/junit-8523266742929144891/metadata/version-hint.text

Additionally, this change would make the message capture io instead of e so that users can quickly identify the direct cause.

@Fokko
Fokko merged commit 7f14032 into apache:main Dec 29, 2024
@Fokko

Fokko commented Dec 29, 2024

Copy link
Copy Markdown
Contributor

Thanks for fixing this @okumin and thanks for the review @ebyhr 🙌

@okumin

okumin commented Dec 29, 2024

Copy link
Copy Markdown
Contributor Author

Thank you!

@okumin
okumin deleted the version-hint-typo branch December 29, 2024 23:38
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