GitHub user twalthr opened a pull request:
https://github.com/apache/flink/pull/5811
[FLINK-9113] [connectors] Fix flushing behavior of bucketing sink for local
filesystems
## What is the purpose of the change
This PR changes the flushing behavior for HDFS' local filesystem
abstraction. See also FLINK-9113 for more details.
## Brief change log
- Use `hsync` for local filesystems
- Add method to disable the new behavior
- Additional check for verifying correct valid length files
## Verifying this change
This fix is difficult to verify as it requires a OS process that is killed
before syncing. I added a dedicated local filesystem test.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: no
- The serializers: no
- The runtime per-record code paths (performance sensitive): yes
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
- If yes, how is the feature documented? JavaDocs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/twalthr/flink FLINK-9113
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/5811.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5811
commit 543f206f0e9e8415468f5d1092553754a8869fc7
Author: Timo Walther
Date: 2018-04-04T08:29:57Z
[FLINK-9113] [connectors] Fix flushing behavior of bucketing sink for local
filesystems
---