Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unbuffer support to GoogleHadoopFSInputStream #540

Open
stiga-huang opened this issue Mar 9, 2021 · 0 comments
Open

Add unbuffer support to GoogleHadoopFSInputStream #540

stiga-huang opened this issue Mar 9, 2021 · 0 comments
Assignees

Comments

@stiga-huang
Copy link

It's an improvement for GoogleHadoopFSInputStream to implement the CanUnbuffer interface. The unbuffer() operation instructs the source to release any system resources they are currently holding on to, such as buffers, sockets, file descriptors, etc. Any subsequent IO operation will likely have to reacquire these resources. Unbuffering is useful in situation where streams need to remain open, but no IO operation is expected from the stream in the immediate future (examples include file handle cacheing).

Hadoop doc: https://hadoop.apache.org/docs/r3.3.0/hadoop-project-dist/hadoop-common/filesystem/fsdatainputstream.html#CanUnbuffer.unbuffer.28.29

Related issues for other storages:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants