You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by "chengxilo (via GitHub)" <gi...@apache.org> on 2026/08/17 03:17:12 UTC
[PR] Fix unreachable roster candidates [iggy]
chengxilo opened a new pull request, #3901:
URL: https://github.com/apache/iggy/pull/3901
## Which issue does this PR address?
<!--
We generally require a GitHub issue for all bug fixes and enhancements. Link it with GitHub syntax, keep the line that applies and delete the other:
- `Closes #123` auto-closes the issue when this PR merges (full fix).
- `Relates to #123` links without closing (partial or related work).
-->
Closes #3890
## Rationale
<!--
Why is this change needed? If the issue explains it well, a one-liner is fine.
-->
A server whose TCP listener binds a wildcard reports that wildcard as its own client-facing address in GetClusterMetadata. The Go SDK collects roster addresses into its reconnect candidate ring, so `0.0.0.0:8090` becomes a dial target. Go retry will round robin the available addresss, so it will also try the `0.0.0.0:8090` which is not actually reachable.
## What changed?
<!--
2-4 sentences. Problem first (before), then solution (after).
GOOD:
"Messages were unavailable when background message_saver committed the
journal and started async disk I/O before completion. Polling during
this window found neither journal nor disk data.
The fix freezes journal batches in the in-flight buffer before async persist."
GOOD:
"When many small messages accumulate in the journal, the flush passes
thousands of IO vectors to writev(), exceeding IOV_MAX (1024 on Linux)."
BAD:
- Walls of text
- "This PR adds..." (we can see the diff)
-->
for non-cluster server, the `GetClusterMetadata` return the server address that is actually reachable. If we set `0.0.0.0:8090` for the server, it warn the user, and when we call `GetClusterMetadata`, it won't return the ip `0.0.0.0`, but return "" instead.
## Local Execution
- Passed / not passed
- Pre-commit hooks ran / not ran
<!--
You must run your code locally before submitting.
"Relying on CI" is not acceptable - PRs from authors who haven't run the code will be closed.
Did you have `prek` installed? It runs automatically on commit and covers all project languages. See [CONTRIBUTING.md](https://github.com/apache/iggy/blob/master/CONTRIBUTING.md).
-->
## AI Usage
<!--
If AI tools were used, please answer:
1. Which tools? (e.g., GitHub Copilot, Claude, ChatGPT) Claude Code Opus
2. Scope of usage? (e.g., autocomplete, generated functions, entire implementation) diagnose and implementation
3. How did you verify the generated code works correctly? I reviewed them line by line, and did some small modification.
4. Can you explain every line of the code if asked? Yes
If no AI tools were used, write "None" or delete this section.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(server): report no address for a wildcard-bound single node [iggy]
Posted by "chengxilo (via GitHub)" <gi...@apache.org>.
chengxilo closed pull request #3901: fix(server): report no address for a wildcard-bound single node
URL: https://github.com/apache/iggy/pull/3901
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix unreachable roster candidates [iggy]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #3901:
URL: https://github.com/apache/iggy/pull/3901#issuecomment-5311376726
## [Codecov](https://app.codecov.io/gh/apache/iggy/pull/3901?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 82.55%. Comparing base ([`be5012e`](https://app.codecov.io/gh/apache/iggy/commit/be5012ec92c99c564ff9e91baae0aa8e5184025a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`7dc2da7`](https://app.codecov.io/gh/apache/iggy/commit/7dc2da7008984c2c221ede3d17b85c5bf87041d5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #3901 +/- ##
============================================
- Coverage 82.99% 82.55% -0.45%
Complexity 1339 1339
============================================
Files 1218 1216 -2
Lines 165627 165370 -257
Branches 133940 133886 -54
============================================
- Hits 137459 136516 -943
- Misses 24509 25194 +685
- Partials 3659 3660 +1
```
| [Components](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [Rust Core](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.51% <ø> (-0.01%)` | :arrow_down: |
| [Java SDK](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `66.55% <ø> (ø)` | |
| [C# SDK](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `76.43% <ø> (ø)` | |
| [Python SDK](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.00% <ø> (ø)` | |
| [PHP SDK](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `84.48% <ø> (ø)` | |
| [Node SDK](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `89.16% <ø> (-6.53%)` | :arrow_down: |
| [Go SDK](https://app.codecov.io/gh/apache/iggy/pull/3901/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `69.04% <ø> (ø)` | |
| [Files with missing lines](https://app.codecov.io/gh/apache/iggy/pull/3901?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [core/server/src/bootstrap.rs](https://app.codecov.io/gh/apache/iggy/pull/3901?src=pr&el=tree&filepath=core%2Fserver%2Fsrc%2Fbootstrap.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29yZS9zZXJ2ZXIvc3JjL2Jvb3RzdHJhcC5ycw==) | `80.55% <ø> (-0.01%)` | :arrow_down: |
| [core/server/src/cluster\_meta.rs](https://app.codecov.io/gh/apache/iggy/pull/3901?src=pr&el=tree&filepath=core%2Fserver%2Fsrc%2Fcluster_meta.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29yZS9zZXJ2ZXIvc3JjL2NsdXN0ZXJfbWV0YS5ycw==) | `98.57% <ø> (-0.03%)` | :arrow_down: |
| [core/server/src/dispatch.rs](https://app.codecov.io/gh/apache/iggy/pull/3901?src=pr&el=tree&filepath=core%2Fserver%2Fsrc%2Fdispatch.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29yZS9zZXJ2ZXIvc3JjL2Rpc3BhdGNoLnJz) | `89.15% <ø> (-0.01%)` | :arrow_down: |
| [core/server/src/http.rs](https://app.codecov.io/gh/apache/iggy/pull/3901?src=pr&el=tree&filepath=core%2Fserver%2Fsrc%2Fhttp.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29yZS9zZXJ2ZXIvc3JjL2h0dHAucnM=) | `93.10% <ø> (-0.02%)` | :arrow_down: |
| [core/server/src/http/error.rs](https://app.codecov.io/gh/apache/iggy/pull/3901?src=pr&el=tree&filepath=core%2Fserver%2Fsrc%2Fhttp%2Ferror.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-Y29yZS9zZXJ2ZXIvc3JjL2h0dHAvZXJyb3IucnM=) | `86.44% <ø> (-0.05%)` | :arrow_down: |
... and [56 files with indirect coverage changes](https://app.codecov.io/gh/apache/iggy/pull/3901/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix unreachable roster candidates [iggy]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3901:
URL: https://github.com/apache/iggy/pull/3901#issuecomment-5311368719
<!-- iggy-pr-triage-welcome -->
Thanks for the PR. It is labeled `S-waiting-on-review` and queued for review.
Slash commands (own line, regular comment) move it around the queue:
- `/ready` - back to `S-waiting-on-review` after addressing feedback
- `/author` - flip to `S-waiting-on-author` while you finish changes
- `/request-review @user-or-team` - request a reviewer
See [CONTRIBUTING.md](https://github.com/apache/iggy/blob/master/CONTRIBUTING.md#pr-triage-commands) for details.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org