Skip to content

Commit

Permalink
[hotfix][state-processor-api] test state reader with modern state bac…
Browse files Browse the repository at this point in the history
…kend stack
  • Loading branch information
sjwiesman committed Aug 17, 2021
1 parent d081d9a commit 65ec2a2
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 0 deletions.
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();
}
}
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();
}
}
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();
}
}
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();
}
}

0 comments on commit 65ec2a2

Please sign in to comment.