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

Potential null pointer dereference in SavepointCoordinator#onFullyAcknowledgedCheckpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

          if (promise == null) {
            LOG.info("Pending savepoint with ID " + checkpoint.getCheckpointID() + "  has been " +
                "removed before receiving acknowledgment.");
          }
      
          // Sanity check
          if (promise.isCompleted()) {
            throw new IllegalStateException("Savepoint promise completed");
      

      Looks like a return statement is missing in the first if block above.

      Attachments

        Activity

          People

            mxm Maximilian Michels
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: