You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "gerlowskija (via GitHub)" <gi...@apache.org> on 2023/05/02 11:09:12 UTC

[GitHub] [solr-sandbox] gerlowskija commented on pull request #57: Add 'collection' MDC to more producer logs

gerlowskija commented on PR #57:
URL: https://github.com/apache/solr-sandbox/pull/57#issuecomment-1531284682

   > is [...] request.getCollection [...] sufficient for all cases or if you should check the params as well.
   
   It looks like `request.getCollection` only looks at the params actually. The impl is just:
   
   ```
     public String getCollection() {
       return getParams() == null ? null : getParams().get("collection");
     }
   ```
   
   ...which does seem a little suspect to me generally.  But in our case here I think it should actually be right.  I'm not seeing the collection referenced anywhere, going all the way back to `KafkaCrossDcConsumer.pollAndProcessRequests` where we create these UpdateRequests.  So if it's coming through at all (which it definitely is) it must be in the params.


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org