Class TestWALMonotonicallyIncreasingSeqId

java.lang.Object
org.apache.hadoop.hbase.regionserver.TestWALMonotonicallyIncreasingSeqId

Test for HBASE-17471.

MVCCPreAssign is added by HBASE-16698, but pre-assign mvcc is only used in put/delete path. Other write paths like increment/append still assign mvcc in ringbuffer's consumer thread. If put and increment are used parallel. Then seqid in WAL may not increase monotonically Disorder in wals will lead to data loss.

This case use two thread to put and increment at the same time in a single region. Then check the seqid in WAL. If seqid is wal is not monotonically increasing, this case will fail