public Segment getTail() {
    List<? extends Segment> localCopy = getSegments();
    if (localCopy.isEmpty()) {
      return null;
    }
    return localCopy.get(localCopy.size() - 1);
  }
Checking that the {@link Segment}s in suffix input parameter is same as the {@link Segment}s in
{@link CompactionPipeline#pipeline} one by one from the last element to the first element of
suffix. If matched, remove suffix from {@link CompactionPipeline#pipeline}. <br/>
Must be called under the {@link CompactionPipeline#pipeline} Lock.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionPipeline.java