Project

General

Profile

Actions

Bug #8931

closed

[SDK] websocket event thread crash

Added by Peter Amstutz over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Story points:
0.5

Description

EventClient and PollClient in the Python SDK should be catching exceptions in a couple of places that it currently does not, which results in the event thread crashing and thing that depend on it getting wedged:

  • The callback to user code, to avoid crashing the event handler thread
    • When this happens, call thread.interrupt_main() to raise an exception in the main thread, and force it to deal with the error.
  • When PollClient makes calls to the API server
    • Use the same style of RetryLoop that one_task_per_input_file uses. It can retry infinitely, but take care that the backoff numbers make sense.
  • Test that PollClient retries API failures.

Subtasks 1 (0 open1 closed)

Task #8977: Review 8931-event-thread-catch-exceptionsResolvedRadhika Chippada04/25/2016Actions

Related issues 2 (0 open2 closed)

Related to Arvados - Bug #8928: [SDKs] EventClient crashes after API server returns 504ClosedJiayong LiActions
Related to Arvados - Bug #9051: [SDKs] EventClient fails to reconnect after HandshakeError from last connectionResolvedActions
Actions

Also available in: Atom PDF