提交 6650d745 编写于 作者: H hequn8128 提交者: Chesnay Schepler

[FLINK-11197][tests] Improve migration test comments about how to generate snapshots

上级 3702029f
......@@ -69,6 +69,7 @@ public class BucketingSinkMigrationTest {
/**
* TODO change this to the corresponding savepoint version to be written (e.g. {@link MigrationVersion#v1_3} for 1.3)
* TODO and remove all @Ignore annotations on write*Snapshot() methods to generate savepoints
* TODO Note: You should generate the savepoint based on the release branch instead of the master.
*/
private final MigrationVersion flinkGenerateSavepointVersion = null;
......
......@@ -79,6 +79,7 @@ public class FlinkKafkaConsumerBaseMigrationTest {
/**
* TODO change this to the corresponding savepoint version to be written (e.g. {@link MigrationVersion#v1_3} for 1.3)
* TODO and remove all @Ignore annotations on write*Snapshot() methods to generate savepoints
* TODO Note: You should generate the savepoint based on the release branch instead of the master.
*/
private final MigrationVersion flinkGenerateSavepointVersion = null;
......
......@@ -76,6 +76,7 @@ public class FlinkKinesisConsumerMigrationTest {
/**
* TODO change this to the corresponding savepoint version to be written (e.g. {@link MigrationVersion#v1_3} for 1.3)
* TODO and remove all @Ignore annotations on the writeSnapshot() method to generate savepoints
* TODO Note: You should generate the savepoint based on the release branch instead of the master.
*/
private final MigrationVersion flinkGenerateSavepointVersion = null;
......
......@@ -87,6 +87,7 @@ public class ContinuousFileProcessingMigrationTest {
/**
* TODO change this to the corresponding savepoint version to be written (e.g. {@link MigrationVersion#v1_3} for 1.3)
* TODO and remove all @Ignore annotations on write*Snapshot() methods to generate savepoints
* TODO Note: You should generate the savepoint based on the release branch instead of the master.
*/
private final MigrationVersion flinkGenerateSavepointVersion = null;
......
......@@ -64,6 +64,7 @@ public class CEPMigrationTest {
/**
* TODO change this to the corresponding savepoint version to be written (e.g. {@link MigrationVersion#v1_3} for 1.3)
* TODO and remove all @Ignore annotations on write*Snapshot() methods to generate savepoints
* TODO Note: You should generate the savepoint based on the release branch instead of the master.
*/
private final MigrationVersion flinkGenerateSavepointVersion = null;
......
......@@ -100,6 +100,7 @@ public class WindowOperatorMigrationTest {
/**
* TODO change this to the corresponding savepoint version to be written (e.g. {@link MigrationVersion#v1_3} for 1.3)
* TODO and remove all @Ignore annotations on write*Snapshot() methods to generate savepoints
* TODO Note: You should generate the savepoint based on the release branch instead of the master.
*/
private final MigrationVersion flinkGenerateSavepointVersion = null;
......
......@@ -82,6 +82,7 @@ public class LegacyStatefulJobSavepointMigrationITCase extends SavepointMigratio
* TODO to generate savepoints for a specific Flink version / backend type,
* TODO change these values accordingly, e.g. to generate for 1.3 with RocksDB,
* TODO set as (MigrationVersion.v1_3, StateBackendLoader.ROCKSDB_STATE_BACKEND_NAME)
* TODO Note: You should generate the savepoint based on the release branch instead of the master.
*/
private final MigrationVersion flinkGenerateSavepointVersion = MigrationVersion.v1_4;
private final String flinkGenerateSavepointBackendType = StateBackendLoader.ROCKSDB_STATE_BACKEND_NAME;
......
......@@ -72,6 +72,7 @@ public class StatefulJobSavepointMigrationITCase extends SavepointMigrationTestB
}
// TODO change this to PERFORM_SAVEPOINT to regenerate binary savepoints
// TODO Note: You should generate the savepoint based on the release branch instead of the master.
private final ExecutionMode executionMode = ExecutionMode.VERIFY_SAVEPOINT;
@Parameterized.Parameters(name = "Migrate Savepoint / Backend: {0}")
......
......@@ -56,6 +56,7 @@ public class StatefulJobWBroadcastStateMigrationITCase extends SavepointMigratio
private static final int NUM_SOURCE_ELEMENTS = 4;
// TODO change this to PERFORM_SAVEPOINT to regenerate binary savepoints
// TODO Note: You should generate the savepoint based on the release branch instead of the master.
private final StatefulJobSavepointMigrationITCase.ExecutionMode executionMode =
StatefulJobSavepointMigrationITCase.ExecutionMode.VERIFY_SAVEPOINT;
......
......@@ -73,6 +73,7 @@ public class TypeSerializerSnapshotMigrationITCase extends SavepointMigrationTes
}
// TODO change this to PERFORM_SAVEPOINT to regenerate binary savepoints
// TODO Note: You should generate the savepoint based on the release branch instead of the master.
private final ExecutionMode executionMode = ExecutionMode.VERIFY_SAVEPOINT;
@Parameterized.Parameters(name = "Migrate Savepoint / Backend: {0}")
......
......@@ -66,6 +66,7 @@ object StatefulJobSavepointMigrationITCase {
// TODO to generate savepoints for a specific Flink version / backend type,
// TODO change these values accordingly, e.g. to generate for 1.3 with RocksDB,
// TODO set as (MigrationVersion.v1_3, StateBackendLoader.ROCKSDB_STATE_BACKEND_NAME)
// TODO Note: You should generate the savepoint based on the release branch instead of the master.
val GENERATE_SAVEPOINT_VER: MigrationVersion = MigrationVersion.v1_4
val GENERATE_SAVEPOINT_BACKEND_TYPE: String = StateBackendLoader.ROCKSDB_STATE_BACKEND_NAME
......
......@@ -64,6 +64,7 @@ object StatefulJobWBroadcastStateMigrationITCase {
// TODO to generate savepoints for a specific Flink version / backend type,
// TODO change these values accordingly, e.g. to generate for 1.3 with RocksDB,
// TODO set as (MigrationVersion.v1_3, StateBackendLoader.ROCKSDB_STATE_BACKEND_NAME)
// TODO Note: You should generate the savepoint based on the release branch instead of the master.
val GENERATE_SAVEPOINT_VER: MigrationVersion = MigrationVersion.v1_7
val GENERATE_SAVEPOINT_BACKEND_TYPE: String = StateBackendLoader.MEMORY_STATE_BACKEND_NAME
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册