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

Provide an implementation of a thread-safe counter

    XMLWordPrintableJSON

    Details

    • Release Note:
      The PR is ignored. I guess the community think that we don't need provide an implementation. So just close this.

      Description

      While adding metrics to Elasticsearch connector, we noticed that the SimpleCounter which seems like the main implementation of Counter interface is not thread-safe. It makes it tricky/expensive to use it in a multi-threaded context. 

      Biao Liu mentioned that SimpleCounter is being used in many performance-sensitive code paths, so instead of changing it directly, we can provide a new thread-safe implementation of Counter.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                SleePy Biao Liu
                Reporter:
                pgoyal Piyush Goyal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m