gianm commented on pull request #12307: URL: https://github.com/apache/druid/pull/12307#issuecomment-1059790810
> Naive question - What benefit does reopening the stream provide? Alternatively, when does an `InputStream` goes "bad" and will cause potential problems on reading from it? Most InputStream implementations open a resource when they are constructed, like a file descriptor or a socket, and close it when they're closed. On other methods, like "read", they use the resource they originally opened. If the resource is a socket that has been disconnected or reset, then retrying the read isn't going to fix that. The socket is gone and won't ever work again, so it needs to be reopened, which generally means reopening the InputStream too. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
