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

JDBCInputFormat.nextRecord(..) has misleading message on NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.10.2
    • 1.0.1, 1.1.0
    • None
    • None

    Description

      JDBCInputFormat.nextRecord(..) assumes that a NullPointerException could only occur by the resultSet being null. It rethrows an exception with the message "Couldn't access resultSet". See FLINK-3471 for an example of where the NPE could come from another situation. Either the message should be changed or the scope of the try/catch should be tightened around the resultSet.next();

      Attachments

        Activity

          People

            chesnay Chesnay Schepler
            kgeis Ken Geis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: