TODO Cleanup - #6509
Conversation
| /* | ||
| * 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(", "))); |
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 |
No idea |
| if (retryCountDownTimer.isExpired()) { | ||
| // TODO exception used for timeout is inconsistent | ||
| throw new TimedOutException( | ||
| "Failed to find servers to process scans before timeout was exceeded."); | ||
| } |
There was a problem hiding this comment.
Removed this TODO for now. The exception used here seems consistent with what is happening: TimedOutException because the retryCountDownTimer has expired. If anything, the message may not be accurate description of why the timeout happened.
I can add it back if the todo should remain, or if a different exception/message should be used here, I can replace.
| zkLockChecker = memoize(() -> { | ||
| // make this use its own ZooSession and ZooCache, because this is used by the | ||
| // tablet location cache, which is a static singleton reused by multiple clients | ||
| // so, it can't rely on being able to continue to use the same client's ZooCache, | ||
| // because that client could be closed, and its ZooSession also closed | ||
| // this needs to be fixed; TODO https://github.com/apache/accumulo/issues/2301 | ||
| var zk = info.getZooKeeperSupplier(ZookeeperLockChecker.class.getSimpleName(), | ||
| ZooUtil.getRoot(getInstanceID())).get(); | ||
| return new ZookeeperLockChecker(new ZooCache(zk, Set.of(Constants.ZTSERVERS))); |
There was a problem hiding this comment.
Attaching comment from issue discussing the relevance of this TODO. It looks like it is no longer relevant but could use Christopher's opinion.
#2699 (comment)

ThrottledBalancerProblemReporter.java. Added this logic onto existing .stream in the logger that logs 10 outstanding migrations.ClientContext.java.TabletServerBatchReaderIterator.java, the exception used here does not seem inconsistent since the retryCountDownTimer expired.Removes 3 TODOs from #2699