mirror of https://github.com/apache/druid.git
ce7298b51e
* BaseAppenderatorDriver: Fix potentially overeager segment cleanup. Here is a thing that I think can go wrong: 1. We push some segments, then try to publish them transactionally. 2. The segments are actually published, but the 200 OK response gets lost (connection dropped, whatever). 3. We try again, and on the second try, the publish fails (because the transaction baseline start metadata no longer matches). 4. Because the publish failed, we delete the pushed segments. 5. But this is bad, because the publish didn't really fail, it actually succeeded in step 2. I haven't seen this in the wild, but thought about it while reviewing #7537. This patch also cleans up logging a bit, making it more accurate and somewhat less chatty. * Avoid wrapping exceptions when not necessary. |
||
---|---|---|
.. | ||
src | ||
pom.xml |