-
Notifications
You must be signed in to change notification settings - Fork 477
Change shell 'config' command to display sorted output #2150
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
|
I noticed that there were two parts in the previously linked commit, in |
|
Looks like the change from 4ea9bf1 in |
|
From my testing, |
|
@Manno15 - can you explain why the results would be the same? Looking at the dump configuration command implementation there does not seem to be any sorting - could it be just an accident that they matched and with either different values or values created in a different order that they would differ? It seems safest to assume that where a TreeMap was used there might be underlying code somewhere that was built using that assumption - unless it can be determined that is not the case. |
|
@EdColeman I figured out where my confusion came from. I should have paid closer attention, the @foster33 So yes, both of those print functions should have the same change as the |
|
There were a few places where #2122 changed the TreeMap to a non-sorted Map:
|
ctubbsii
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.
Looks good, but the TableOperationsHelperTest change isn't necessary, and it's best to avoid Guava when possible (fewer uses of Guava means fewer potential conflicts later).
Fixes #2149
Fixes the bug where the
configcommand inside the accumulo shell returns the properties unordered by usingImmutableSortedMap.copyOf.There is only one instance that the shell output is directly effected by this so the other TreeMaps that were replaced I left alone and did not want to import additional things if it was not needed.
If there are other spots in the commit 4ea9bf1 that would directly benefit from the
ImmutableSortedMap.copyOfchange, I can make those changes as well.