sergey-chugunov-1985 commented on code in PR #1235:
URL: https://github.com/apache/ignite-3/pull/1235#discussion_r1006789484


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/replicator/PartitionReplicaListener.java:
##########
@@ -925,9 +993,18 @@ private CompletableFuture<Object> 
processSingleEntryAction(ReadWriteSingleRowRep
                 CompletableFuture<RowId> lockFut = 
takeLocksForUpsert(searchKey, indexId, txId);
 
                 return lockFut.thenCompose(lockedRowId -> {
-                    CompletableFuture raftFut =
-                            lockedRowId != null ? 
applyCmdWithExceptionHandling(new UpdateCommand(lockedRowId, searchRow, txId)) :
-                                    applyCmdWithExceptionHandling(new 
UpdateCommand(new RowId(partId), searchRow, txId));
+                    RowIdMessage rowIdMsg = lockedRowId != null ? 
RowIdMessage.fromRowId(msgFactory, lockedRowId) :
+                            msgFactory.rowIdMessage()
+                                    .partitionId((short) partId)
+                                    .uuid(Timestamp.nextVersion().toUuid())
+                                    .build();
+
+                    CompletableFuture raftFut = applyCmdWithExceptionHandling(

Review Comment:
   I had to add very generic CompletableFuture<Object> - to me it is not very 
useful but at least it eliminated IDE warnings.



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