@Override
  protected List<Segment> getSegments() {
    List<? extends Segment> pipelineList = pipeline.getSegments();
    List<Segment> list = new ArrayList<>(pipelineList.size() + 2);
    list.add(getActive());
    list.addAll(pipelineList);
    list.addAll(snapshot.getAllSegments());

    return list;
  }
Issue any synchronization and test needed before applying the update For compacting memstore
this means checking the update can increase the size without overflow
@param currentActive  the segment to be updated
@param cell           the cell to be added
@param memstoreSizing object to accumulate region size changes
@return true iff can proceed with applying the update
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactingMemStore.java