Jackie-Jiang commented on code in PR #13668: URL: https://github.com/apache/pinot/pull/13668#discussion_r1715806024
########## pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/IngestionDelayTracker.java: ########## @@ -214,7 +230,7 @@ private long getPartitionOffsetLag(IngestionOffsets offset) { * * @param partitionGroupId partition ID which we should stop tracking. */ - private void removePartitionId(int partitionGroupId) { + private synchronized void removePartitionId(int partitionGroupId) { Review Comment: After some consideration, I've updated the code to use the existing concurrent map to sync the metrics update/removal. This way the overhead is minimal, and I've merged the 2 maps into 1 to further reduce the overhead. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org