tmf: Fix IndexOOB exception in HT node with concurrent read/write
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 8 Apr 2014 21:15:34 +0000 (17:15 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 9 Apr 2014 16:42:14 +0000 (12:42 -0400)
commit1d8028cd98ec1ab0dd394751ebcd8ac6c82982d0
treedaa24c891625e5c1b87431a6a31eca5eda296e76
parente92b90691c0e066b0dd0aca917f32ac5c26adcfd
tmf: Fix IndexOOB exception in HT node with concurrent read/write

Similar to bug #432191, but with the History Tree backend. It's possible
for an attribute to be created, sent to the backend, and written to a
node, all while a query is ongoing. (That's a race condition where you
race a Formula 1 against a turtle, but the turtle somehow arrives first).

Simply ignore those new attributes, since their value at time 't' would be
null anyway.

Change-Id: I072a08e84795a321c3b2bb393d9880ac4ba13a6a
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/24674
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/historytree/HTNode.java
This page took 0.02444 seconds and 5 git commands to generate.