Project

General

Profile

Actions

Bug #9388

closed

[Websockets] events are skipped

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

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Start date:
06/10/2016
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
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/2016

Actions

Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF