Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-5165

Checkpointing tests using FsStatebackend fail on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.3.0, 1.4.0
    • Component/s: Tests
    • Labels:
      None

      Description

      testTumblingTimeWindowWithKVStateMinMaxParallelism[StateBackend = FILE](org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase)  Time elapsed: 0.103 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Cannot use the root directory for checkpoints.
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.validateAndNormalizeUri(FsStateBackend.java:246)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:155)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:124)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:105)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:86)
              at org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase.initStateBackend(EventTimeWindowCheckpointingITCase.java:118)
      
      testTumblingTimeWindow[StateBackend = FILE](org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase)  Time elapsed: 0.014 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Cannot use the root directory for checkpoints.
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.validateAndNormalizeUri(FsStateBackend.java:246)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:155)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:124)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:105)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:86)
              at org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase.initStateBackend(EventTimeWindowCheckpointingITCase.java:118)
      
      testTumblingTimeWindowWithKVStateMaxMaxParallelism[StateBackend = FILE](org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase)  Time elapsed: 0.011 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Cannot use the root directory for checkpoints.
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.validateAndNormalizeUri(FsStateBackend.java:246)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:155)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:124)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:105)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:86)
              at org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase.initStateBackend(EventTimeWindowCheckpointingITCase.java:118)
      
      testPreAggregatedTumblingTimeWindow[StateBackend = FILE](org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase)  Time elapsed: 0.005 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Cannot use the root directory for checkpoints.
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.validateAndNormalizeUri(FsStateBackend.java:246)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:155)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:124)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:105)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:86)
              at org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase.initStateBackend(EventTimeWindowCheckpointingITCase.java:118)
      
      testPreAggregatedSlidingTimeWindow[StateBackend = FILE](org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase)  Time elapsed: 0 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Cannot use the root directory for checkpoints.
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.validateAndNormalizeUri(FsStateBackend.java:246)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:155)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:124)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:105)
              at org.apache.flink.runtime.state.filesystem.FsStateBackend.<init>(FsStateBackend.java:86)
              at org.apache.flink.test.checkpointing.EventTimeWindowCheckpointingITCase.initStateBackend(EventTimeWindowCheckpointingITCase.java:118)
      

      This happens because the Path class does not detect Windows paths when a scheme is present.

        Activity

        Hide
        Zentol Chesnay Schepler added a comment -

        It appears this was fixed in the mean time.

        Show
        Zentol Chesnay Schepler added a comment - It appears this was fixed in the mean time.

          People

          • Assignee:
            Zentol Chesnay Schepler
            Reporter:
            Zentol Chesnay Schepler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development