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

Metrics cannot be initialized in format

    XMLWordPrintableJSON

Details

    Description

       
      I want to use metrics in a custom format, I wrote it like this

      ProtobufRowDeserializationSchema implements DeserializationSchema<Row>{
      private transient MetricGroup metrics;
      @Override 
      public void open(InitializationContext context) throws Exception { 
      metrics = context.getMetricGroup(); 
       }
      }
      

      But, received an `metrics` NPE. it stands to reason that the metrics have already been initialized. 

       

      jark, lzljs3620320 , Looking forward to your reply.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            liufangliang Fangliang Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: