Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-10671

Double initialization of segmentAware and FileArchiver lead to race breaking file compression.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.8
    • None
    • None

    Description

      Race is painful when you switch your cluster from walCompaction=false to walCompaction=true.

      The same FileCompressor instance will use different segmentAwares due to start0() is called twice which leads to inconsistent behaviour and errors during compaction, basically we will try to archive files twice concurrently.

      See reproducer in attachment.

      Attachments

        1. WalCompactionSwitchOverTest.java
          3 kB
          Pavel Voronkin

        Issue Links

          Activity

            People

              voropava Pavel Voronkin
              voropava Pavel Voronkin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: