Both listIndexes and listCollections do shard role acquisitions (autoGet in listCollections) which may result in calls to wiredTiger. In suites which enable WiredTiger failpoints that cause reads to throw write conflict exceptions, this can cause these operations to bubble up WriteConlicts to the user.
In practice, this should not actually be a production issue because read only transactions do not throw WriteConflictExceptions. However, the general guidance is to act as though any access to WiredTiger could throw a WriteConflictException and thus these places should handle this error.
- causes
-
SERVER-132375 Lower writeConflict probability in list_collections_and_indexes_write_conflicts.js
-
- Closed
-
- related to
-
SERVER-131543 Handle WriteConflictExceptions in the shard role API when no WUOW is open
-
- Backlog
-