-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refinements to MSG TTL spec during implementation #315
Conversation
I think this is the only deviations so far? But please let me know about others and once you are done implementing we can merge this with all the changes included |
Notes:
|
OK, so to summarise where we got to, would this be your understanding @neilalexander :
right? |
As it stands, |
updated with bd022dc to capture these |
bd022dc
to
8c577ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Have updated with the split in delete markers and TTL with a default. Note this has the side effect that already deployed streams will have their running behaviour changed without user input or control should the server later update this default. |
Updated again for defaults being placed in the config unless pedantic |
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
Signed-off-by: R.I.Pienaar <rip@devco.net>
13b8246
to
68de1a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// LimitsTTL activates writing of messages when limits are applied with a specific TTL | ||
LimitsTTL time.Duration `json:"limits_ttl"` | ||
// Enables placing markers in the stream for certain message delete operations | ||
SubjectDeleteMarkers bool `json:"subject_delete_markers,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This setting is really not needed - the TTL setting is going to be highly dependent on the use-case, so auto-setting it is not the right approach - user should just specify the SubjectDeleteMarkerTTL
and that infers that SubjectDeleteMarkers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had this conversation quite a few times, but the prevailing problem is that unless KVs etc are setting it for you, that users setting this on their own streams may have no way to intuitively know what a sensible value even is, i.e. for lost connections, ordered consumer recreation, etc, hence the "sensible default".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also do not know what a correct setting is. If a user cannot pick a default, neither can we. All we are doing is guaranteeing that people will feel the system is broken rather than that it is behaving in a way that they chose - even if at the time of choosing they might not have realised the full weight of the choice.
We are still pretending we can answer the question: What is the default outage time?
We can not.
Further this pushes a bunch of complexity onto everywhere, want to unset this setting now there are other coupled settings to also unset and understand etc.
I am, still, strongly against this design.
No description provided.