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

TM cannot exit after Metaspace OOM

    XMLWordPrintableJSON

Details

    Description

      Hi masters, from the code and log, we can see that OOM will terminateJVM directly, but Metaspace OutOfMemoryError will graceful shutdown. The code comment mentions: it does not usually require more class loading to fail again with the Metaspace OutOfMemoryError..

      But we encountered: after Metaspace OutOfMemoryError, java.lang.NoClassDefFoundError: Could not initialize class org.apache.flink.runtime.taskexecutor.TaskManagerRunner$Result., makes Tm unable to exit, keeps trying again, keeps NoClassDefFoundError, keeps class loading failure, until kill tm by manually.

      I want to add a catch Throwable in the onFatalError method, and directly terminateJVM() in the catch. Is there any problem with this strategy? 

       

      code link

      picture:

       

       

       

       

      Attachments

        1. image-2021-09-29-12-00-28-510.png
          619 kB
          Rui Fan
        2. image-2021-09-29-12-00-44-812.png
          166 kB
          Rui Fan

        Issue Links

          Activity

            People

              fanrui Rui Fan
              fanrui Rui Fan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: