Hey all,

I was testing some Collections APIs the other day, and noticed a
curious response format for the SPLITSHARD and MIGRATE commands.

Both have a large number of near-duplicate responseHeader sections
with different QTimes.  Is there a reason all these sections are being
returned back to the user?  Is there some meaning that I should be
able to parse out of these sections, but am overlooking?  Examples
below:

      $ curl -ilk -X GET
'http://localhost:8984/solr/admin/collections?action=MIGRATE&collection=techproducts_restore_collection&split.key=!&target.collection=techproducts_migration'
      HTTP/1.1 200 OK
      Content-Type: application/json;charset=utf-8
      Content-Length: 1318

      {
        "responseHeader":{
          "status":0,
          "QTime":9355},
        "success":{
          "127.0.1.1:8984_solr":{
            "responseHeader":{
              "status":0,
              "QTime":0},
            "core":"techproducts_migration_shard1_replica_n1",
            "status":"BUFFERING"},
          "127.0.1.1:8985_solr":{
            "responseHeader":{
              "status":0,
              "QTime":1766},
            "core":"split_shard1_temp_shard1_shard1_replica_n1"},
          "127.0.1.1:8985_solr":{
            "responseHeader":{
              "status":0,
              "QTime":1001}},
          "127.0.1.1:8985_solr":{
            "responseHeader":{
              "status":0,
              "QTime":78}},
          "127.0.1.1:8984_solr":{
            "responseHeader":{
              "status":0,
              "QTime":407},
            "core":"split_shard1_temp_shard1_shard1_replica_n3"},
          "127.0.1.1:8985_solr":{
            "responseHeader":{
              "status":0,
              "QTime":4014}},
          "127.0.1.1:8984_solr":{
            "responseHeader":{
              "status":0,
              "QTime":4}},
          "127.0.1.1:8984_solr":{
            "responseHeader":{
              "status":0,
              "QTime":0},
            "core":"techproducts_migration_shard1_replica_n1",
            "status":"EMPTY_BUFFER"},
          "127.0.1.1:8984_solr":{
            "responseHeader":{
              "status":0,
              "QTime":70}},
          "127.0.1.1:8985_solr":{
            "responseHeader":{
              "status":0,
              "QTime":82}}}}

SPLITSHARD has an almost identical output.  Thanks for any
clarification anyone can offer, just curious.

Best,

Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to