Closed cristovarghese closed 3 years ago
Thanks for this report! If you have time to submit a PR for this issue, I can review it on Monday.
I dont seem to have the permissions to submit a PR for this repo.
`ERROR: Permission to digitalocean/firebolt.git denied to cristovarghese. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.`
You should have permissions for that. First, commit and push the change to your https://github.com/cristovarghese/firebolt fork (I see it doesn't have any commits yet). Then, from that fork, create a PR back to digitalocean/firebolt
.
Thanks, have opened a PR for it.
Thank you @cristovarghese! Closed with #26
Generate an app binary with race detector which uses the elasticsearch bulkindexer async node in the firebolt yaml config. Run it and you should be able to see the following race condition. The fix seems to be pretty simple in node/elasticsearch/connectionfactory.go, we can just use the results from atomic.AddInt64() operation instead of referencing e.batchCount.
If this fix seems OK, I can submit a PR.