Description
Staging of the document into gocbcore transactions the error is reported is
"code":17020,"message":"write error" with cause found existing document: document already exists
Improve this as follows:
During implicit or explicit staging:
DocumentNotFound : N1QL KEY_NOT_FOUND 17014
DocumentExists, DocAlreadyInTransaction : N1QL DUPLICATE_KEY 17012
AttemptExpired : N1QL Transaction expired 17010
These errors will not include cause from gocbcore transactions.
If the statement is commit: Commit Transaction error 17007 with cause filled above error
Attachments
For Gerrit Dashboard: MB-51146 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
171268,5 | MB-51146. mapStaging errors to N1QL error | master | query | Status: MERGED | +2 | +1 |
171330,5 | MB-51146. Restore some of the messages original | master | query | Status: MERGED | +2 | +1 |
174043,2 | Support MB-51146 improvements to query error codes | master | transactions-fit-performer | Status: MERGED | +2 | +1 |