You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/12/09 02:43:21 UTC

[GitHub] [solr] iamsanjay commented on pull request #1224: [SOLR-16490] Create a v2 equivalent for /admin/cores BACKUPCORE+RESTORECORE

iamsanjay commented on PR #1224:
URL: https://github.com/apache/solr/pull/1224#issuecomment-1343769347

   Hello @gerlowskija,
   
   Response from the V2 API is squashed into the Solr Response without header using the method.
   
   `V2ApiUtils.squashIntoSolrResponseWithoutHeader(it.rsp, response);`
   
   But it's not quite working as expected or may be I am using it wrong. Basically the merge from the V2 API is not getting merged into the main response. 
   
   **Expected Response**
   
   > {
   >   "responseHeader":{
   >     "status":0,
   >     "QTime":1176},
   >   "success":{
   >     "localhost:8983_solr":{
   >       "responseHeader":{
   >         "status":0,
   >         "QTime":84},
   >       "response":{
   >         "startTime":"2022-11-15T19:19:02.771459Z",
   >         "indexFileCount":1,
   >         "uploadedIndexFileCount":1,
   >         "indexSizeMB":0.0,
   >         "uploadedIndexFileMB":0.0,
   >         "shard":"shard1",
   >         "endTime":"2022-11-15T19:19:02.842364Z",
   >         "shardBackupId":"md_shard1_0"}}},
   >   "response":{
   >     "collection":"gettingstarted",
   >     "numShards":1,
   >     "backupId":0,
   >     "indexVersion":"9.0.0",
   >     "startTime":"2022-11-15T19:19:02.102877Z",
   >     "indexFileCount":1,
   >     "uploadedIndexFileCount":1,
   >     "indexSizeMB":0.0,
   >     "uploadedIndexFileMB":0.0,
   >     "shardBackupIds":["md_shard1_0"],
   >     "endTime":"2022-11-15T19:19:03.143048Z"}} 
   
   **Actual Response**
   
   > {
   >   "responseHeader":{
   >     "status":0,
   >     "QTime":296},
   >   "success":{
   >     "localhost:8984_solr":{
   >       "responseHeader":{
   >         "status":0,
   >         "QTime":37}}},
   >   "response":{
   >     "collection":"gettingstarted",
   >     "numShards":1,
   >     "backupId":0,
   >     "indexVersion":"9.4.0",
   >     "startTime":"2022-11-15T19:54:44.928803Z",
   >     "endTime":"2022-11-15T19:54:45.120657Z"}}


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