-
Notifications
You must be signed in to change notification settings - Fork 669
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
SOLR-17567: Improve Stream CLI implementation #2872
Conversation
@malliaridis I've marked off the items I took care of. The remaining ones I need more detail to more forward on. Regardless, it's nice to get a bit more polish! |
I've also polished up the docs a bit. |
Finally! All the junit tests related to StreamTool are passing! |
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.
Wow, did not have SolrOnHdfsSnapshotsTool under my radar. Did you find it throught the forbidden-api rules?
Additionally to the forbidden-api rules I have commented below, I would probably add one small "feature" to complete the comments "parsing", that would be trailing line comments like in
search(
collection,
q=*:* # this is a trailing comment
)
// or like in
/*search(
collection,
q=*:*
)*/
It is hard to know all edge-cases in advance when it comes to comment stripping.
And thanks for responding so quick to the update requests. :D
org.apache.commons.cli.CommandLine#hasOption(java.lang.String) | ||
org.apache.commons.cli.CommandLine#getOptionValue(java.lang.String) | ||
org.apache.commons.cli.CommandLine#getOptionValue(java.lang.String, java.lang.String) | ||
org.apache.commons.cli.CommandLine#getParsedOptionValue(java.lang.String, java.lang.Object) |
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 extend the following as well (from CommandLine
):
org.apache.commons.cli.CommandLine#hasOption(char)
org.apache.commons.cli.CommandLine#getOptionValue(char)
org.apache.commons.cli.CommandLine#getOptionValue(char, java.lang.String)
org.apache.commons.cli.CommandLine#getOptionValue(char, Supplier<String>)
org.apache.commons.cli.CommandLine#getOptionValues(char)
org.apache.commons.cli.CommandLine#getOptionValues(java.lang.String)
org.apache.commons.cli.CommandLine#getParsedOptionValue(char)
org.apache.commons.cli.CommandLine#getParsedOptionValue(char, Supplier<T>)
org.apache.commons.cli.CommandLine#getParsedOptionValue(char, java.lang.Object)
org.apache.commons.cli.CommandLine#getParsedOptionValue(java.lang.String)
org.apache.commons.cli.CommandLine#getParsedOptionValue(String, Supplier<T>)
I haven't written any rules before, so I am not sure if the above have the correct format (especially Supplier<T>
is likely not correct).
I did!!! |
About the remaining TODOs: Multiple type suppressions that can be avoided Suppressions like StreamTool.LocalCatStream overrides CatStream btu does not properly set commaDelimitedFilepaths (this may be a bug) In Instead, it is possible to simply remove the property from the parameters of If the description is a bit irritating, I can create a separate PR for that. :) |
Okay, this I think is almost ready to merge! |
Since this is a straight up follow on from the introduction of the StreamTool in |
…to comment a few out
https://issues.apache.org/jira/browse/SOLR-17567
This is to improve StreamTool based on some assessments by @malliaridis!