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

modifyCollection return format with sharded cluster differs

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.5.0
    • Labels:
      None

      Description

      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 }
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: