@Test
  public void testCompactingMemStoreWriteLargeCellAndSmallCellConcurrently()
    throws IOException, InterruptedException {
    doWriteTestLargeCellAndSmallCellConcurrently(
      (smallCellByteSize, largeCellByteSize) -> largeCellByteSize - 1);
    doWriteTestLargeCellAndSmallCellConcurrently(
      (smallCellByteSize, largeCellByteSize) -> largeCellByteSize);
    doWriteTestLargeCellAndSmallCellConcurrently(
      (smallCellByteSize, largeCellByteSize) -> smallCellByteSize + largeCellByteSize - 1);
    doWriteTestLargeCellAndSmallCellConcurrently(
      (smallCellByteSize, largeCellByteSize) -> smallCellByteSize + largeCellByteSize);
    doWriteTestLargeCellAndSmallCellConcurrently(
      (smallCellByteSize, largeCellByteSize) -> smallCellByteSize + largeCellByteSize + 1);
  }
This test is for HBASE-27464, before this JIRA,when init {@link CellChunkImmutableSegment} for
'COMPACT' action, we not force copy to current MSLab. When cell size bigger than
{@link MemStoreLABImpl#maxAlloc}, cell will stay in previous chunk which will recycle after
segment replace, and we may read wrong data when these chunk reused by others.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHStore.java