Skip to content

test: stabilize morpc filter and logservice retry cases - #27302

Merged
aptend merged 4 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix-27264-27268
Aug 19, 2026
Merged

aptend merged 4 commits into
matrixorigin:mainfrom
jiangxinmeng1:fix-27264-27268

Conversation

@jiangxinmeng1

@jiangxinmeng1 jiangxinmeng1 commented Aug 19, 2026 •

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 #27264 #27268 #26272

What this PR does / why we need it:

Summary

  • Stabilize TestRequestCanBeFilter by synchronizing on the request filter callback instead of
    relying on a 100ms timeout.
  • Make TestNewServiceRetry deterministic by reserving the Raft port to trigger EADDRINUSE,
    avoiding two concurrently running LogService instances.
  • Ensure file descriptor leak checking uses the successfully generated retry configuration.

Testing

  • go build and go vet for pkg/common/morpc and pkg/logservice
  • Focused tests under normal mode and -race -count=100
  • Full pkg/common/morpc tests in normal and race modes
  • Full pkg/logservice tests
  • CI-equivalent logservice race suite:
    -short -race -tags matrixone_test -p 1 -count=1 -timeout=40m

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@aptend aptend 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.

Deep-reviewed exact head 35f3c52. The MORPC test now synchronizes on actual filter execution before cancellation, the logservice retry test deterministically forces EADDRINUSE and verifies a later successful attempt, and the LocalFS regression exercises both buffered Write and streaming NewWriter across distinct filesystems with cleanup ordered correctly. No blocking issues found. The three targeted tests pass locally.

cfg = getServiceTestConfig()
return cfg
}
if attempts == 2 {

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.

This attempts is really twisted.

@aptend
aptend merged commit 64fa15e into matrixorigin:main Aug 19, 2026
1 of 4 checks passed
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…#27302)

## 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#27264 matrixorigin#27268 matrixorigin#26272

## What this PR does / why we need it:

  ## Summary

- Stabilize `TestRequestCanBeFilter` by synchronizing on the request
filter callback instead of
  relying on a 100ms timeout.
- Make `TestNewServiceRetry` deterministic by reserving the Raft port to
trigger `EADDRINUSE`,
  avoiding two concurrently running LogService instances.
- Ensure file descriptor leak checking uses the successfully generated
retry configuration.

  ## Testing

  - `go build` and `go vet` for `pkg/common/morpc` and `pkg/logservice`
  - Focused tests under normal mode and `-race -count=100`
  - Full `pkg/common/morpc` tests in normal and race modes
  - Full `pkg/logservice` tests
  - CI-equivalent logservice race suite:
    `-short -race -tags matrixone_test -p 1 -count=1 -timeout=40m`

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: aptend <[email protected]>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…#27302)

## 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#27264 matrixorigin#27268 matrixorigin#26272

## What this PR does / why we need it:

  ## Summary

- Stabilize `TestRequestCanBeFilter` by synchronizing on the request
filter callback instead of
  relying on a 100ms timeout.
- Make `TestNewServiceRetry` deterministic by reserving the Raft port to
trigger `EADDRINUSE`,
  avoiding two concurrently running LogService instances.
- Ensure file descriptor leak checking uses the successfully generated
retry configuration.

  ## Testing

  - `go build` and `go vet` for `pkg/common/morpc` and `pkg/logservice`
  - Focused tests under normal mode and `-race -count=100`
  - Full `pkg/common/morpc` tests in normal and race modes
  - Full `pkg/logservice` tests
  - CI-equivalent logservice race suite:
    `-short -race -tags matrixone_test -p 1 -count=1 -timeout=40m`

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: aptend <[email protected]>
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…#27302)

## 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#27264 matrixorigin#27268 matrixorigin#26272

## What this PR does / why we need it:

  ## Summary

- Stabilize `TestRequestCanBeFilter` by synchronizing on the request
filter callback instead of
  relying on a 100ms timeout.
- Make `TestNewServiceRetry` deterministic by reserving the Raft port to
trigger `EADDRINUSE`,
  avoiding two concurrently running LogService instances.
- Ensure file descriptor leak checking uses the successfully generated
retry configuration.

  ## Testing

  - `go build` and `go vet` for `pkg/common/morpc` and `pkg/logservice`
  - Focused tests under normal mode and `-race -count=100`
  - Full `pkg/common/morpc` tests in normal and race modes
  - Full `pkg/logservice` tests
  - CI-equivalent logservice race suite:
    `-short -race -tags matrixone_test -p 1 -count=1 -timeout=40m`

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: aptend <[email protected]>

This branch was previously deployed

1 inactive deployment
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