Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-384

modifyCollection return format with sharded cluster differs

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.4.2
    • Component/s: None
    • None

      When running the ``DatabaseFunctionalTest::testModifyCollection`` against a sharded cluster for PHPLIB-380, the test fails because the raw command return format is now:

      {
      	"raw" : {
      		"localhost:4100" : {
      			"ok" : 0,
      			"errmsg" : "ns does not exist",
      			"code" : 26,
      			"codeName" : "NamespaceNotFound"
      		},
      		"localhost:4200" : {
      			"expireAfterSeconds_old" : NumberLong(500),
      			"expireAfterSeconds_new" : 700,
      			"ok" : 1
      		}
      
      	},
      	"ok" : 1,
      	"operationTime" : Timestamp(1534859095, 4),
      	"$clusterTime" : {
      		"clusterTime" : Timestamp(1534859095, 4),
      		"signature" : {
      			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      			"keyId" : NumberLong(0)
      		}
      	}
      }
      

      instead of the expected:

      { "expireAfterSeconds_old" : 1800, "expireAfterSeconds_new" : 3600, "ok" : 1 }
      

            Assignee:
            derick Derick Rethans
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: