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

Properly handle InterruptedException in HadoopInputFormatBase

    XMLWordPrintableJSON

Details

    Description

      When catching InterruptedException, we should throw InterruptedIOException instead of IOException.

      The following example is from HadoopInputFormatBase :

          try {
            splits = this.mapreduceInputFormat.getSplits(jobContext);
          } catch (InterruptedException e) {
            throw new IOException("Could not get Splits.", e);
          }
      

      There may be other places where IOE is thrown.

      Attachments

        Activity

          People

            mingleizhang zhangminglei
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 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 - 10m
                10m