-
Notifications
You must be signed in to change notification settings - Fork 1k
PHOENIX-4285 Add PHERF.LOG_PER_NROWS constraint to PHERF.properties file #518
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
|
Added a getProperties function in order to have functional tests. |
| exit.expectSystemExitWithStatus(1); | ||
| Pherf.main(args); | ||
| } | ||
|
|
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.
I don't see a test for bad values of this passed in, non-integer negative etc.
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.
sad path added
| String[] args = {"-listFiles"}; | ||
| Pherf pherf = new Pherf(args); | ||
| Properties prop = pherf.getProperties(); | ||
| assertEquals(Long.valueOf(PherfConstants.LOG_PER_NROWS), |
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.
Having a constant called LOG_PER_NROWS and another called LOG_PER_N_ROWS in the same class is pretty confusing, especially when one refers to a key and the other to a value. :-)
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.
Will change LOG_PER_N_ROWS to LOG_PER_NROWS_NAME
| PherfConstants constants = PherfConstants.create(); | ||
| assertNotNull(constants.getProperty("pherf.default.dataloader.threadpool")); | ||
| assertNotNull(constants.getProperty("pherf.default.results.dir")); | ||
| assertNotNull(constants.getProperty("pherf.default.log_per_nrows")); |
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.
Should use constant for the string
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.
used constant PherfConstants.LOG_PER_NROWS_NAME instead of string
|
Thanks for the reviewing @dbwong @gjacoby126 :) |
dbwong
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
|
do you have any suggestions here @gjacoby126 |
gjacoby126
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, thanks @yanxinyi
No description provided.