Skip to content

fix: calc pending and watermark for ordered#3286

Merged
vigith merged 4 commits intomainfrom
pending-for-ordered
Mar 5, 2026
Merged

fix: calc pending and watermark for ordered#3286
vigith merged 4 commits intomainfrom
pending-for-ordered

Conversation

@vigith
Copy link
Member

@vigith vigith commented Mar 3, 2026

We need to get data from all pods since there is 1:1 for pod to partition

Closes: #3275

vigith added 2 commits March 2, 2026 21:27
…g is set

Signed-off-by: Vigith Maurice <vigith@gmail.com>
Signed-off-by: Vigith Maurice <vigith@gmail.com>
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

❌ Patch coverage is 47.22222% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.87%. Comparing base (3878a12) to head (51802a9).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...kg/daemon/server/service/watermark/http_fetcher.go 0.00% 9 Missing ⚠️
pkg/reconciler/pipeline/controller.go 50.00% 2 Missing and 4 partials ⚠️
pkg/daemon/server/service/rater/rater.go 42.85% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3286      +/-   ##
==========================================
- Coverage   80.97%   80.87%   -0.10%     
==========================================
  Files         316      316              
  Lines       72203    72228      +25     
==========================================
- Hits        58468    58417      -51     
- Misses      13182    13254      +72     
- Partials      553      557       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vigith vigith marked this pull request as ready for review March 3, 2026 18:30
@vigith vigith requested review from whynowy and yhl25 as code owners March 3, 2026 18:30
isReduce := vtx.IsReduceUDF()
// Check if ordered processing is enabled for the vertex
// When ordered processing is enabled, each pod handles a specific partition (1:1 mapping like reduce)
isOrderedProcessing := vtx.GetEffectiveOrderedConfig(r.pipeline.Spec.Ordered)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make it like vtx.IsOrdered() ?

Comment on lines +826 to +833
// Test vertex-level ordered override
vtxOrderedP := &v1alpha1.Pipeline{
ObjectMeta: metav1.ObjectMeta{Name: "p", Namespace: "default"},
Spec: v1alpha1.PipelineSpec{
Vertices: []v1alpha1.AbstractVertex{
{Name: "ordered", Scale: v1alpha1.Scale{LookbackSeconds: &lookBackSeconds}, UDF: &v1alpha1.UDF{}, Ordered: &v1alpha1.Ordered{Enabled: true}},
{Name: "not-ordered", Scale: v1alpha1.Scale{LookbackSeconds: &lookBackSeconds}, UDF: &v1alpha1.UDF{}},
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to test this part here?

vigith added 2 commits March 3, 2026 12:55
Signed-off-by: Vigith Maurice <vigith@gmail.com>
Signed-off-by: Vigith Maurice <vigith@gmail.com>
@vigith vigith merged commit 7b57de3 into main Mar 5, 2026
45 of 46 checks passed
@vigith vigith deleted the pending-for-ordered branch March 5, 2026 14:38
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.

Daemon changes to query all the pods to fetch pending information when ordering is enabled

2 participants