TODO Cleanup - #6509
Draft
Amemeda wants to merge 4 commits into
Draft
Conversation
Amemeda
commented
Aug 20, 2026
Comment on lines
+80
to
+91
| /* | ||
| * TODO ACCUMULO-2938 redact key extents in this output to avoid leaking protected | ||
| * information. | ||
| */ | ||
|
|
||
| // convert each tabletId in migrations to keyExtent | ||
| Set<KeyExtent> keyExtents = migrations.stream().map(tabletId -> { | ||
| KeyExtent extent = KeyExtent.fromTabletId(tabletId); | ||
| extent.obscured(); | ||
| return extent; | ||
| }).collect(Collectors.toSet()); | ||
|
|
||
| if (log.isDebugEnabled()) { | ||
| log.debug("Sample up to 10 outstanding migrations: {}", | ||
| migrations.stream().limit(10).map(String::valueOf).collect(Collectors.joining(", "))); | ||
| keyExtents.stream().limit(10).map(String::valueOf).collect(Collectors.joining(", "))); |
Contributor
Author
DomGarguilo
reviewed
Aug 21, 2026
DomGarguilo
reviewed
Aug 21, 2026
Comment on lines
+84
to
+88
| String.join(", ", migrations.stream().limit(10).map(tabletId -> { | ||
| KeyExtent extent = KeyExtent.fromTabletId(tabletId); | ||
| extent.obscured(); | ||
| return extent.toString(); | ||
| }).map(String::valueOf).collect(Collectors.toSet()))); |
Member
There was a problem hiding this comment.
Suggested change
| String.join(", ", migrations.stream().limit(10).map(tabletId -> { | |
| KeyExtent extent = KeyExtent.fromTabletId(tabletId); | |
| extent.obscured(); | |
| return extent.toString(); | |
| }).map(String::valueOf).collect(Collectors.toSet()))); | |
| migrations.stream() | |
| .limit(10) | |
| .map(tabletId -> { | |
| KeyExtent extent = KeyExtent.fromTabletId(tabletId); | |
| extent.obscured(); | |
| return extent.toString(); | |
| }) | |
| .collect(Collectors.joining(", ")); |
I think you can do the join right off the stream so we dont need to collect to a new set. I didnt test this code so the working code might be different
Contributor
Author
if (retryCountDownTimer.isExpired()) {
// TODO exception used for timeout is inconsistent
throw new TimedOutException(
"Failed to find servers to process scans before timeout was exceeded.");
}Does anyone know why this exception from |
dlmarion
reviewed
Aug 21, 2026
Comment on lines
+85
to
+87
| KeyExtent extent = KeyExtent.fromTabletId(tabletId); | ||
| extent.obscured(); | ||
| return extent.toString(); |
Contributor
There was a problem hiding this comment.
obscured returns the obfuscated String.
Suggested change
| KeyExtent extent = KeyExtent.fromTabletId(tabletId); | |
| extent.obscured(); | |
| return extent.toString(); | |
| return KeyExtent.fromTabletId(tabletId).obscured(); |
Contributor
No idea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Redact keyExtents in outstanding migrations output to remove TODO in
ThrottledBalancerProblemReporter.java. Added this logic onto existing .stream in the logger that logs 10 outstanding migrations.Removed outdated TODO from
ClientContext.java.Removes 2 TODOs from #2699