You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2020/11/03 14:10:04 UTC

[GitHub] [accumulo] ctubbsii commented on a change in pull request #1762: Moves gc candidate code insertion to Ample

ctubbsii commented on a change in pull request #1762:
URL: https://github.com/apache/accumulo/pull/1762#discussion_r516368310



##########
File path: server/base/src/main/java/org/apache/accumulo/server/metadata/ServerAmpleImpl.java
##########
@@ -126,6 +127,25 @@ public void putGcCandidates(TableId tableId, Collection<StoredTabletFile> candid
     }
   }
 
+  @Override
+  public void putGcFdCandidates(TableId tableId, Collection<String> candidates) {
+
+    if (RootTable.ID.equals(tableId)) {
+      // Directories are unexpected for the root tablet, so convert to stored tablet file
+      mutateRootGcCandidates(
+          rgcc -> rgcc.add(Collections2.transform(candidates, StoredTabletFile::new)));

Review comment:
       That works. :smiley_cat: 




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