RaceCondition seems to occur in ElasticSearchRestDAO7

Hi, I found a status unsync between the list of Tasks and the detail of Tasks.
Perhaps it is a synchronization problem due to the lock of ElasticSearch.

In ElasticSearchRestDAO7.java, BulkRequest is regenerated in indexBulkRequest function. But there is no locking logic, when add new request in to the BulkRequest.

It seems that the requests to be requested to ElasticSearch are omitted in this process. May I ask for your confirmation?

1 Like

Hey @kjh , thanks for sharing!

I’ll run this by our engineering team to help out :sunglasses:

1 Like