ololo3000 commented on a change in pull request #8204:
URL: https://github.com/apache/ignite/pull/8204#discussion_r484302696



##########
File path: 
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/dml/DmlUtils.java
##########
@@ -194,10 +197,16 @@ private static long dmlDoInsert(UpdatePlan plan, 
Iterable<List<?>> cursor, int p
         if (plan.rowCount() == 1) {
             IgniteBiTuple t = plan.processRow(cursor.iterator().next());
 
-            if (cctx.cache().putIfAbsent(t.getKey(), t.getValue()))
-                return 1;
-            else
-                throw new TransactionDuplicateKeyException("Duplicate key 
during INSERT [key=" + t.getKey() + ']');
+            try (
+                MTC.TraceSurroundings ignored = 
MTC.support(cctx.kernalContext().tracing()
+                    .create(SQL_CACHE_UPDATE, MTC.span())
+                    .addTag(SQL_CACHE_UPDATES, () -> Integer.toString(1)))

Review comment:
       Thanks. Done.




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


Reply via email to