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

Remove redundant test path in WordCountMapredITCase

    XMLWordPrintableJSON

    Details

      Description

      method : 

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

      Previously, in order to test the 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

              • Assignee:
                winipanda TANG Wen-hui
                Reporter:
                yanghua vinoyang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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