korlov42 commented on code in PR #5113:
URL: https://github.com/apache/ignite-3/pull/5113#discussion_r1930642025


##########
modules/storage-api/src/main/java/org/apache/ignite/internal/storage/index/StorageHashIndexDescriptor.java:
##########
@@ -93,7 +94,7 @@ public String toString() {
      * @param index Catalog index descriptor.
      */
     public StorageHashIndexDescriptor(CatalogTableDescriptor table, 
CatalogHashIndexDescriptor index) {
-        this(index.id(), extractIndexColumnsConfiguration(table, index), 
!index.isCreatedWithTable());
+        this(index.id(), extractIndexColumnsConfiguration(table, index), 
index.status() == CatalogIndexStatus.REGISTERED);

Review Comment:
   @ibessonov thanks for the explanation! I'd just want to clarify a few 
things...
   
   As far as I see, the only difference is whether we rebuild index or not. And 
even if the index was fully built, and complete index tree was rebalanced (<-- 
I may be wrong in this assumption) to a newly joined node, we still will 
rebuild index locally just because it was created this way on other nodes. But 
this won't make the index tree exactly the same anyway.
   
   Is my understanding correct? 



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to