Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

develop: dev-guide-transaction-troubleshoot-typo.md fix typo #9826

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions develop/dev-guide-transaction-troubleshoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ while True:
if (error.code != "9007" && error.code != "8028" && error.code != "8002" && error.code != "8022"):
raise error
else:
connnection.exec('ROLLBACK');
connection.exec('ROLLBACK')

# Capture the error types that require application-side retry,
# wait for a short period of time,
Expand All @@ -113,7 +113,7 @@ while True:
sleep(sleep_ms) # make sure your sleep() takes milliseconds
```

> Note:
> **Note:**
>
> If you frequently encounter `Error 9007: Write conflict`, you may need to check your schema design and the data access patterns of your workload to find the root cause of the conflict and try to avoid conflicts by a better design.
> For information about how to troubleshoot and resolve transaction conflicts, see [Troubleshoot Lock Conflicts](/troubleshoot-lock-conflicts.md).
Expand Down