sarkaramrit1993 opened a new pull request, #5393: URL: https://github.com/apache/solr/pull/5393
# Description [SOLR-18682](https://issues.apache.org/jira/browse/SOLR-18682): with the Overseer, a traced Collection API request and its command land in unrelated traces, because the ZK queue message carries no trace context. Distributed mode already links them. # Solution - The Overseer message carries the caller's trace context as `_trace.*` keys. `TraceAwareCommand` parents the command span on it and strips the keys before the command runs. - MODIFYCOLLECTION and CREATEALIAS are skipped. An older Overseer mid-upgrade passes the keys through: `ModifyCollectionCmd` waits for them in state, routed `CreateAliasCmd` writes them to `aliases.json`. Out of scope: traces for those two commands, Config Set API messages, and checking MIGRATE, REINDEXCOLLECTION, DELETESHARD, RENAME and RESTORE against an older Overseer. # Tests `TestDistributedTracing`: one trace for create and delete (fails on main), no span for an unsampled caller, a routed alias stores no trace context. `testV2Api.json` only re-nests the core reload spans. `TraceAwareCommandTest`: the command never sees `_trace.*` keys. -- 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]
