Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cumulate errors in bulk indexer #4

Merged
merged 3 commits into from
Mar 23, 2015
Merged

Conversation

mna
Copy link

@mna mna commented Mar 23, 2015

The bulk indexer is still racy, as seen by the TestBulkErrors random failures. This is not caused by this change, this was already the case (the TestBulkErrors test was actually commented out in the original version).

I will try to fix the biggest issue - the data race that causes some index requests to not be executed before the indexer stops - but the code is brittle and overly complex, I would still recommend using a different package or a major rewrite of this.

@mna
Copy link
Author

mna commented Mar 23, 2015

Added a fix for the shutdown races. go test -run Bulk -v now always succeeds (other tests fail, but those were failing before too and are unrelated to the bulk operations).

kytrinyx added a commit that referenced this pull request Mar 23, 2015
@kytrinyx kytrinyx merged commit 326c62a into splice:master Mar 23, 2015
@kytrinyx
Copy link

I looked at the elastic package, and it's pretty complex. All I really want is a client that does basic connection pooling and bulk indexing. We don't need the almighty DSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants