-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-3252] Avoid creating empty requestedReplaceCommit in the startCommit method #4515
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
Conversation
1a657de to
08c493b
Compare
|
@xushiyan @nsivabalan hello, can you please take a review? |
|
@dongkelun the warn log comes from clustering planning. can you help clarify how would this change avoid the repeated warn logs? |
Hello, the reason for the warning is that the content of replaceCommitRequestedInstantinstant is empty,There are many places to call this method, such as if (refreshTimeline) {
hoodieSparkTable.getHoodieView().sync();
}There are also many places to call |
|
@codope : Can you review this PR. May be there could be some follow ups in other places where we do create similar empty replace commit instants. I |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dongkelun Rather than introduce a behavior change, I would prefer to remove the warn log itself. Is there any reason we still want to keep it?
Also, while you're at it, can you make the method getRequestedReplaceMetadata private? I don't see it being used anywhere other than the same class.
|
I would vote to remote the log.warn msg only(ClusteringUtils L 93)) using a diff patch which we can pull into 0.10.1. we can continue discussions in this patch as to whats the right fix is. |
OK, I have made the method |
|
@nsivabalan @codope |
nsivabalan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
codope
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just one minor comment.
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java
Show resolved
Hide resolved
|
@dongkelun @nsivabalan @codope this PR has pivoted and it's mostly not about warn log any more. Can we file a different ticket tailored to this PR and link to it? |
I have created a new issue HUDI-3252 and modified the PR link to it. Do you think this description is accurate? |
|
looks good to me. I have closed the previous ticket btw. |
Tips
What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)
Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Committer checklist
Has a corresponding JIRA in PR title & commit
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.