You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var data = stream|from().measurement('test')
|window().period(1s).every(0s)
data
|eval(lambda: "v" + 1).keep().as('v_plus_one')
|log()
data
|eval(lambda: "v" + 2).keep().as('v_plus_two')
|log()
Notice that some of the points have both v_plus_one and v_plus_two, and that none of the points have just v_plus_one. You may need to run this a few times as it is a race condition
I noticed this while fixing the map race reported in #1369. The design pattern in the stateDuration, eval, default node, and others results in a race as multiple nodes all end up iterating over the same Batch object, and thus add data to the wrong point.
The text was updated successfully, but these errors were encountered:
Input data:
Script:
Output:
Notice that some of the points have both
v_plus_one
andv_plus_two
, and that none of the points have justv_plus_one
.You may need to run this a few times as it is a race condition
I noticed this while fixing the map race reported in #1369. The design pattern in the
stateDuration
,eval
,default
node, and others results in a race as multiple nodes all end up iterating over the sameBatch
object, and thus add data to the wrong point.The text was updated successfully, but these errors were encountered: