Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@blp
Copy link
Member

@blp blp commented Jan 23, 2026

The status was being reported as running while replay was in progress. This fixes the problem.

The status was being reported as running while replay was in progress.
This fixes the problem.

Signed-off-by: Ben Pfaff <[email protected]>
@blp blp requested a review from snkas January 23, 2026 18:55
@blp blp self-assigned this Jan 23, 2026
Copilot AI review requested due to automatic review settings January 23, 2026 18:55
@blp blp added bug Something isn't working ft Fault tolerant, distributed, and scale-out implementation connectors Issues related to the adapters/connectors crate User-facing For PRs that lead to Feldera-user visible changes rust Pull requests that update Rust code user-reported Reported by a user or customer labels Jan 23, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the status reporting endpoint to correctly report Replaying status during replay operations instead of incorrectly showing Running.

Changes:

  • Refactored status determination logic to check for replay state before returning the default pipeline state
  • Extracted common status logic into an inner_status helper function to eliminate code duplication

Comment on lines +1332 to +1336
fn inner_status(
runtime_desired_status: RuntimeDesiredStatus,
controller: &Controller,
default_status: RuntimeStatus,
) -> ExtendedRuntimeStatus {
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

The nested function name inner_status is vague and doesn't clearly indicate its purpose. Consider renaming it to compute_extended_runtime_status or build_status_with_replay_check to better reflect that it's computing status while checking for bootstrapping and replay states.

Copilot uses AI. Check for mistakes.
@blp blp added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit 0ccf805 Jan 23, 2026
6 of 7 checks passed
@blp blp deleted the replay-status branch January 23, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working connectors Issues related to the adapters/connectors crate ft Fault tolerant, distributed, and scale-out implementation rust Pull requests that update Rust code User-facing For PRs that lead to Feldera-user visible changes user-reported Reported by a user or customer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants