I suggest to reduce the code under `synchronized` using:
```
return operators.putIfAbsent(key, operator);
```
Also, I would rename `addOperator` function name to `getOrAddOperatorMetric`.

[ Full content available at: https://github.com/apache/flink/pull/6599 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to