Closed ivanyu closed 9 months ago
As a note, this is only handling the scenarios when is interrupted while fetching log or segment manifest. It can still be badly propagated if it fails when fetching an index as it's handled by a synchronous caffeine implementation on the broker side. Though this would require better exception handling on the API and broker side to be solved as proposed here https://lists.apache.org/thread/8slfhqmwml1xnjmxy8v5jb7d1tq44fsx
This commit addresses the fact that the fetching stream can be interrupted by the broker. In this case, we return an empty stream to prevent useless logging of
InterruptedException
andClosedByInterruptException
.