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

Ineffective synchronization in MessageAcknowledgingSourceBase#restoreState

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Here is related code:

        public void restoreState(SerializedCheckpointData[] state) throws Exception {
          synchronized (pendingCheckpoints) {
            pendingCheckpoints = SerializedCheckpointData.toDeque(state, idSerializer);
      

      When lock is held on current pendingCheckpoints field, new reference is assigned to the same field - making the synchronization ineffective.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: