OpenTSDB: Fixed the bug that called Http query deferred callbacks multiple times when there was an HBase errors. (https://rbcommons.com/s/pepperdata/r/4637)
- The bug registered error callbacks for every deferred result of scanner
nextRows. So, every registered error callbacks were called when there was an
HBase error, in which error callbacks called the same HTTP callback. The fix was
registering the error callbacks just for the first deferred result of scanner
nextRows. - Another bug was that the error callback of background queries did
not check if the client had already got the results. The fix was checking it
before it tries to send error back.