Replaced Deferred.joinUninterruptibly with timeout and printing statcks. (https://rbcommons.com/s/pepperdata/r/2680)
- Blindly modified OpenTSDB code that uses joinUninterruptibly to wait for a
while and then prints the stacks of all threads if there is a timeout. - The
long wait function waits for an hour and the short wait function waits for ten
minutes. - Short timeout for reading Ids, metrics names, tags, and metadata, and
the put function. - Responses with the error code 500 if there have been too
many timeouts like that.