-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDFS-17354: Delay invoke clearStaleNamespacesInRouterStateIdContext during router start up #6498
Conversation
💔 -1 overall
This message was automatically generated. |
@simbadzina @zhangshuyan0 anyone please help to review, thanks a lot! |
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.
The description of this PR is too vague to understand. Can you make it clearer? By the way, a ut may be needed here.
Renew description and thanks a lot for your reply @zhangshuyan0 |
Changes generally looks okay to me. Is this just an optimization to avoid clearing a map which is empty, or there can be an error if we clear before the router is in the RUNNING state. Can you please add a test case. |
…ring router start up
ba48a82
to
24fc113
Compare
🎊 +1 overall
This message was automatically generated. |
@zhangshuyan0 @simbadzina Add a test case, please help to review again. |
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.
+1. LGTM.
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. Thanks for the contribution @ThinkerLei
In HDFS-16876 , we use SingleThreadScheduledExecutor with initialDelay is zero to clear expired namespace. because initialDelay is zero , we will invoke method in stateStore with an exception before stateStore startUp . So I think we should start clear expired namespace at RouterRpcServer RUNNING phase.