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

fix txn leak in cloud env #12028

Merged
merged 8 commits into from
Oct 10, 2023
Merged

Conversation

zhangxu19830126
Copy link
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #11966

What this PR does / why we need it:

If a cn with the same uuid is restarted within a short period of time, it will lead to the possibility that the remote locks will not be released, because the heartbeat timeout of a remote lockservice cannot be detected. To solve this problem we use uuid+create-time as service id, then a cn reboot with the same uuid will also be considered as not a lockservice.

@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Oct 9, 2023
@mergify mergify bot added the kind/bug Something isn't working label Oct 9, 2023
@mergify mergify bot merged commit 4e3734f into matrixorigin:main Oct 10, 2023
3 checks passed
sukki37 pushed a commit that referenced this pull request Oct 10, 2023
If a cn with the same uuid is restarted within a short period of time, it will lead to the possibility that the remote locks will not be released, because the heartbeat timeout of a remote lockservice cannot be detected. To solve this problem we use uuid+create-time as service id, then a cn reboot with the same uuid will also be considered as not a lockservice.

Approved by: @w-zr, @fengttt, @nnsgmsone, @reusee, @m-schen, @daviszhen
sukki37 pushed a commit that referenced this pull request Oct 11, 2023
If a cn with the same uuid is restarted within a short period of time, it will lead to the possibility that the remote locks will not be released, because the heartbeat timeout of a remote lockservice cannot be detected. To solve this problem we use uuid+create-time as service id, then a cn reboot with the same uuid will also be considered as not a lockservice.

Approved by: @w-zr, @fengttt, @nnsgmsone, @reusee, @m-schen, @daviszhen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working size/M Denotes a PR that changes [100,499] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants