Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: enable rmq for streaming #38669

Merged

Conversation

chyezh
Copy link
Contributor

@chyezh chyezh commented Dec 23, 2024

issue: #38399

@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Dec 23, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Dec 23, 2024
@chyezh chyezh force-pushed the enhance_enable_rmq_for_streaming branch from 4e221c7 to 5d9d1d3 Compare December 23, 2024 12:21
@chyezh chyezh force-pushed the enhance_enable_rmq_for_streaming branch 2 times, most recently from bfeed25 to a63e5b0 Compare December 23, 2024 12:24
Copy link
Contributor

mergify bot commented Dec 23, 2024

@chyezh go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 73.33333% with 16 lines in your changes missing coverage. Please review.

Project coverage is 81.08%. Comparing base (6884319) to head (803fa3e).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
pkg/mq/mqimpl/rocksmq/client/producer_impl.go 50.00% 4 Missing and 2 partials ⚠️
pkg/mq/mqimpl/rocksmq/client/streaming.go 77.77% 4 Missing and 2 partials ⚠️
pkg/mq/mqimpl/rocksmq/client/client_impl.go 76.92% 2 Missing and 1 partial ⚠️
internal/querynodev2/delegator/delegator_data.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #38669       +/-   ##
===========================================
+ Coverage   69.33%   81.08%   +11.74%     
===========================================
  Files         292     1381     +1089     
  Lines       26187   195200   +169013     
===========================================
+ Hits        18158   158272   +140114     
- Misses       8029    31342    +23313     
- Partials        0     5586     +5586     
Components Coverage Δ
Client 78.26% <ø> (∅)
Core 69.33% <ø> (ø)
Go 83.07% <73.33%> (∅)
Files with missing lines Coverage Δ
internal/distributed/streaming/streaming.go 100.00% <ø> (ø)
internal/distributed/streaming/wal.go 62.13% <100.00%> (ø)
internal/util/pipeline/stream_pipeline.go 93.20% <100.00%> (ø)
internal/util/streamingutil/util/wal_selector.go 100.00% <100.00%> (ø)
pkg/streaming/walimpls/impls/rmq/wal.go 57.37% <100.00%> (ø)
internal/querynodev2/delegator/delegator_data.go 84.78% <0.00%> (ø)
pkg/mq/mqimpl/rocksmq/client/client_impl.go 82.46% <76.92%> (ø)
pkg/mq/mqimpl/rocksmq/client/producer_impl.go 70.58% <50.00%> (ø)
pkg/mq/mqimpl/rocksmq/client/streaming.go 77.77% <77.77%> (ø)

... and 1080 files with indirect coverage changes

Signed-off-by: chyezh <[email protected]>
@chyezh chyezh force-pushed the enhance_enable_rmq_for_streaming branch from a63e5b0 to 803fa3e Compare December 23, 2024 14:44
@mergify mergify bot added the ci-passed label Dec 23, 2024
@@ -191,6 +198,17 @@ func (c *client) tryToConsume(consumer *consumer) []*RmqMessage {
}
rmqMsgs := make([]*RmqMessage, 0, len(msgs))
for _, msg := range msgs {
rmqMsg, err := unmarshalStreamingMessage(consumer.topic, msg)
if err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

The error code makes it difficult to determine whether the message is from the streaming node; checking the message source directly is clearer.

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: chyezh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jaime0815
Copy link
Contributor

/lgtm

@sre-ci-robot sre-ci-robot merged commit 69a9fd6 into milvus-io:master Dec 24, 2024
19 of 20 checks passed
@chyezh chyezh deleted the enhance_enable_rmq_for_streaming branch December 24, 2024 12:43
NicoYuan1986 pushed a commit to NicoYuan1986/milvus that referenced this pull request Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants