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

KafkaSourceReader overrides meaninglessly a method(pauseOrResumeSplits)

    XMLWordPrintableJSON

Details

    Description

      KafkaSourceReader overrides meaninglessly a method(pauseOrResumeSplits) ,which is no difference with its Parent class (SourceReaderBase). why not remove this override method?

       

      Relative code is here, which we can see is no difference?

      //org.apache.flink.connector.kafka.source.reader.KafkaSourceReader#pauseOrResumeSplits
      @Override
      public void pauseOrResumeSplits(
              Collection<String> splitsToPause, Collection<String> splitsToResume) {
          splitFetcherManager.pauseOrResumeSplits(splitsToPause, splitsToResume);
      } 
      
      //org.apache.flink.connector.base.source.reader.SourceReaderBase#pauseOrResumeSplits
      @Override
      public void pauseOrResumeSplits(
              Collection<String> splitsToPause, Collection<String> splitsToResume) {
          splitFetcherManager.pauseOrResumeSplits(splitsToPause, splitsToResume);
      }

      Attachments

        Issue Links

          Activity

            People

              loserwang1024 Hongshun Wang
              loserwang1024 Hongshun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: