You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/04/22 19:04:29 UTC

[GitHub] [hadoop-ozone] xiaoyuyao commented on a change in pull request #691: HDDS-3226. Tracing Ozone Manager DB write batch operations.

xiaoyuyao commented on a change in pull request #691:
URL: https://github.com/apache/hadoop-ozone/pull/691#discussion_r413244434



##########
File path: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java
##########
@@ -135,10 +138,20 @@ private void flushTransactions() {
           try(BatchOperation batchOperation = omMetadataManager.getStore()
               .initBatchOperation()) {
 
+            AtomicReference<String> lastTraceId = new AtomicReference<>();

Review comment:
       This is a workaround to update the lastTraceId from the lambda.  Java lambdas require the captured local variable must be final or effectively final. 




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org