adoroszlai commented on a change in pull request #3121:
URL: https://github.com/apache/ozone/pull/3121#discussion_r812808509
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/OMClientResponse.java
##########
@@ -85,8 +85,15 @@ public void checkStatusNotOK() {
*/
public void checkAndUpdateDB(OMMetadataManager omMetadataManager,
BatchOperation batchOperation) throws IOException {
- if (omResponse.getStatus() == OzoneManagerProtocolProtos.Status.OK) {
+ switch (omResponse.getStatus()) {
+ case PARTIAL_DELETE:
+ case PARTIAL_RENAME:
+ case OK:
addToDBBatch(omMetadataManager, batchOperation);
+ break;
+ default:
+ // do nothing
+ break;
Review comment:
I may be missing something, but I don't see such failing test case on
`master` (i.e. without the fix).
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]