solr icon indicating copy to clipboard operation
solr copied to clipboard

SOLR-17934: Remove Request ID based tracing

Open epugh opened this issue 3 months ago • 5 comments

https://issues.apache.org/jira/browse/SOLR-17934

Description

Remove Request ID

Solution

I thought it would be more intrusive to remove this, seems pretty straingt forward.

epugh avatar Sep 28 '25 12:09 epugh

Changes seem fine.

I see a test failure: org.apache.solr.client.solrj.impl.CloudSolrClientRoutingTest#routeParamHandling

  2> 	at org.apache.solr.handler.component.DebugComponent.handleResponses(DebugComponent.java:196)
  2> java.lang.NullPointerException: Cannot invoke "org.apache.solr.common.util.NamedList.get(String)" because the return value of "org.apache.solr.common.util.NamedList.get(String)" is null
  2> 	at org.apache.solr.handler.component.DebugComponent.handleResponses(DebugComponent.java:196) ~[main/:?]
  2> 	at org.apache.solr.handler.component.SearchHandler.processComponents(SearchHandler.java:657) ~

dsmiley avatar Sep 28 '25 18:09 dsmiley

@dsmiley is it possible that part of the scope of this is to remove the CommonParams.TRACK property? The comment for it is value indicating an interest in debug output related to the distributed tracking, and I THINK by removing the request id, we have gutted what the TRACK had. I noticed it's not documented either in the ref guide, unlike some other values: https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html#debug-parameter. I can't really figure out how to get that one test to pass that is failing without providing some sort of dummy value in the track?

epugh avatar Oct 24 '25 15:10 epugh

@dsmiley is it possible that part of the scope of this is to remove the CommonParams.TRACK property? The comment for it is value indicating an interest in debug output related to the distributed tracking, and I THINK by removing the request id, we have gutted what the TRACK had. I noticed it's not documented either in the ref guide, unlike some other values: https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html#debug-parameter. I can't really figure out how to get that one test to pass that is failing without providing some sort of dummy value in the track?

I dug more, and it looks like that is how we track various bits of data when going to various shards... Maybe the org.apache.solr.client.solrj.impl.CloudSolrClientRoutingTest#routeParamHandling is no longer needed?

epugh avatar Oct 24 '25 16:10 epugh

Just a quick thought -- it may be helpful to go back to the commit that added this (I remember; it was Jason and I was looking at it), and see what it touched exactly. It's so long ago that a revert will unlikely be suitable but that's fine. If that doesn't readily uncover a fix to whatever is stuck here, just LMK and I'll debug.

dsmiley avatar Oct 30 '25 01:10 dsmiley

@dsmiley I've poked again at this, and I would love fresh eyes on this.... Would you be willing to take a look? It's so close...

epugh avatar Dec 04 '25 12:12 epugh