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

Launching multiple instances of the aggregator crashes #34

Open
chgeuer opened this issue Mar 4, 2022 · 0 comments
Open

Launching multiple instances of the aggregator crashes #34

chgeuer opened this issue Mar 4, 2022 · 0 comments
Assignees
Labels
bug Something isn't working deepcoding Requires familiarity with the code base

Comments

@chgeuer
Copy link
Member

chgeuer commented Mar 4, 2022

When launching a single instance of the aggregator, it grabs ownership of all partitions.

When launching a 2nd (and 3rd ..) instance of the aggregator, both the already running instance, as well as the new instance, indicate loss of partition ownership and completely cancel all work

info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\github\microsoft\metered-billing-accelerator\src\Aggregator
info: Metering.Aggregator.AggregatorWorker[0]
      Worker running at: 03/04/2022 09:08:54 +01:00
info: Metering.Aggregator.AggregatorWorker[0]
      _12__5_789_ Saved state 2#10
info: Metering.Aggregator.AggregatorWorker[0]
      012345678910 Saved state 4#10

Here we see that after launch, it grabbed all 11 partitions. Now that we launch the 2nd instance, suddenly the 1st instance indicates OwnershipLost events, closes all partitions, and tells the innerCancellationToken is triggered from somewhere.

8: ProcessingStoppedReason.OwnershipLost
warn: Metering.Aggregator.AggregatorWorker[0] 
      Closing 1
      Closing 9
      Closing 8
      Closing 7
      Closing 5
      Closing 2
      Closing 0
      Closing 6
      Closing 3
      Closing 10
      Closing 4
      Closing everything
warn: Metering.Aggregator.AggregatorWorker[0]
      innerCancellationToken is Cancelled
@chgeuer chgeuer self-assigned this Mar 4, 2022
@chgeuer chgeuer added bug Something isn't working deepcoding Requires familiarity with the code base labels Mar 4, 2022
@chgeuer chgeuer added this to the First public release milestone Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deepcoding Requires familiarity with the code base
Projects
None yet
Development

No branches or pull requests

1 participant