[GitHub] [hadoop-ozone] bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete replayed entry from OpenKeyTable during commit

2020-03-28 Thread GitBox
bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete 
replayed entry from OpenKeyTable during commit
URL: https://github.com/apache/hadoop-ozone/pull/625#discussion_r399699101
 
 

 ##
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequest.java
 ##
 @@ -147,11 +146,6 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager,
 throw new OMException("Failed to commit Multipart Upload key, as " +
 openKey + "entry is not found in the openKey table",
 KEY_NOT_FOUND);
-  } else {
-// Check the OpenKeyTable if this transaction is a replay of ratis 
logs.
 
 Review comment:
   Got it. thanks.


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


With regards,
Apache Git Services

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



[GitHub] [hadoop-ozone] bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete replayed entry from OpenKeyTable during commit

2020-03-26 Thread GitBox
bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete 
replayed entry from OpenKeyTable during commit
URL: https://github.com/apache/hadoop-ozone/pull/625#discussion_r398972414
 
 

 ##
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/multipart/S3MultipartUploadCommitPartRequest.java
 ##
 @@ -147,11 +146,6 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager,
 throw new OMException("Failed to commit Multipart Upload key, as " +
 openKey + "entry is not found in the openKey table",
 KEY_NOT_FOUND);
-  } else {
-// Check the OpenKeyTable if this transaction is a replay of ratis 
logs.
 
 Review comment:
   Not understood why this check is removed.


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


With regards,
Apache Git Services

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



[GitHub] [hadoop-ozone] bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete replayed entry from OpenKeyTable during commit

2020-03-23 Thread GitBox
bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete 
replayed entry from OpenKeyTable during commit
URL: https://github.com/apache/hadoop-ozone/pull/625#discussion_r396581977
 
 

 ##
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java
 ##
 @@ -183,21 +196,26 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager,
   new CacheKey<>(dbOzoneKey),
   new CacheValue<>(Optional.of(omKeyInfo), trxnLogIndex));
 
-  omResponse.setCommitKeyResponse(CommitKeyResponse.newBuilder().build());
   omClientResponse = new OMKeyCommitResponse(omResponse.build(),
-  omKeyInfo, commitKeyRequest.getClientID());
+  omKeyInfo, dbOpenKey);
 
 Review comment:
   I see that we are doing similar thing for ozone key, so that is why my 
question. Then we can do similar thing for ozone key also then?


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


With regards,
Apache Git Services

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



[GitHub] [hadoop-ozone] bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete replayed entry from OpenKeyTable during commit

2020-03-22 Thread GitBox
bharatviswa504 commented on a change in pull request #625: HDDS-2980. Delete 
replayed entry from OpenKeyTable during commit
URL: https://github.com/apache/hadoop-ozone/pull/625#discussion_r396189604
 
 

 ##
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java
 ##
 @@ -183,21 +196,26 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager,
   new CacheKey<>(dbOzoneKey),
   new CacheValue<>(Optional.of(omKeyInfo), trxnLogIndex));
 
-  omResponse.setCommitKeyResponse(CommitKeyResponse.newBuilder().build());
   omClientResponse = new OMKeyCommitResponse(omResponse.build(),
-  omKeyInfo, commitKeyRequest.getClientID());
+  omKeyInfo, dbOpenKey);
 
 Review comment:
   We can still pass here  clientID and generate openKey. Like how we used to 
generate open key before.


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


With regards,
Apache Git Services

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