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

Adding teams and removing services causes CalculateTeamServicePoints to print exceptions #176

Open
Trolldemorted opened this issue Jul 12, 2022 · 0 comments

Comments

@Trolldemorted
Copy link
Member

fail: EnoEngine.EnoEngine[0]
      CalculateServicePoints failed because: Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.
         at Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal.NpgsqlModificationCommandBatch.ConsumeAsync(RelationalDataReader reader, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
         at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
         at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
         at EnoDatabase.EnoDb.CalculateTeamServicePoints(Team[] teams, Int64 roundId, Service service, Int64 oldSnapshotsRoundId, Int64 newLatestSnapshotRoundId) in /services/EnoEngine/EnoDatabase/EnoDb.Scoring.cs:line 174
         at EnoDatabase.EnoDbUtil.RetryScopedDatabaseAction(Func`2 function) in /services/EnoEngine/EnoDatabase/EnoDbUtil.cs:line 44
         at EnoEngine.EnoEngine.<>c__DisplayClass14_2.<<CalculateServicePoints>b__1>d.MoveNext() in /services/EnoEngine/EnoEngine/EnoEngine.CTF.cs:line 121
      --- End of stack trace from previous location ---
         at EnoEngine.EnoEngine.CalculateServicePoints(Int64 roundId, Configuration configuration) in /services/EnoEngine/EnoEngine/EnoEngine.CTF.cs:line 126
@Trolldemorted Trolldemorted changed the title Adding teams causes CalculateTeamServicePoints to print exceptions Adding teams and removing services causes CalculateTeamServicePoints to print exceptions Jul 12, 2022
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

No branches or pull requests

1 participant