You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by sr...@apache.org on 2019/04/29 08:24:32 UTC
[flink] branch release-1.8 updated: [FLINK-12350] [State Backends]
RocksDBStateBackendTest doesn't cover the incremental checkpoint code path
This is an automated email from the ASF dual-hosted git repository.
srichter pushed a commit to branch release-1.8
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.8 by this push:
new 8020787 [FLINK-12350] [State Backends] RocksDBStateBackendTest doesn't cover the incremental checkpoint code path
8020787 is described below
commit 80207878251843a2263dcbf25eb21e0d6538048c
Author: Yu Li <li...@apache.org>
AuthorDate: Mon Apr 29 10:21:24 2019 +0200
[FLINK-12350] [State Backends] RocksDBStateBackendTest doesn't cover the incremental checkpoint code path
This closes #8297.
(cherry picked from commit 9aeb4e5cb38079cdfbcc25f8c3966b368287825d)
---
.../flink/contrib/streaming/state/RocksDBStateBackendTest.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBStateBackendTest.java b/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBStateBackendTest.java
index 819c864..ceb781c 100644
--- a/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBStateBackendTest.java
+++ b/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBStateBackendTest.java
@@ -217,7 +217,9 @@ public class RocksDBStateBackendTest extends StateBackendTestBase<RocksDBStateBa
AbstractStateBackend.getCompressionDecorator(env.getExecutionConfig()),
spy(db),
defaultCFHandle,
- new CloseableRegistry()).build();
+ new CloseableRegistry())
+ .setEnableIncrementalCheckpointing(enableIncrementalCheckpointing)
+ .build();
testState1 = keyedStateBackend.getPartitionedState(
VoidNamespace.INSTANCE,
@@ -294,7 +296,9 @@ public class RocksDBStateBackendTest extends StateBackendTestBase<RocksDBStateBa
AbstractStateBackend.getCompressionDecorator(executionConfig),
db,
defaultCFHandle,
- new CloseableRegistry()).build();
+ new CloseableRegistry())
+ .setEnableIncrementalCheckpointing(enableIncrementalCheckpointing)
+ .build();
ValueStateDescriptor<String> stubState1 =
new ValueStateDescriptor<>("StubState-1", StringSerializer.INSTANCE);
test.createInternalState(StringSerializer.INSTANCE, stubState1);