[
https://issues.apache.org/jira/browse/SOLR-15884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467259#comment-17467259
]
Christine Poerschke commented on SOLR-15884:
--------------------------------------------
Based on similar unexpected formatting elsewhere in the code base (in the past)
and a quick look at the code I would guess that at
https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.11.1/solr/core/src/java/org/apache/solr/handler/IncrementalShardBackup.java#L136
(or rather {{solr/main}} branch equivalent) a change
{code}
- NamedList<Object> details = new NamedList<>();
+ NamedList<Object> details = new SimpleOrderedMap<>();
{code}
would correct the formatting but we'd have to carefully analyse what the
implications of such a change are.
I have no specific plans to work on making this change but created this ticket
in case others perhaps have interest and bandwidth. Thank you.
> unexpected response format in Collection Backup Status
> ------------------------------------------------------
>
> Key: SOLR-15884
> URL: https://issues.apache.org/jira/browse/SOLR-15884
> Project: Solr
> Issue Type: Task
> Components: Backup/Restore
> Reporter: Christine Poerschke
> Priority: Minor
>
> When learning from [~ricrui3]'s and [~tyoma]'s analysis in SOLR-15842 I
> noticed "array" rather than "dictionary" formatting i.e.
> {code}
> "response": [
> "collection",
> "collectionName",
> "numShards",
> 2,
> "backupId",
> 1,
> "indexVersion",
> "8.10.1",
> "startTime",
> "2021-12-04T06:12:52.540773Z",
> "indexSizeMB",
> 0.0
> ]
> {code}
> instead of
> {code}
> "response": {
> "collection":"collectionName",
> "numShards":2,
> "backupId":1,
> "indexVersion":"8.10.1",
> "startTime":"2021-12-04T06:12:52.540773Z",
> "indexSizeMB":0.0
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]