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

Unprotected access to elements in ClosableBlockingQueue#size()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      Here is related code:

        public int size() {
          return elements.size();
        }
      

      Access to elements should be protected by lock.lock() / lock.unlock() pair.

      Attachments

        Activity

          People

            sewen Stephan Ewen
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: