Skip to content

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

@boscohyun

Description

@boscohyun

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions