-
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
YARN-10909. AbstractCSQueue: Annotate all methods with VisibleForTesting that are only used by test code #3360
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.
@JackWangCS thanks for working on this. Actually there are a few more cases where the only reason the method is not private is because it is used in tests (for example recoverDrainingState), can you please address those as well?
Hi @brumi1024, sorry, I am a bit confused. I don't find |
@JackWangCS, my mistake, sorry, mixed it up with another method. I have one small nit: getLastSubmittedTimestamp and setLastSubmittedTimestamp is now package private, but updateLastSubmittedTimeStamp is public and they operate on the same variable. Can you please change it as well? Otherwise +1 from my side. |
@brumi1024 I have changed the setLastSubmittedTimestamp to package private. Thanks for your review. |
💔 -1 overall
This message was automatically generated. |
...n/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/AbstractCSQueue.java
Show resolved
Hide resolved
...n/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/AbstractCSQueue.java
Show resolved
Hide resolved
...n/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/AbstractCSQueue.java
Show resolved
Hide resolved
Hi @JackWangCS, |
Description of PR
AbstractCSQueue: some methods added for test code but not annotated with VisibleForTesting.
How was this patch tested?
Just code style fix, no new tests needed
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?