KAFKA-1286 Retry can block. Patch from Guozhang, reviewed by jay.