accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith-turner <>
Subject [GitHub] accumulo pull request: ACCUMULO-3645 Run iterators at major compac...
Date Tue, 17 Mar 2015 14:26:20 GMT
Github user keith-turner commented on a diff in the pull request:
    --- Diff: server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/
    @@ -2022,6 +2029,16 @@ protected AccumuloConfiguration createTableConfiguration(TableConfiguration
       private Set<FileRef> removeSmallest(Map<FileRef,DataFileValue> filesToCompact,
int maxFilesToCompact) {
         // ensure this method works properly when multiple files have the same size
    +    // short-circuit; also handles zero files case
    +    if (filesToCompact.size() <= maxFilesToCompact) {
    +      Set<FileRef> smallestFiles = new HashSet<FileRef>(filesToCompact.size());
    --- End diff --
    could do
          Set<FileRef> smallestFiles = new HashSet<FileRef>(filesToCompact.keySet());
          return smallestFiles;
    slightly easier to read than for loop

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message