elasticsearch/elasticsearch — pull request #4456 by bleskes (2013-12-16 09:57:11+00:00)
Title: Start the task timeout checking *after* adding it to the execution queue of PrioritizedEsThreadPoolExecutor

This prevents missing very short timeouts which fire before the calling thread had the chance to add the task to the queue and are therefore ignored. This is mostly of importance for testing where we explicitly want tasks to timeout and set it to a very low value.