arp7 commented on a change in pull request #949: HDDS-1672. Improve locking in OzoneManager. URL: https://github.com/apache/hadoop/pull/949#discussion_r295928408
########## File path: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/volume/OMVolumeDeleteRequest.java ########## @@ -104,37 +104,23 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager, OmVolumeArgs omVolumeArgs = null; String owner = null; - + IOException exception = null; + OzoneManagerProtocolProtos.VolumeList newVolumeList = null; omMetadataManager.getLock().acquireVolumeLock(volume); try { owner = getVolumeInfo(omMetadataManager, volume).getOwnerName(); - } catch (IOException ex) { - LOG.error("Volume deletion failed for volume:{}", volume, ex); - omMetrics.incNumVolumeDeleteFails(); - auditLog(auditLogger, buildAuditMessage(OMAction.DELETE_VOLUME, - buildVolumeAuditMap(volume), ex, userInfo)); - return new OMVolumeDeleteResponse(null, null, null, - createErrorOMResponse(omResponse, ex)); - } finally { - omMetadataManager.getLock().releaseVolumeLock(volume); - } - // Release and reacquire lock for now it will not be a problem for now, as - // applyTransaction serializes the operation's. - // TODO: Revisit this logic once HDDS-1672 checks in. + // Release and reacquire lock for now it will not be a problem for now, as Review comment: Obsolete comment? ---------------------------------------------------------------- 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: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org