flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StephanEwen <...@git.apache.org>
Subject [GitHub] flink pull request #3602: [FLINK-5715] Asynchronous snapshots for heap keyed...
Date Fri, 24 Mar 2017 15:47:13 GMT
Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3602#discussion_r107931282
  
    --- Diff: flink-tests/src/test/java/org/apache/flink/test/checkpointing/AbstractEventTimeWindowCheckpointingITCase.java
---
    @@ -115,6 +117,14 @@ public static void stopTestCluster() {
     	@Before
     	public void initStateBackend() throws IOException {
     		switch (stateBackendEnum) {
    +			case MEM_ASYNC:
    +				this.stateBackend = new AsyncMemoryStateBackend(MAX_MEM_STATE_SIZE);
    +				break;
    +			case FILE_ASYNC: {
    +				String backups = tempFolder.newFolder().getAbsolutePath();
    +				this.stateBackend = new AsyncFsStateBackend("file://" + backups);
    --- End diff --
    
    To make this work cross platform, always use `file.toUri()` or `new Path(file.toUri())`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message