This is an automated email from the ASF dual-hosted git repository.

mpetrov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b5d30c8556 IGNITE-18830 Fixed erroneous logging of failed index 
rebuild (#10831)
9b5d30c8556 is described below

commit 9b5d30c8556323a41ea18a3e3f326aa745322ba2
Author: ZhangJian He <[email protected]>
AuthorDate: Tue Sep 5 05:15:06 2023 +0800

    IGNITE-18830 Fixed erroneous logging of failed index rebuild (#10831)
---
 .../apache/ignite/internal/processors/query/GridQueryProcessor.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
index b3415101a40..d5b53e0af6c 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java
@@ -2637,8 +2637,10 @@ public class GridQueryProcessor extends 
GridProcessorAdapter {
             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);
 

Reply via email to