You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This class is only meant to be constructed within the driver. This constructor is
359
+
* not subject to semantic versioning compatibility guarantees and may change at any time.
360
+
*
361
+
* @public
362
+
**/
363
+
constructor(
364
+
serverDescription: ServerDescription,
365
+
maxSetVersion: number|null,
366
+
maxElectionId: ObjectId|null,
367
+
options?: {cause?: Error}
368
+
){
369
+
super(
370
+
`primary marked stale due to electionId/setVersion mismatch: server setVersion: ${serverDescription.setVersion}, server electionId: ${serverDescription.electionId}, topology setVersion: ${maxSetVersion}, topology electionId: ${maxElectionId}`,
371
+
options
372
+
);
373
+
}
374
+
375
+
overridegetname(): string{
376
+
return'MongoStalePrimaryError';
377
+
}
378
+
}
379
+
343
380
/**
344
381
* An error generated when a batch command is re-executed after one of the commands in the batch
`primary marked stale due to electionId/setVersion mismatch: server setVersion: ${serverDescription.setVersion}, server electionId: ${serverDescription.electionId}, topology setVersion: ${maxSetVersion}, topology electionId: ${maxElectionId}`
`primary marked stale due to electionId/setVersion mismatch: server setVersion: ${serverDescription.setVersion}, server electionId: ${serverDescription.electionId}, topology setVersion: ${maxSetVersion}, topology electionId: ${maxElectionId}`
`primary marked stale due to electionId/setVersion mismatch: server setVersion: ${server.setVersion}, server electionId: ${server.electionId}, topology setVersion: ${maxSetVersion}, topology electionId: ${maxElectionId}`
0 commit comments