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

There's a race in WAL segment rollover procedure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.11
    • Component/s: persistence
    • Labels:
      None
    • Release Note:
      Fix NullPointerException when run out automatic segment archiving after last record logging.
    • Ignite Flags:
      Release Notes Required

      Description

      It seems that something is wrong with the rollover procedure. 

      To reveal that it's enough to set setWalAutoArchiveAfterInactivity to some "small" value and give some constant load. 200ms works well for that. 

      Error stacktrace:

       

      SEVERE: Error when executing timeout callback: o.a.i.i.processors.cache.persistence.wal.FileWriteAheadLogManager$7@1995fe8aSEVERE: Error when executing timeout callback: o.a.i.i.processors.cache.persistence.wal.FileWriteAheadLogManager$7@1995fe8ajava.lang.NullPointerException at org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager.closeBufAndRollover(FileWriteAheadLogManager.java:898) at org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager.checkWalRolloverRequiredDuringInactivityPeriod(FileWriteAheadLogManager.java:786) at org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager.access$700(FileWriteAheadLogManager.java:158) at org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager$7.onTimeout(FileWriteAheadLogManager.java:749) at org.apache.ignite.internal.processors.timeout.GridTimeoutProcessor$TimeoutWorker.body(GridTimeoutProcessor.java:234) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120) at java.lang.Thread.run(Thread.java:748)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ktkalenko@gridgain.com Kirill Tkalenko
                Reporter:
                Vladimir Pligin Vladimir Pligin
                Reviewer:
                Ivan Bessonov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m