SOLR-17686: Rename stageInEnglish to stageToString and make it protected and non-static#3224
Conversation
|
Thinking about how the changes in this PR might be described in ... so the user with a custom component with a custom distributed stage is still left in a "must have and configure a custom SearchHandler that overrides the ... might overriding be supported and yet could the base implementation use something like "CUSTOM_42" for a custom stage with value 42? And looking at how the could also be considered i.e. for |
I like this idea. Otherwise, it seems a bit excessive to me that a user with custom stages must override this method that's used for logging only. Pushed be8e468 to replace the throw with returning |
dsmiley
left a comment
There was a problem hiding this comment.
If we're going to expose this, I'd like to take the opportunity to reconsider this method name to not include the word "English". stageToString would be better IMO.
Otherwise, LGTM
|
Way too advanced/obscure to waste people's time mentioning in CHANGES.txt IMO. |
| } | ||
|
|
||
| private static String stageInEnglish(int nextStage) { | ||
| protected String stageToString(int nextStage) { |
There was a problem hiding this comment.
How about dropping the next prefix?
| protected String stageToString(int nextStage) { | |
| protected String stageToString(int stage) { |
https://issues.apache.org/jira/browse/SOLR-17686
Description
Please provide a short description of the changes you're making with this pull request.
Solution
Please provide a short description of the approach taken to implement your solution.
Tests
Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.
Checklist
Please review the following and check all that apply:
mainbranch../gradlew check.