steveloughran commented on a change in pull request #1707: HADOOP-16697. 
Tune/audit auth mode
URL: https://github.com/apache/hadoop/pull/1707#discussion_r354274504
 
 

 ##########
 File path: 
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java
 ##########
 @@ -1991,6 +2082,51 @@ public RenameTracker initiateRenameOperation(
         new AncestorState(this, BulkOperationState.OperationType.Rename, 
dest));
   }
 
+  /**
+   * Mark the directories instantiated under the destination path
+   * as authoritative.
+   * @param dest destination path.
+   * @param operationState active state.
+   * @throws IOException failure.
+   * @return the number of directories marked.
+   */
+  @Override
+  public int markAsAuthoritative(final Path dest,
+      final BulkOperationState operationState) throws IOException {
+    if (operationState == null) {
+      return 0;
+    }
+    AncestorState state = (AncestorState)operationState;
 
 Review comment:
   not actually done in casts, AFAIK

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

Reply via email to