joooger commented on a change in pull request #5676: IGNITE-10654 Print warn 
message in case of index creating with already existing fields.
URL: https://github.com/apache/ignite/pull/5676#discussion_r267226937
 
 

 ##########
 File path: 
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Table.java
 ##########
 @@ -196,6 +207,14 @@ public GridH2Table(
         sysIdxsCnt = idxs.size();
 
         lock = new ReentrantReadWriteLock();
+
+        if (desc != null && desc.context() != null) {
+            GridKernalContext ctx = desc.context().kernalContext();
+
+            log = ctx.log(getClass());
+        }
+
+        assert log != null;
 
 Review comment:
   It look a little bit strange. Check that log initialized, but it initialized 
only in case desc and context fro desc are exist.
   Also I don't see cases when it can happen ( desc is null or context is 
null). Why did you add such check?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to