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

MongoDB.Driver.MongoBulkWriteException occurred in Mimir.Worker.Services.MongoDbService #507

Open
boscohyun opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@boscohyun
Copy link
Contributor

issue: https://planetariumhq.sentry.io/issues/6079390060/?alert_rule_id=15325664&alert_type=issue&environment=production&notification_uuid=1a65b478-93f3-47f8-a253-d52d232634c4&project=4507422913986560&referrer=slack

Mimir.Worker commit hash: dfef75d
Error message:
MongoDB.Driver.MongoBulkWriteException`1[[MongoDB.Bson.BsonDocument, MongoDB.Bson, Version=2.27.0.0, Culture=neutral, PublicKeyToken=null]]: A bulk write operation resulted in one or more errors. WriteErrors: [ { Category : "DuplicateKey", Code : 11000, Message : "E11000 duplicate key error collection: balance_crystal index: id" } ].
Stack trace:
Services/MongoDbService.cs in async Task MongoDbService.UpsertStateDataManyAsync(string collectionName, List<WriteModel> bulkOps, IClientSessionHandle session, CancellationToken cancellationToken) at line 205:9
Handler/BaseDiffHandler.cs in async Task BaseDiffHandler.ProcessStateDiff(IStateDocumentConverter converter, GetAccountDiffsResponse diffResponse, long blockIndex, CancellationToken stoppingToken) at line 184:13
Handler/BaseDiffHandler.cs in async Task BaseDiffHandler.ConsumeAsync(DiffContext diffContext, CancellationToken stoppingToken) at line 135:9
Handler/BaseDiffHandler.cs in async Task BaseDiffHandler.ExecuteAsync(CancellationToken stoppingToken) at line 63:17
Breadcrumbs:
Mimir.Worker.Handler.Balance.FreyaBlessingRuneBalanceHandler
"balance_freya_blessing_rune" Synced BlockIndex: 12505565
Mimir.Worker.Handler.WorldInformationStateHandler
"world_information" Synced BlockIndex: 12505565
Mimir.Worker.Handler.Balance.NcgBalanceHandler
"balance_ncg" Synced BlockIndex: 12505565
...

@boscohyun boscohyun added the bug Something isn't working label Nov 21, 2024
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
Status: No status
Development

No branches or pull requests

1 participant