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

TemporalJoin cause state leak in some cases

    XMLWordPrintableJSON

Details

    Description

      Last year, I reported the similar bug of TemporalJoin cause state leak. Detail: FLINK-21833

      Recently, I found the fix code can reduce the the leak size but can not resolve it completely.

      The code of line 213 cause it and the right fix is to invoke cleanUp() method.

      In FLINK-21833, we discussed when the code is running on line 213, that means Left State, Right State, registeredTimerState is empty, actually the Left State and Right State value(MapState) is empty but the key is still be in state, So invoke state.clear() is necessary. 

      Attachments

        1. image-2022-01-29-11-11-11-705.png
          107 kB
          Lyn Zhang
        2. image-2022-01-29-11-11-27-550.png
          107 kB
          Lyn Zhang
        3. image-2022-01-29-11-11-31-967.png
          107 kB
          Lyn Zhang
        4. image-2022-01-29-11-12-43-016.png
          115 kB
          Lyn Zhang
        5. test.sql
          1 kB
          Lyn Zhang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zicat Lyn Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: