You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@solr.apache.org by Jason Gerlowski <ge...@gmail.com> on 2022/11/04 16:01:35 UTC

LISTSNAPSHOT response format: bug or intentional?

Hey all,

I was playing with Solr's "snapshot" APIs recently and noticed that
the JSON response returned by /admin/collections?action=LISTSNAPSHOT
is suspiciously quirky.  The response content takes what look pretty
clearly to be name/value pairs and serializes them as sibling elements
within a JSON array.

/admin/collections?action=LISTSNAPSHOTS&collection=foo

{
  "responseHeader":{
    "status":0,
    "QTime":7},
  "snapshots":[
    "checkpoint1",[
      "name","checkpoint1",
      "status","Successful",
      "creationDate",1667576218600,
      ...

(The snippet above is partial.  See pastebin link for the full output
and steps to reproduce.)

I'm happy to take a crack at improving this but wanted to check first
whether this might actually be intentional (and therefore something we
want to maintain backcompat on).

Appreciate any clarity or context anyone can offer.

Best,

Jason

[1] Pastebin: https://paste.apache.org/opjl6

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