-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
STORM-2109: Treat Supervisor CPU/MEMORY Configs as Numbers #1699
Conversation
+1 |
The travis failure is unrelated it is yet again a maven issue downloading something that should be there. @knusbaum @kishorvpatil could you please take a look? |
+1 |
ret.put(Config.SUPERVISOR_CPU_CAPACITY, cpu); | ||
Number mem = (Number) (conf.get(Config.SUPERVISOR_MEMORY_CAPACITY_MB)); | ||
ret.put(Config.SUPERVISOR_MEMORY_CAPACITY_MB, mem.doubleValue()); | ||
Number cpu = (Number) (conf.get(Config.SUPERVISOR_CPU_CAPACITY)); |
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.
Possibility of NPE here. Can we use utils method to do this.
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.
Good point. Utils.getDouble() with default value would be safer.
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 NPE should never happen if defaults.yaml is configured correctly, but I will still make the change.
Rebased and addressed the review comments. |
+1 again. |
No description provided.