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

Make GridEncryptionManager#onWalSegmentRemoved async

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10
    • Component/s: persistence
    • Labels:
    • Release Note:
      Asynchronous clearing of encrypted keys for truncated WAL segments.
    • Ignite Flags:
      Release Notes Required

      Description

      When implementing IGNITE-13831 I was faced with deadlock.

      When execute FileWriteAheadLogManager#rollOver, begin to clean WAL archive since we have reached the DataStorageConfiguration#maxWalArchiveSize, after deleting a segment, execute the GridEncryptionManager#onWalSegmentRemoved that wants to write to the metastore, but it will not succeed, since it will wait for FileWriteAheadLogManager#rollOver.

      I suggest making the GridEncryptionManager#onWalSegmentRemoved asynchronous in a separate pool, for example, as a CacheGroupPageScanner#singleExecSvc.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ktkalenko@gridgain.com Kirill Tkalenko
                Reporter:
                ktkalenko@gridgain.com Kirill Tkalenko
                Reviewer:
                Vladislav Pyatkov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 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