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

waitForLogger doesn't work as intended with the Elasticsearch back-end #6

Closed
23Skidoo opened this issue Oct 3, 2016 · 1 comment
Closed

Comments

@23Skidoo
Copy link
Contributor

23Skidoo commented Oct 3, 2016

Code fragment that illustrates the issue: abdd45f#diff-5ae59c4cdd155945a87b6ce91090551fR27

At least on my machine, I had to add calls to threadDelay after calls to logging functions to ensure that messages actually get written, even though I call waitForLogger before proceeding. Not sure yet whether the problem is on our or the Elasticsearch side.

@23Skidoo
Copy link
Contributor Author

23Skidoo commented Oct 4, 2016

This looks like a feature of Elasticsearch: data becomes visible only after ~1 second. The way to fix this is to make waitForLogger use Elasticsearch refresh API: https://www.elastic.co/guide/en/elasticsearch/guide/current/near-real-time.html#refresh-api

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

No branches or pull requests

1 participant