Skip to content

fix heartbeat context deadline not set - #11968

Merged
zhangxu19830126 merged 2 commits into
matrixorigin:mainfrom
zhangxu19830126:fix_11964
Oct 7, 2023
Merged

zhangxu19830126 merged 2 commits into
matrixorigin:mainfrom
zhangxu19830126:fix_11964

Conversation

@zhangxu19830126

@zhangxu19830126 zhangxu19830126 commented Oct 1, 2023 •

Copy link
Copy Markdown
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 #11964 #11957

What this PR does / why we need it:

Fix context deadline not set when send heartbeat message

@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Oct 1, 2023
@mergify mergify Bot added the kind/bug Something isn't working label Oct 1, 2023

@fengttt fengttt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right fix? Should we hide the nil ptr or really set the context?

@zhangxu19830126
zhangxu19830126 requested review from nnsgmsone and removed request for nnsgmsone October 7, 2023 01:39
@zhangxu19830126

Copy link
Copy Markdown
Contributor Author

Is this the right fix? Should we hide the nil ptr or really set the context?

Is this the right fix? Should we hide the nil ptr or really set the context?

Because creating a deadline ctx requires allocating extra memory, a problem caused by internal heartbeat messages, this is done to avoid giving a deadline ctx to allocate memory and timers when heartbeat messages are sent.

@zhangxu19830126
zhangxu19830126 merged commit 1a02bac into matrixorigin:main Oct 7, 2023
sukki37 pushed a commit that referenced this pull request Oct 7, 2023
## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue #11964 #11957

## What this PR does / why we need it:
Fix context deadline not set  when send heartbeat message

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
sukki37 pushed a commit that referenced this pull request Oct 8, 2023
## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue #11964 #11957

## What this PR does / why we need it:
Fix context deadline not set  when send heartbeat message

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
## What type of PR is this?

- [ ] API-change
- [x] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [ ] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

issue matrixorigin#11964 matrixorigin#11957

## What this PR does / why we need it:
Fix context deadline not set  when send heartbeat message

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
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/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants