[
https://issues.apache.org/jira/browse/FLINK-6557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010207#comment-16010207
]
ASF GitHub Bot commented on FLINK-6557:
---------------------------------------
GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/3899
[FLINK-6557] Fix RocksDBKeyedStateBackend on Windows
This PR fixes the `RocksDBKeyedStateBackend` on Windows. The backend was
passing file paths generated from a Flink `Path` directly to RocksDB, and by
extension to the native file system.
Besides the actual problem being caused this was questionable anyway since
the starting point for all this is actually a `File`
(`stateBackend.instanceBasePath`). It is first converted to a String, then to a
Path, then to a String again before passing it to RocksDB. We were just roller
coasting through the abstraction layers.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 6557_rocks_test
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/3899.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 #3899
----
commit 29ae9f80e4a1bdf2bc19cc98b2dd2479f75f6626
Author: zentol <[email protected]>
Date: 2017-05-15T09:02:13Z
[FLINK-6557] Fix RocksDBKeyedStateBackend on Windows
----
> RocksDbStateBackendTest fails on Windows
> ----------------------------------------
>
> Key: FLINK-6557
> URL: https://issues.apache.org/jira/browse/FLINK-6557
> Project: Flink
> Issue Type: Improvement
> Components: State Backends, Checkpointing, Tests
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
>
> The {{RocksDbStateBackendTest}} fails on windows when incremental checkpoint
> is enabled.
> Based on the exception i guess the file name is just simply too long:
> {code}
> org.rocksdb.RocksDBException: IO error: Failed to create dir:
> /C:/Users/Zento/AppData/Local/Temp/junit572330160893758355/junit5754599533651878867/job-ecbdb9df76fd3a39108dac7c515e3214_op-Test_uuid-6a43f1f6-1f35-443e-945c-aab3643e62fc/chk-0.tmp:
> Invalid argument
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)