Skip to content

Commit c8f73d3

Browse files
committed
Fix migration
1 parent bb01eda commit c8f73d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Exceptionless.Core/Migrations/002_SetStackStatus.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public override async Task RunAsync(MigrationContext context) {
3232
var stackResponse = await _client.UpdateByQueryAsync<Stack>(x => x
3333
.QueryOnQueryString("NOT _exists_:status")
3434
.Script(s => s.Source(script).Lang(ScriptLang.Painless))
35+
.Conflicts(Elasticsearch.Net.Conflicts.Proceed)
3536
.WaitForCompletion(false));
3637

3738
_logger.LogTraceRequest(stackResponse, Microsoft.Extensions.Logging.LogLevel.Information);
@@ -55,7 +56,7 @@ public override async Task RunAsync(MigrationContext context) {
5556
await Task.Delay(delay);
5657
} while (true);
5758

58-
_logger.LogInformation("Finished adding stack status: Time={Duration:d\\.hh\\:mm} Completed={Completed:N0} Total={Total:N0} Errors={Errors:N0}", sw.Elapsed, stackResponse.Total, stackResponse.Failures.Count);
59+
_logger.LogInformation("Finished adding stack status: Time={Duration:d\\.hh\\:mm} Completed={Completed:N0} Total={Total:N0} Errors={Errors:N0}", sw.Elapsed, affectedRecords, stackResponse.Total, stackResponse.Failures.Count);
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)