Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-26853

HeapStateBackend ignores metadata updates in certain cases

    XMLWordPrintableJSON

Details

    Description

      On recovery, HeapRestoreOperation reads state handles one by one;

      • each handle contains metadata at the beginning;
      • the metadata is always read, but not actually used if a state with the corresponding name was already registered

      In a rare case of downscaling + multiple checkpoints with different metadata; this might lead to data being deserialized incorrectly (always using the initial metadata).

      It also prevents incremental checkpoints with schema evolution.

      On first access, however, the backend itself will update (merge) metadata; so that it doesn't affect new state updates.

      Attachments

        Issue Links

          Activity

            People

              masteryhx Hangxiang Yu
              roman Roman Khachatryan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: