rajeshkumarchandolu commented on code in PR #12145:
URL: https://github.com/apache/ozone/pull/12145#discussion_r4695797639
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineManagerImpl.java:
##########
@@ -221,9 +224,10 @@ public Pipeline createPipeline(ReplicationConfig
replicationConfig,
throws IOException {
checkIfPipelineCreationIsAllowed(replicationConfig);
- acquireWriteLock();
+ TracingUtil.executeInNewSpan("PipelineManagerImpl.acquireWriteLock", () ->
acquireWriteLock());
Review Comment:
I'd like to keep it. On an idle cluster the wait is negligible (median 13
µs, max 140 µs in a compose run), but on a busy cluster many allocations that
need a new pipeline can queue on this write lock at the same time, and the lock
span then shows directly how long each of them waited. That makes lock
contention visible in the traces when the cluster is in a bad state, which is
exactly when it is needed. The cost is one short span per pipeline creation.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]