Closed Trolldemorted closed 3 years ago
Woops, the crash was caused by:
crit: EnoFlagSink.FlagSubmissionEndpoint[0]
InsertSubmissionsLoop failed: InsertSubmissionsLoop failed: An attempt was made to transition a task to a final state when it had already completed. (System.InvalidOperationException) at EnoFlagSink.FlagSubmissionEndpoint.InsertSubmissionsLoop(Int32 number, CancellationToken token) in /services/EnoEngine/EnoFlagSink/FlagSubmissionEndpoint.cs:line 412
I assume the crit happened because inside the batch processing some flags' tcs were already completed (old/own), so the tcs was completed a second time afterwards
ftr, this was on 1244f450cb228d720df8ea2a14d18ad6018acc82
My best bet is this was due to https://github.com/npgsql/npgsql/issues/3306. They have released a stable 5.0 version now, let's hope this won't happen again. Meanwhile, I will ensure we log failed transactions more duefully.