-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[hotfix] Correct the comments for FlinkSecurityManager #26325
base: master
Are you sure you want to change the base?
Conversation
ping @hwanju @rmetzger cc @1996fanrui @davidradl @nilmadhab |
@@ -89,8 +89,8 @@ static FlinkSecurityManager fromConfiguration(Configuration configuration) { | |||
|
|||
boolean haltOnSystemExit = configuration.get(ClusterOptions.HALT_ON_FATAL_ERROR); | |||
|
|||
// If no check is needed, return null so that caller can avoid setting security manager not | |||
// to incur any runtime cost. | |||
// If no check is needed, return null so that caller can avoid setting security manager and |
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.
nit: security manager -> the security manager
imho: I am not too worried about the text here - as the method javadoc seems to cover this. I would be inclined to remove this comment as it adds nothing to the javadoc. If we want to improve it, it would be better to have this comment explain why these if conditions indicate that we should not return a FlinkSecurityManager.
- but if we change it here we should use the same words in the methods javadoc.
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.
Yes, the javadoc
seems good enough. I think this inner comments just for readability.
cc @GOODBOY008 |
cc @xintongsong |
What is the purpose of the change
This PR aim to correct the comments for
FlinkSecurityManager
.The original comments means cannot avoid the overhead. It is wrong.
Brief change log
Correct the comments for
FlinkSecurityManager
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation