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

Remove redundant test path in WordCountMapreduceITCase

    XMLWordPrintableJSON

Details

    Description

      method:

       

      protected void testProgram() throws Exception {
         internalRun(true);
         postSubmit();
         resultPath = getTempDirPath("result2");
         internalRun(false);
         postSubmit();
      }
      

      Previously, in order to test deprecated API, the following code snippet existed:

       

      if (isTestDeprecatedAPI) {
         input = env.createInput(HadoopInputs.readHadoopFile(new TextInputFormat(),
            LongWritable.class, Text.class, textPath));
      } else {
         input = env.createInput(readHadoopFile(new TextInputFormat(),
            LongWritable.class, Text.class, textPath));
      }
      

      But now, the related APIs have been removed from the DataSet, so the code needs to be refactored to make it clearer.

       

       

      Attachments

        Issue Links

          Activity

            People

              winipanda TANG Wen-hui
              yanghua vinoyang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m