Skip to content

feat: option to disable exactly once#3104

Draft
yhl25 wants to merge 4 commits intomainfrom
exactly-once
Draft

feat: option to disable exactly once#3104
yhl25 wants to merge 4 commits intomainfrom
exactly-once

Conversation

@yhl25
Copy link
Contributor

@yhl25 yhl25 commented Dec 12, 2025

No description provided.

Signed-off-by: Yashash H L <yashashhl25@gmail.com>
return err
}
opts = append(opts, isbsvc.WithConfig(isbSvcConfig.JetStream.StreamConfig))
if dedupWindow != "" {
Copy link
Member

Choose a reason for hiding this comment

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

What happens if ppl update the delivery semantics to an existing pipeline?

}
if p.Spec.Lifecycle.DeprecatedDeleteGracePeriodSeconds != nil {
return *p.Spec.Lifecycle.DeprecatedDeleteGracePeriodSeconds
if p.Spec.Lifecycle.DeletionGracePeriodSeconds != nil {
Copy link
Member

Choose a reason for hiding this comment

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

This is for backward compatibility.

InterStepBuffer *InterStepBuffer `json:"interStepBuffer,omitempty" protobuf:"bytes,9,opt,name=interStepBuffer"`
// ExactlyOnce is the exactly-once settings for the pipeline.
// +optional
ExactlyOnce *ExactlyOnce `json:"exactlyOnce,omitempty" protobuf:"bytes,10,opt,name=exactlyOnce"`
Copy link
Member

Choose a reason for hiding this comment

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

Instead of calling it exactlyOnce, use deliverySemantics or delivery, and specify which one is used.

delivery:
  exactlyOnce:
    xxx: xx
  atLeastOnce: {}

Enabled bool `json:"enabled,omitempty" protobuf:"bytes,1,opt,name=enabled"`
// ConsistentAck enables consistent acknowledgement of offsets to ISB throughout the pipeline.
// +kubebuilder:default=true
ConsistentAck bool `json:"consistentAck,omitempty" protobuf:"bytes,2,opt,name=consistentAck"`
Copy link
Member

Choose a reason for hiding this comment

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

Use something with default value as false.

Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
Signed-off-by: Yashash H L <yashashhl25@gmail.com>
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