rpuch commented on code in PR #5725:
URL: https://github.com/apache/ignite-3/pull/5725#discussion_r2068365004


##########
modules/index/src/main/java/org/apache/ignite/internal/index/IndexBuildController.java:
##########
@@ -541,7 +545,12 @@ private static MvPartitionStorage mvPartitionStorage(
             int tableId,
             int partitionId
     ) {
-        MvPartitionStorage mvPartition = 
mvTableStorage.getMvPartition(partitionId);
+        MvPartitionStorage mvPartition;

Review Comment:
   Current method already has just that try/catch and an assertion, this is 
just a few lines, so there doesn't seem to be any readability problem that 
needs to be solved. If we introduce a new method, we'll have 2 tiny methods, 
both of which will be almost of the same size as current one; they will have 
almost identical meaning, but the outer will additionally make the assertion. I 
find it difficult to invent meaningful names for them.
   
   To sum up, I'd prefer to leave the current method in its current form.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to