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

[ADDED] KeyValue: Support for Mirror and Sources #608

Merged
merged 2 commits into from Oct 31, 2022

Conversation

kozlovic
Copy link
Member

Also updated state for proper Put() and Get() semantics with mirrors and across domains, e.g. leafnodes.

In practice when a mirror is across a domain, should be named the same as origin. That allows an app to run anywhere without anything special in terms of domains when binding to the KV itself.

(Removed dead-code following previous PR #607)

Signed-off-by: Ivan Kozlovic ivan@synadia.com

Also updated state for proper Put() and Get() semantics with mirrors
and across domains, e.g. leafnodes.

In practice when a mirror is across a domain, should be named the
same as origin. That allows an app to run anywhere without anything
special in terms of domains when binding to the KV itself.

(Removed dead-code following previous PR #607)

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic requested a review from aricart October 27, 2022 16:18
Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

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

LGTM

Needed to have delete use the put prefix and bind to the stream
when creating the watcher's subscription because in case of mirror
the subject would not allow to find the stream.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic force-pushed the kv_mirror_source_cross_domains branch from c736d16 to 4613e1f Compare October 28, 2022 15:44
@kozlovic kozlovic requested a review from aricart October 28, 2022 15:56
@kozlovic
Copy link
Member Author

kozlovic commented Oct 28, 2022

@aricart If you could have a look at the 2nd commit. It fixes the issue with delete/purge_deletes/watch.

(correction, purge_deletes was working as-is, just added a test to verify that it works)

Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

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

LGTM!

@kozlovic kozlovic merged commit ef3a454 into dev Oct 31, 2022
@kozlovic kozlovic deleted the kv_mirror_source_cross_domains branch October 31, 2022 19:59
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