-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Detailed steps to reproduce the problem?
```
func IsDuplicateKeyError(err error) bool {
if se := ServerError(nil); errors.As(err, &se)
return false
}
```
Client.BulkWriteException doesn’t implement ServerError, so it can never return true here.
This is a sharp edge: a user would expect a driver-sourced error to work with this interface.
Definition of done: what must be done to consider the task complete?
One of:
- Make ClientBulkWriteException implement ServerError
- Rewrite this function so it works as would be expected.
The exact Go version used, with patch level:
1.26.4
The exact version of the Go driver used:
2.7.0
Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.
The operating system and version (e.g. Windows 7, OSX 10.8, ...)
Security Vulnerabilities
If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions here
- duplicates
-
GODRIVER-3954 Implement the ServerError interface for ClientBulkWriteException
-
- Backlog
-
- is fixed by
-
GODRIVER-3954 Implement the ServerError interface for ClientBulkWriteException
-
- Backlog
-