Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The log is logged as below.

  1. select the source file
  2. log the source file list one by one
  3. log `sequence` flag
  4. create the target file
  5. log the target file
  6. start merge process
  7. if finish merge a device, log (`device` `writer.offset`)
  8. log `merge finished`
  9. delete source files
  10. delete the ${storagegroup}.compaction.log file

We write 3 sequence files(0-0-0.tsfile,1-1-0.tsfile,2-2-0.tsfile) with 10 device(root.compactionTest.device0,root.compactionTest.device1,...,root.compactionTest.device9) as an example

...