Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly end a worker if not all timestamps are in the stream #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jypma
Copy link
Contributor

@jypma jypma commented Jan 9, 2020

We are seeing workers not always being ended, and that may be for two
reasons:

  1. The current MaterializerActor never sends events with t=endTimestamp
    to MaterializerWorkers, yet the latter requires t=endTimestamp to
    conclude the worker is done.
  2. The exact endTimestamp might not even occur in the source stream, if
    it's sparse enough.

So, instead, we should wait until we've progressed past the
endTimestamp, finish that exact timestamp, and then MaterializerWorkers
should conclude that we are done.

However, the added tests in this commit actually succeed fine on the current code. More investigation is needed.

We are seeing workers not always being ended, and that may be for two
reasons:
1. The current MaterializerActor never sends events with t=endTimestamp
to MaterializerWorkers, yet the latter requires t=endTimestamp to
conclude the worker is done.
2. The exact endTimestamp might not even occur in the source stream, if
it's sparse enough.

So, instead, we should wait until we've progressed _past_ the
endTimestamp, finish that exact timestamp, and then MaterializerWorkers
should conclude that we are done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant