adelapena commented on code in PR #1742:
URL: https://github.com/apache/cassandra/pull/1742#discussion_r941353512


##########
src/java/org/apache/cassandra/db/compaction/CompactionManager.java:
##########
@@ -812,11 +812,20 @@ protected void runMayThrow()
         return futures;
     }
 
+    /**
+     * Forces a major compaction of specified token ranges of the specified 
column family.
+     * <p>
+     * The token ranges will be interpreted as closed intervals to match the 
closed interval defined by the first and
+     * last keys of a sstable, even though the {@link Range} class is 
suppossed to be half-open by definition.
+     *
+     * @param cfStore The column family store to be compacted.
+     * @param ranges The token ranges to be compacted, interpreted as closed 
intervals.
+     */
     public void forceCompactionForTokenRange(ColumnFamilyStore cfStore, 
Collection<Range<Token>> ranges)
     {
         Callable<Collection<AbstractCompactionTask>> taskCreator = () -> {
             Collection<SSTableReader> sstables = sstablesInBounds(cfStore, 
ranges);
-            if (sstables == null || sstables.isEmpty())
+            if (sstables.isEmpty())

Review Comment:
   Fine with me. The unneeded null check isn't on trunk nor 4.1, so it will 
remain on 3.11 and 4.0.



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

Reply via email to