Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Race condition in FullExportProcessor #19

@jboynes

Description

@jboynes

I'm getting repeated test failures for this class. @rob42 I'm not sure what you're running on, if it's multi-core; I'm seeing this on a iMac with an i7 processor (so 4 cores, 8 threads). I think it's due to a race condition in sending instant deltas: there's a window between when the queue is drained and the thread dies (i.e. isActive() is false) where additional messages will be queued but not sent. They should get sent when the next change event is received but that is not the behaviour the tests expect.

Another factor in this test is that there are now three components to the change: in addition to value there are also events for source and timestamp The way this is written, it will immediately send the first and then wait to send the other two. This should be minPeriod later but will actually be when the next change event is received. As a subscriber I would expect to see all three changes grouped together int he first message.

I can see a quick fix to support FIXED and INSTANT policies but supporting IDEAL now we have multiple leaf nodes changing will be a larger change. I'll submit a PR for the quick one with the IDEAL mode change to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions