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

Fix object store compatibility issue with Go implementation #984

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

tinou98
Copy link
Contributor

@tinou98 tinou98 commented Jun 1, 2023

When trying to share an object store between Rust & Go, it fails with stream name already in use. This is caused by a different configuration, here a missing allow_direct

Equivalent code in go :
https://github.com/nats-io/nats.go/blob/main/object.go#L282

@Jarema
Copy link
Member

Jarema commented Jun 2, 2023

Thank's for the catch and the PR!

@Jarema Jarema self-requested a review June 2, 2023 13:55
@tinou98
Copy link
Contributor Author

tinou98 commented Jun 2, 2023

Seem's to be the same for the synchronous client, should I also add this to this PR ?

@Jarema
Copy link
Member

Jarema commented Jun 2, 2023

No, old sync client does not support direct get.

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM

@Jarema Jarema merged commit 306b18e into nats-io:main Jun 2, 2023
@caspervonb caspervonb changed the title fix(ObjectStore): Fix compatibility issue with Go implementation Fix object store compatibility issue with Go implementation Jun 2, 2023
@tinou98 tinou98 deleted the object_compat branch November 18, 2023 17:11
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.

2 participants