forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hotfix][state-processor-api] test state reader with modern state bac…
…kend stack
- Loading branch information
Showing
4 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...st/java/org/apache/flink/state/api/EmbeddedRocksDBStateBackendReaderKeyedStateITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.flink.state.api; | ||
|
||
import org.apache.flink.contrib.streaming.state.EmbeddedRocksDBStateBackend; | ||
|
||
/** IT Case for reading state from a RocksDB keyed state backend. */ | ||
public class EmbeddedRocksDBStateBackendReaderKeyedStateITCase | ||
extends SavepointReaderKeyedStateITCase<EmbeddedRocksDBStateBackend> { | ||
|
||
@Override | ||
protected EmbeddedRocksDBStateBackend getStateBackend() { | ||
return new EmbeddedRocksDBStateBackend(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...api/src/test/java/org/apache/flink/state/api/EmbeddedRocksDBStateBackendWindowITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.flink.state.api; | ||
|
||
import org.apache.flink.contrib.streaming.state.EmbeddedRocksDBStateBackend; | ||
|
||
/** IT Case for reading window state with the memory state backend. */ | ||
public class EmbeddedRocksDBStateBackendWindowITCase | ||
extends SavepointWindowReaderITCase<EmbeddedRocksDBStateBackend> { | ||
|
||
@Override | ||
protected EmbeddedRocksDBStateBackend getStateBackend() { | ||
return new EmbeddedRocksDBStateBackend(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...i/src/test/java/org/apache/flink/state/api/HashMapStateBackendReaderKeyedStateITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.flink.state.api; | ||
|
||
import org.apache.flink.runtime.state.hashmap.HashMapStateBackend; | ||
|
||
/** IT Case for reading keyed state from a memory state backend. */ | ||
public class HashMapStateBackendReaderKeyedStateITCase | ||
extends SavepointReaderKeyedStateITCase<HashMapStateBackend> { | ||
|
||
@Override | ||
protected HashMapStateBackend getStateBackend() { | ||
return new HashMapStateBackend(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...cessing-api/src/test/java/org/apache/flink/state/api/HashMapStateBackendWindowITCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.flink.state.api; | ||
|
||
import org.apache.flink.runtime.state.hashmap.HashMapStateBackend; | ||
|
||
/** IT Case for reading window state with the memory state backend. */ | ||
public class HashMapStateBackendWindowITCase | ||
extends SavepointWindowReaderITCase<HashMapStateBackend> { | ||
|
||
@Override | ||
protected HashMapStateBackend getStateBackend() { | ||
return new HashMapStateBackend(); | ||
} | ||
} |