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

[Core][Bug] Fix bug when read changelog's IndexManifest. #5058

Merged

Conversation

wwj6591812
Copy link
Contributor

@wwj6591812 wwj6591812 commented Feb 11, 2025

Purpose

We encountered an exception in our production job.
image

After investigate this issue, the reason of this exception is :
We open Changelog decouple, the Changelog has records the indexManifest. But the Snapshot of the Changelog has been expired. So when read this Changelog will read the non-existed indexManifest.

We have think two functions to solve this problem.
1、 Don't read the indexManifest when streaming read the Changelog.
2、Override the indexManifest method in Changelog, which return null forever.

Due to the design of Changelog and Tag is extends Snapshot, they should not modify the field of Snapshot. So after discuss we choose the function 1.

Linked issue: close #xxx

Tests

API and Format

Documentation

@wwj6591812 wwj6591812 force-pushed the fix_bug_when_read_changelog_0211 branch from 95b25cb to 8920493 Compare February 11, 2025 08:56
@JingsongLi
Copy link
Contributor

Can you add a test case?

@wwj6591812 wwj6591812 changed the title [Core][Bug] Fix bug when read changelog's indexManifest. [WIP][Core][Bug] Fix bug when read changelog's IndexManifest. Feb 12, 2025
@wwj6591812 wwj6591812 force-pushed the fix_bug_when_read_changelog_0211 branch from 8920493 to 1b25558 Compare February 12, 2025 04:01
@wwj6591812 wwj6591812 changed the title [WIP][Core][Bug] Fix bug when read changelog's IndexManifest. [Core][Bug] Fix bug when read changelog's IndexManifest. Feb 12, 2025
@wwj6591812
Copy link
Contributor Author

Can you add a test case?

Done,Please CC, Thx.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit 84d48bf into apache:master Feb 12, 2025
10 of 12 checks passed
JackeyLee007 pushed a commit to JackeyLee007/paimon that referenced this pull request Feb 14, 2025
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.

2 participants