Skip to content

Commit

Permalink
Flink: Disable classloader check in TestIcebergSourceWithWatermarkExt…
Browse files Browse the repository at this point in the history
…ractor to fix flakiness
  • Loading branch information
manuzhang committed Jan 4, 2024
1 parent e7999a1 commit 46e0749
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.iceberg.flink.source;

import static org.apache.flink.connector.testframe.utils.ConnectorTestConstants.DEFAULT_COLLECT_DATA_TIMEOUT;
import static org.apache.iceberg.flink.MiniClusterResource.DISABLE_CLASSLOADER_CHECK_CONFIG;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

import java.io.Serializable;
Expand Down Expand Up @@ -95,6 +96,7 @@ public class TestIcebergSourceWithWatermarkExtractor implements Serializable {
.setNumberSlotsPerTaskManager(PARALLELISM)
.setRpcServiceSharing(RpcServiceSharing.DEDICATED)
.setConfiguration(reporter.addToConfiguration(new Configuration()))
.setConfiguration(DISABLE_CLASSLOADER_CHECK_CONFIG)
.withHaLeadershipControl()
.build());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.iceberg.flink.source;

import static org.apache.flink.connector.testframe.utils.ConnectorTestConstants.DEFAULT_COLLECT_DATA_TIMEOUT;
import static org.apache.iceberg.flink.MiniClusterResource.DISABLE_CLASSLOADER_CHECK_CONFIG;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

import java.io.Serializable;
Expand Down Expand Up @@ -98,6 +99,7 @@ public class TestIcebergSourceWithWatermarkExtractor implements Serializable {
.setConfiguration(
reporter.addToConfiguration(
new Configuration().set(PipelineOptions.ALLOW_UNALIGNED_SOURCE_SPLITS, true)))
.setConfiguration(DISABLE_CLASSLOADER_CHECK_CONFIG)
.withHaLeadershipControl()
.build());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.iceberg.flink.source;

import static org.apache.flink.connector.testframe.utils.ConnectorTestConstants.DEFAULT_COLLECT_DATA_TIMEOUT;
import static org.apache.iceberg.flink.MiniClusterResource.DISABLE_CLASSLOADER_CHECK_CONFIG;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

import java.io.Serializable;
Expand Down Expand Up @@ -95,6 +96,7 @@ public class TestIcebergSourceWithWatermarkExtractor implements Serializable {
.setNumberSlotsPerTaskManager(PARALLELISM)
.setRpcServiceSharing(RpcServiceSharing.DEDICATED)
.setConfiguration(reporter.addToConfiguration(new Configuration()))
.setConfiguration(DISABLE_CLASSLOADER_CHECK_CONFIG)
.withHaLeadershipControl()
.build());

Expand Down

0 comments on commit 46e0749

Please sign in to comment.