Skip to content

[vpj] Push Job Timeout #1786

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

KaiSernLim
Copy link
Contributor

@KaiSernLim KaiSernLim commented May 12, 2025

Venice Push Job Diagram as a refresher:
VPJ-Diagram

Problem Statement

There is no timeout on the Compute Engine DataWriterComputeJob. This leads to some push jobs taking days and even sometimes weeks to complete, which significantly delays the debugging process. There is an existing timeout (bootstrapToOnlineTimeoutInHours) on the job status polling, but that takes place after the data writer job portion (which is where we've been witnessing significant delays). With the increased frequency of KIF repushes, this issue will become even more pronounced.

Solution

There should be a timeout on the entire push job as a whole. If exceeded, the push job should be cancelled. The existing configuration bootstrapToOnlineTimeoutInHours can be repurposed for this, and this should've be the original purpose of the configuration.

Concurrency-Specific Checks

Both reviewer and PR author to verify

  • Code has no race conditions or thread safety issues.
  • No blocking calls inside critical sections that could lead to deadlocks or performance degradation.
  • Verified thread-safe collections are used (e.g., ConcurrentHashMap, CopyOnWriteArrayList).
  • Validated proper exception handling in multi-threaded code to avoid silent thread termination.

How was this PR tested?

  • New unit tests added.
  • Added testPushJobTimeout() which tests the poll job status gets cancelled.
  • Added testDataWriterComputeJobTimeout() which tests the data writer job gets killed.
  • Deprecated testPushJobPollStatus() and testPushJobUnknownPollStatusDoesWaiting(), which pertained to the old usage of the bootstrapToOnlineTimeoutInHours configuration.

Does this PR introduce any user-facing or breaking changes?

  • No. You can skip the rest of this section.

@KaiSernLim KaiSernLim self-assigned this May 12, 2025
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.

1 participant