File tree Expand file tree Collapse file tree 6 files changed +13
-9
lines changed
main/java/com/snowflake/kafka/connector
test/java/com/snowflake/kafka/connector/internal/streaming Expand file tree Collapse file tree 6 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1212
1313 <groupId >com.snowflake</groupId >
1414 <artifactId >snowflake-kafka-connector</artifactId >
15- <version >3.2.0 </version >
15+ <version >4.0.0-rc1 </version >
1616 <packaging >jar</packaging >
1717 <name >Snowflake Kafka Connector</name >
1818 <description >Snowflake Kafka Connect Sink Connector</description >
Original file line number Diff line number Diff line change 1212
1313 <groupId >com.snowflake</groupId >
1414 <artifactId >snowflake-kafka-connector</artifactId >
15- <version >3.2.0 </version >
15+ <version >4.0.0-rc1 </version >
1616 <packaging >jar</packaging >
1717 <name >Snowflake Kafka Connector</name >
1818 <description >Snowflake Kafka Connect Sink Connector</description >
Original file line number Diff line number Diff line change 6666public class Utils {
6767
6868 // Connector version, change every release
69- public static final String VERSION = "3.2.0 " ;
69+ public static final String VERSION = "4.0.0-rc1 " ;
7070
7171 // connector parameter list
7272 public static final String NAME = "name" ;
Original file line number Diff line number Diff line change 1313import org .junit .jupiter .api .AfterEach ;
1414import org .junit .jupiter .api .Assertions ;
1515import org .junit .jupiter .api .BeforeEach ;
16+ import org .junit .jupiter .api .Disabled ;
1617import org .junit .jupiter .api .Test ;
1718
1819public class SnowflakeSinkServiceV2LegacyIT extends SnowflakeSinkServiceV2BaseIT {
@@ -30,6 +31,9 @@ public void afterEach() {
3031 }
3132
3233 @ Test
34+ @ Disabled (
35+ "This test is flaky. Runs locally. Instead of time based waits it should be reimplemented to"
36+ + " check if proper lag has been set in overrideProperties in Ingest SDK client" )
3337 public void testStreamingIngestionValidClientLag () throws Exception {
3438 Map <String , String > config = TestUtils .getConfForStreaming ();
3539 config .put (SNOWPIPE_STREAMING_MAX_CLIENT_LAG , "7" );
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ command -v docker >/dev/null 2>&1 || error_exit "Require docker but it's not ins
5353command -v minikube > /dev/null 2>&1 || error_exit " Require minikube but it's not installed. Aborting."
5454command -v mvn > /dev/null 2>&1 || error_exit " Require mvn but it's not installed. Aborting."
5555
56- # match all versions of built SF connector
57- SNOWFLAKE_PLUGIN_NAME_REGEX=" snowflake-kafka-connector-[0-9]*\.[0-9]*\.[0-9]*\.jar$"
56+ # match all versions of built SF connector (including release candidates like rc1)
57+ SNOWFLAKE_PLUGIN_NAME_REGEX=" snowflake-kafka-connector-[0-9]*\.[0-9]*\.[0-9]*(-rc[0-9]+)? \.jar$"
5858SNOWFLAKE_PLUGIN_PATH=" $SNOWFLAKE_CONNECTOR_PATH /target"
5959
6060SNOWFLAKE_DOCKER_IMAGE=" snowflakedb/kc-dev-build"
9999
100100# get built image name
101101# only match the first line
102- SNOWFLAKE_PLUGIN_NAME=$( ls $SNOWFLAKE_PLUGIN_PATH | grep " $SNOWFLAKE_PLUGIN_NAME_REGEX " | head -n 1)
102+ SNOWFLAKE_PLUGIN_NAME=$( ls $SNOWFLAKE_PLUGIN_PATH | grep -E " $SNOWFLAKE_PLUGIN_NAME_REGEX " | head -n 1)
103103echo -e " \n=== built connector name: $SNOWFLAKE_PLUGIN_NAME ==="
104104
105105# download Kafka connect docker image
Original file line number Diff line number Diff line change 6868# check required commands
6969command -v mvn > /dev/null 2>&1 || error_exit " Require mvn but it's not installed. Aborting."
7070
71- # match all versions of built SF connector
72- SNOWFLAKE_PLUGIN_NAME_REGEX=" snowflake-kafka-connector-[0-9]*\.[0-9]*\.[0-9]*\.jar$"
71+ # match all versions of built SF connector (including release candidates like rc1)
72+ SNOWFLAKE_PLUGIN_NAME_REGEX=" snowflake-kafka-connector-[0-9]*\.[0-9]*\.[0-9]*(-rc[0-9]+)? \.jar$"
7373SNOWFLAKE_PLUGIN_PATH=" $SNOWFLAKE_CONNECTOR_PATH /target"
7474
7575KAFKA_CONNECT_PLUGIN_PATH=" /usr/local/share/kafka/plugins"
112112
113113# get built image name
114114# only match the first line
115- SNOWFLAKE_PLUGIN_NAME=$( ls $SNOWFLAKE_PLUGIN_PATH | grep " $SNOWFLAKE_PLUGIN_NAME_REGEX " | head -n 1)
115+ SNOWFLAKE_PLUGIN_NAME=$( ls $SNOWFLAKE_PLUGIN_PATH | grep -E " $SNOWFLAKE_PLUGIN_NAME_REGEX " | head -n 1)
116116echo -e " \nbuilt connector name: $SNOWFLAKE_PLUGIN_NAME "
117117
118118mkdir -m 777 -p $KAFKA_CONNECT_PLUGIN_PATH || \
You can’t perform that action at this time.
0 commit comments