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

[FIXED] Stream config idempotency #4292

Merged
merged 1 commit into from Jul 7, 2023
Merged

[FIXED] Stream config idempotency #4292

merged 1 commit into from Jul 7, 2023

Conversation

jnmoyne
Copy link
Contributor

@jnmoyne jnmoyne commented Jul 6, 2023

  • Branch rebased on top of current main (git pull --rebase origin main)
  • Changes squashed to a single commit (described here)
  • Build is green in Travis CI
  • You have certified that the contribution is your original work and that you license the work to the project under the Apache 2 license

Fixes a behavior where idempotency of re-defining the same stream more than once (with the same attributes) was broken due to the DeepEqual failing due to the StreamSource struct received from the client app not having a value for the iname structure field (as it's internal) but the StreamSource struct return from mset.config() would have it set.

…e than once (with the same attributes) was broken due to the DeepEqual failing due to the StreamSource struct received from the client app not having a value for the `iname` structure field (as it's internal) but the StreamSource struct return from `mset.config()` would have it set.

Signed-off-by: Jean-Noël Moyne <jnmoyne@gmail.com>
@jnmoyne jnmoyne requested a review from a team as a code owner July 6, 2023 22:57
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM. On the whole I'm not a fan of reflect.DeepEqual because it can act in surprising ways (and has been broken by Go releases before) but that's a future issue.

@jnmoyne jnmoyne merged commit 69e137c into dev Jul 7, 2023
2 checks passed
@jnmoyne jnmoyne deleted the jnm/6-jul-23 branch July 7, 2023 18:32
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