Skip to content

Conversation

@maple525866
Copy link
Contributor

@maple525866 maple525866 commented Jul 10, 2025

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

After my research on the error, I found that it cannot be compiled on macOS 14, and the error "cannot find symbol: method registeredChannelsIterator()" is reported. The main reason is that the unstable API (@UnstableApi) in netty is used, specifically eventLoop.registeredChannelsIterator() in collectServerChannels.

My solution:
Avoid using unstable APIs, remove the original collectServerChannels, and refactor the testChannelInactiveByServer() method.

Results:

The code should be able to compile normally on macOS
All event handling of ChannelEventHandler is tested
The test logic is simplified, cross-platform compatibility is improved, and each test method does not affect each other

Ⅱ. Does this pull request fix one issue?

fixes #7510

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

mvn clean test

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.40%. Comparing base (a18e999) to head (26b1f23).
Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #7518      +/-   ##
============================================
- Coverage     60.42%   60.40%   -0.02%     
+ Complexity      662      658       -4     
============================================
  Files          1298     1298              
  Lines         49080    49080              
  Branches       5770     5770              
============================================
- Hits          29655    29647       -8     
- Misses        16790    16802      +12     
+ Partials       2635     2631       -4     

see 5 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@slievrly slievrly added this to the 2.5.0 milestone Jul 11, 2025
@slievrly slievrly merged commit b711d76 into apache:2.x Jul 11, 2025
13 of 14 checks passed
slievrly pushed a commit to slievrly/fescar that referenced this pull request Oct 21, 2025
YvCeung pushed a commit to YvCeung/incubator-seata that referenced this pull request Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mvn test build error on macos14

2 participants