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

YarnResourceManagerDriverTest should not use ContainerStatusPBImpl.newInstance

    XMLWordPrintableJSON

Details

    Description

      In YarnResourceManagerDriverTest, we create ContainerStatus with the static method ContainerStatusPBImpl{{.newInstance}}, which is annotated as private and unstable.

      Although this method is still available in the latest version of yarn, some third-party versions of yarn may modify it. In fact, this method was modified in the internal version provided by our yarn team, which caused flink-1.14.0 to fail to compile.

      Moreover, there is already an org.apache.flink.yarn.TestingContainerStatus, I think we should use it directly.
       

      Attachments

        Issue Links

          Activity

            People

              Feifan Wang Feifan Wang
              Feifan Wang Feifan Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: