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

When a stream is a mirror or has sources we need to check the upstream streams. #2013

Merged
merged 1 commit into from Mar 17, 2021

Conversation

derekcollison
Copy link
Member

Signed-off-by: Derek Collison derek@nats.io

/cc @nats-io/core

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

server/consumer.go Outdated Show resolved Hide resolved
…m streams for filter subject correctness.

Signed-off-by: Derek Collison <derek@nats.io>
Copy link
Contributor

@ripienaar ripienaar left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 20b0948 into master Mar 17, 2021
@derekcollison derekcollison deleted the fsubs branch March 17, 2021 13:59
hasExt = true
break
}
subjects = append(subjects, acc.streamSourceSubjects(si)...)
Copy link
Member

@wallyqs wallyqs Mar 17, 2021

Choose a reason for hiding this comment

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

In case we have stream that it itself is sourced from another stream like:

Stream M1 <- OriginA
Stream M2 <- OriginB
Stream S1 <- M1, M2

Then it will fail to match since we need to check against the subjects from either OriginA or OriginB.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, need to make it recursive it seems to some degree.

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.

None yet

3 participants