isaric commented on PR #5415:
URL: https://github.com/apache/solr/pull/5415#issuecomment-7403398123

   Happy to. On `main` the second key part was called `coreNodeName` but held 
whatever the caller passed: the `Replica` overload passed `replica.getName()` 
(a core-node name such as `core_node4`), `CreateCollectionCmd` passed the core 
name, `SplitShardCmd` the sub-shard core name, and `AddReplicaCmd` passed 
`createReplica.coreNodeName`, which is usually null before the replica exists, 
hence the node-only keys. `ShardRequest.coreNodeName` was written by 
`sendShardRequest` and by the REQUESTSTATUS poll and read back only to build 
the key; nothing else reads it. (`CollApiCmds` still sets it on the 
fire-and-forget REJOINLEADERELECTION request, whose response is never 
processed.)
   
   I settled on the core name because it exists for every request, including 
creates, so there are no more node-only keys; it is what the sub-response 
itself reports as `core`, so key and value agree; and it is unique per node, 
which with the action makes the key unique. `ShardRequest.coreName` already 
existed as a field. If you'd rather see the core-node name where one exists, 
that change is confined to `sendShardRequest(Replica, ...)`, but creates would 
still need the core name as a fallback, so the key would mix the two again.


-- 
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]

Reply via email to