Clone
Murtadha Makki Al Hubail
committed
on 21 May
[ASTERIXDB-2738][STO] Create Mask File Before Merge Operations
- user model changes: no
- storage format changes: no
- interface changes: no… Show more
[ASTERIXDB-2738][STO] Create Mask File Before Merge Operations

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Before starting a merge operation, create a mask file

 (.mask_C_startSeq_endSeq) for the merged component to

 indicate that this component isn't valid yet.

- On the merge operation successful completion, delete the

 merged component mask file.

- In the case of any unexpected failure during the merge

 operation, all files of the failed merged component will

 be deleted on node startup/shutdown, including the mask

 file.

- Halt on any IO opeartion failure.

- Add a test case that ensures only masked merged components

 are deleted but not the original components that were

 supposed to be merged.

Change-Id: I476dd3be5e75468e83044b3aaf0f6c2d8beadf1c

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6425

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Murtadha Hubail <mhubail@apache.org>

Reviewed-by: Luo Chen <cluo8@uci.edu>

Show less