-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16499. [SPS]: Should not start indefinitely while another SPS process is running #4058
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
|
🎊 +1 overall
This message was automatically generated. |
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.
It's quite some time I looked at this code. Thanks a lot for working on these improvements.
How about using ExitUtil class to terminate. That class has static methods to disable exit. That you can use it from tests.
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.
It's quite some time I looked at this code. Thanks a lot for working on these improvements. How about using ExitUtil class to terminate. That class has static methods to disable exit. That you can use it from tests.
Thank you @umamaheswararao very much for your review. And your suggestion makes sense to me.
I updated the code. PTAL. Thanks.
|
🎊 +1 overall
This message was automatically generated. |
|
Hi @umamaheswararao , could you please take a look at this? Thank you very much. |
umamaheswararao
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.
Patch almost looks good to me. I have a minor comment in test though.
| () -> ExternalStoragePolicySatisfier.getNameNodeConnector(config)); | ||
|
|
||
| // Reset first exit exception to avoid AssertionError in MiniDFSCluster#shutdown. | ||
| // This has no effect on functionality. |
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.
How about doing this reset in finally?
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.
How about doing this reset in finally?
Thanks @umamaheswararao for your comments. I fixed it.
umamaheswararao
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.
+1 LGTM, pending CI
|
🎊 +1 overall
This message was automatically generated. |
|
Hi @umamaheswararao , could you please help merge this? Thank you. |
|
@tomscut Thanks for your contribution. @umamaheswararao Thanks for your review! Merged |
|
Thanks @umamaheswararao and @ferhui . |
…ocess is running (apache#4058)
JIRA: HDFS-16499.
Normally, we can only start one SPS process at a time. When one process is running, start another process and retry indefinitely. I think, in this case, we should exit immediately.