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

Allow stream placement by tags. #2871

Merged
merged 1 commit into from Feb 16, 2022
Merged

Allow stream placement by tags. #2871

merged 1 commit into from Feb 16, 2022

Conversation

derekcollison
Copy link
Member

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

/cc @nats-io/core

Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

Question before lgtm

server/jetstream_cluster.go Show resolved Hide resolved
server/jetstream_cluster_test.go Show resolved Hide resolved
@@ -286,7 +286,7 @@ type Options struct {
ReconnectErrorReports int

// Tags describing the server. They will be included in varz
// and used as a filter criteria for some system requests
// and used as a filter criteria for some system requests.
Copy link
Member

Choose a reason for hiding this comment

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

Wonder if user embeds NATS Server and "cast" a simple string slice (with content with upper-case, etc..) to the Options.Tags. I guess that would break. This would be a user error, definitively. They should be using TagList.Add().

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

@kozlovic kozlovic 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 ea20cb4 into main Feb 16, 2022
@derekcollison derekcollison deleted the tag_placement branch February 16, 2022 01:14
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

2 participants