Skip to content

Commit

Permalink
IGNITE-18830 Fixed erroneous logging of failed index rebuild (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shoothzj authored Sep 4, 2023
1 parent dbf1c78 commit 9b5d30c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2637,8 +2637,10 @@ private IgniteInternalFuture<?> rebuildIndexesFromHash0(
idxFut.listen(() -> {
Throwable err = idxFut.error();

if (isNull(err) && log.isInfoEnabled())
log.info("Finished indexes rebuilding for cache " + cacheInfo);
if (isNull(err)) {
if (log.isInfoEnabled())
log.info("Finished indexes rebuilding for cache " + cacheInfo);
}
else if (!(err instanceof NodeStoppingException))
log.error("Failed to rebuild indexes for cache " + cacheInfo, err);

Expand Down

0 comments on commit 9b5d30c

Please sign in to comment.