es_required will throw an exception the first time it's called on a secondary thread #22

erikrose opened this Issue Jan 12, 2012 · 1 comment

2 participants

Mozilla member initializes the attr on _local only for the thread importing the module. Any other thread won't see that attr, and es_required() will throw an AttributeError the first time it's used on that thread.

Mozilla member

In overhauling for pyelasticsearch, I nixed all the thread-local stuff. As a side note, while _local.disabled gets populated, it doesn't appear to ever get queried. So ... I'm not really sure what that was for anyhow.

Closing this out.

@willkg willkg closed this Jan 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment