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

Potential null pointer dereference in SavepointCoordinator#onFullyAcknowledgedCheckpoint

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: