Typically we see a conflict because OpenSearch is still trying to update documents at the time that we issue a query for all outdated documents, so we think there are some outdated documents when in reality, some documents just haven't finished updating yet.
I think it's safe to ignore a 409, but I'd like feedback on doing so. In both places that delete_by_query is called, the response is printed directly following, so it will be in the logs even if we do get a 409.
Resolves #1095
Typically we see a conflict because OpenSearch is still trying to update documents at the time that we issue a query for all outdated documents, so we think there are some outdated documents when in reality, some documents just haven't finished updating yet.
I think it's safe to ignore a 409, but I'd like feedback on doing so. In both places that
delete_by_query
is called, the response is printed directly following, so it will be in the logs even if we do get a 409.