isaric commented on code in PR #5407: URL: https://github.com/apache/solr/pull/5407#discussion_r4750945179
########## solr/core/src/java/org/apache/solr/cloud/api/collections/CollectionHandlingUtils.java: ########## Review Comment: Tried it: the helpers returning `Map<String, Object>` with `put`, and every server-side reader on the `Map` API. `TestRequestStatusCollectionAPI` then fails on SPLITSHARD's REQUESTSTATUS: it expects 7 sub-responses under `success` and gets 3. `success`/`failure` are not unique-key maps today: `processResponse` keys by `node` or `node/replica`, `AddReplicaCmd` sends core creates keyed by node only, and multi-phase commands record one entry per phase under the same key. On `main` these repeats already sit inside a `SimpleOrderedMap`, which renders them as duplicate JSON properties. A `Map` collapses them. So this PR keeps the two sections as `main` has them (a `SimpleOrderedMap` filled with `add`), and the merge of the top-level repeats stands. Making the sections real maps needs a unique key per request (node/core/action, or a list of sub-responses), and it has to carry `CollectionAdminResponse.getCollectionStatus()` / `getErrorMessages()`, which cast to `NamedList` while javabin decodes a plain map as `LinkedHashMap` by default. I'd take that as a follow-up under SIP-22 if you want it. -- 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]
