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

Engines pick up stale simulation request #8

Open
akshaydewan opened this issue Apr 7, 2020 · 1 comment
Open

Engines pick up stale simulation request #8

akshaydewan opened this issue Apr 7, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@akshaydewan
Copy link
Collaborator

Steps to reproduce:

  1. Run a simulation in multi-engine mode with, say, 2 engines.
  2. Let the simulation finish. Orchestrator and engines will terminate.
  3. Start another multi-engine simulation with 3 or 4 engines (> 2)
  4. The new engines will pick up the old simulation request and complain that no work was found for engines3 and 4.

Cause: Since we're adding new consumers (engines), Kafka delivers the older messages to the engines.

Possible fix: Let the orchestrator delete the simulation requests after the simulation finishes.

@akshaydewan akshaydewan added the bug Something isn't working label Apr 7, 2020
@swakhandekar
Copy link
Collaborator

Small-term fix: add fromOffset: latest in the consumer config.

Calling this small term-fix as it is now creating multiple records of consumer vs offset on the kafka-server for each run, which is not the desired behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants