-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[STORM-1250]: port backtype.storm.serialization-test to java #1150
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
| import com.google.common.collect.ImmutableMap; | ||
| import org.apache.storm.utils.Utils; | ||
| import org.apache.storm.validation.ConfigValidation; | ||
| import org.apache.storm.validation.ConfigValidation.*; |
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.
please change * import
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.
never mind, old code.
|
@abhishekagarwal87 Thanks for your hint. I have moved |
|
Thanks @wuchong Looks good to me. |
|
@revans2 can you have a look ? |
| List ret = null; | ||
| try { | ||
| ret = deserialize(serialize(vals, conf), conf); | ||
| } catch (IOException e) { |
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 would prefer to have the IOException thrown by roundtrip. Catching it will still cause the test to fail, but it will be harder to debug.
|
Just one minor comment. I am +1 even without the update. |
|
@revans2 addressed |
|
+1 |
validate-kryo-conf-basicandvalidate-kryo-conf-failtoTestConfigValidate.java, and merge this two tests into onetest-clojure-serialization. So I translate it and commet it.