Xiao-zhen-Liu opened a new issue, #5883: URL: https://github.com/apache/texera/issues/5883
Parent: #5881 ยท Design: #5880 ## Goal Add the operator state that marks a result as reused from the cache, and the small statistics changes for a region that did not run. Adds code only and does not produce the new state yet (PR 3 does), so it changes no behavior on its own. ## What is included - A `COMPLETED_FROM_CACHE` value in the `WorkflowAggregatedState` enum, with the matching string and status-code conversions, treated as a terminal state in state aggregation. - Reported statistics treat a negative count as unknown rather than summing it. A region that did not run has no real input or output counts and reports them as unknown; this keeps totals correct for normal runs. - A guard so an operator that finishes instantly (a skipped region has zero workers) still triggers the final result update. ## Why this is safe The new enum value is added at the end, so existing values keep their numbers, and nothing emits it in this PR. The statistics change only affects negative counts, which a normal worker never reports. ## Generated code The enum is in a `.proto` file; generated protobuf code is not committed, so this PR ships the `.proto` change only. ## Depends on Nothing. Independent of PR 1. ## Out of scope Producing the state at runtime (PR 3) and any UI for it (PR 5). ## Size About 150 lines of code, plus tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
