You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "Asthenia0412 (via GitHub)" <gi...@apache.org> on 2026/09/28 08:00:07 UTC
[PR] Handle missing node-local stream schemas in distributed queries [skywalking-banyandb]
Asthenia0412 opened a new pull request, #1381:
URL: https://github.com/apache/skywalking-banyandb/pull/1381
## Summary
During schema propagation, a distributed data node can temporarily lack a stream schema that the liaison and other nodes already know. Treating that node-local `ErrStreamNotExist` as a query-wide failure discards results available from the rest of the cluster.
This change skips only the missing stream group on distributed data nodes, preserves aligned metadata and execution contexts for groups that exist locally, and returns an empty successful response when none are available. Standalone and liaison schema errors, along with unrelated backend errors, continue to propagate.
Related to [apache/skywalking#14104](https://github.com/apache/skywalking/issues/14104).
## Verification
Passed focused tests for `banyand/query`, `banyand/dquery`, and `pkg/query/logical/stream` covering missing schema handling, mixed available and missing groups, standalone and liaison behavior, unrelated errors, and distributed response decoding/aggregation.
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Handle missing node-local stream schemas in distributed queries [skywalking-banyandb]
Posted by "hanahmily (via GitHub)" <gi...@apache.org>.
hanahmily commented on PR #1381:
URL: https://github.com/apache/skywalking-banyandb/pull/1381#issuecomment-6282380731
@Asthenia0412 Would you please the fix the issues raised by linter
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Handle missing node-local stream schemas in distributed queries [skywalking-banyandb]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #1381:
URL: https://github.com/apache/skywalking-banyandb/pull/1381#issuecomment-5866182759
## [Codecov](https://app.codecov.io/gh/apache/skywalking-banyandb/pull/1381?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 60.57%. Comparing base ([`3530dd9`](https://app.codecov.io/gh/apache/skywalking-banyandb/commit/3530dd9b5cefaa4fef60eec91ecbfbdfcaf243c5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`fcb81f1`](https://app.codecov.io/gh/apache/skywalking-banyandb/commit/fcb81f14356007ccf9226670c128cdc5d668504d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 455 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #1381 +/- ##
===========================================
+ Coverage 45.97% 60.57% +14.60%
===========================================
Files 328 35 -293
Lines 55505 6385 -49120
===========================================
- Hits 25520 3868 -21652
+ Misses 27909 2292 -25617
+ Partials 2076 225 -1851
```
| [Flag](https://app.codecov.io/gh/apache/skywalking-banyandb/pull/1381/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [fodc](https://app.codecov.io/gh/apache/skywalking-banyandb/pull/1381/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `60.57% <ø> (?)` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/skywalking-banyandb/pull/1381?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Handle missing node-local stream schemas in distributed queries [skywalking-banyandb]
Posted by "hanahmily (via GitHub) via notifications" <no...@skywalking.apache.org>.
hanahmily merged PR #1381:
URL: https://github.com/apache/skywalking-banyandb/pull/1381
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Handle missing node-local stream schemas in distributed queries [skywalking-banyandb]
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on PR #1381:
URL: https://github.com/apache/skywalking-banyandb/pull/1381#issuecomment-6054837126
@Asthenia0412 Are you still working on this?
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Handle missing node-local stream schemas in distributed queries [skywalking-banyandb]
Posted by "hanahmily (via GitHub)" <gi...@apache.org>.
hanahmily commented on code in PR #1381:
URL: https://github.com/apache/skywalking-banyandb/pull/1381#discussion_r4122589722
##########
banyand/query/processor.go:
##########
@@ -195,6 +183,37 @@ func (p *streamQueryProcessor) Rev(ctx context.Context, message bus.Message) (re
return
}
+func resolveStreamQuerySchemas(
+ streamService stream.Query,
+ queryCriteria *streamv1.QueryRequest,
+ tolerateMissing bool,
+) (*streamv1.QueryRequest, []*commonv1.Metadata, []logical.Schema, []executor.StreamExecutionContext, error) {
+ queryForPlan := *queryCriteria
Review Comment:
`queryForPlan := *queryCriteria` copies a generated protobuf message by value. That also copies its embedded `protoimpl.MessageState` (DoNotCopy/`sync.Mutex`), `sizeCache` and `unknownFields`. govet's default `copylocks` analyzer is enabled in `.golangci.yml`, so lint should fail with "assignment copies lock value". Separately, the protobuf runtime does not allow copying messages by value. Consider `queryForPlan := proto.Clone(queryCriteria).(*streamv1.QueryRequest)` and then resetting `Groups`.
--
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: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org