Project

General

Profile

Actions

Bug #9388

closed

[Websockets] events are skipped

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

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

Description

I observed websockets failing to send events that it clearly should have sent.

The issue is with how websockets is querying the database. It assumes monotonically increasing "id" fields.

While "id" is monotonically increasing, the "id" seems to be allocated at the start of record creation, not the end. So a log id '2' could show up before log id '1', if '2' commits before '1'.

The proposed fix is to perform an additional query which checks that there are no gaps in the 'id' sequence. If a gap is found, don't process any events after the gap until it is filled.


Subtasks 1 (0 open1 closed)

Task #9389: Review 9388-websocket-every-notifyResolvedPeter Amstutz06/10/2016Actions

Related issues

Related to Arvados - Bug #9427: [Websockets] event queue backloggedResolvedPeter Amstutz06/17/2016Actions
Actions

Also available in: Atom PDF