Skip to content

Commit

Permalink
[FLINK-27199][Connector/Pulsar] Bump the pulsar-client-all to latest …
Browse files Browse the repository at this point in the history
…2.10.0.
  • Loading branch information
syhily authored and MartijnVisser committed Jul 5, 2022
1 parent a891527 commit 688f6ab
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 28 deletions.
25 changes: 10 additions & 15 deletions flink-connectors/flink-connector-pulsar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ under the License.
<packaging>jar</packaging>

<properties>
<pulsar.version>2.9.1</pulsar.version>
<pulsar.version>2.10.0</pulsar.version>

<!-- Test Libraries -->
<protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version>
<os-maven-plugin.version>1.7.0</os-maven-plugin.version>
<pulsar-commons-lang3.version>3.11</pulsar-commons-lang3.version>
<pulsar-zookeeper.version>3.6.3</pulsar-zookeeper.version>
<pulsar-netty.version>4.1.72.Final</pulsar-netty.version>
<pulsar-grpc.version>1.33.0</pulsar-grpc.version>
<pulsar-netty.version>4.1.74.Final</pulsar-netty.version>
<pulsar-grpc.version>1.42.1</pulsar-grpc.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -107,7 +107,7 @@ under the License.
<scope>test</scope>
</dependency>

<!-- Pulsar bundles the latest bookkeeper & zookeeper, -->
<!-- Pulsar bundles the latest bookkeeper -->
<!-- we don't override the version here. -->
<dependency>
<groupId>org.apache.pulsar</groupId>
Expand All @@ -123,6 +123,10 @@ under the License.
<groupId>org.powermock</groupId>
<artifactId>powermock-module-testng</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -141,15 +145,6 @@ under the License.
<scope>test</scope>
</dependency>

<!-- Pulsar use a newer zookeeper in broker. -->
<!-- Bump the version only for testing. -->
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>${pulsar-zookeeper.version}</version>
<scope>test</scope>
</dependency>

<!-- Add Pulsar 2.x as a dependency. -->
<!-- Move this to button for avoiding class conflicts with pulsar-broker. -->

Expand Down Expand Up @@ -234,7 +229,7 @@ under the License.
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.7.0</version>
<version>${os-maven-plugin.version}</version>
</extension>
</extensions>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import org.apache.pulsar.client.impl.Hash;
import org.apache.pulsar.client.impl.JavaStringHash;
import org.apache.pulsar.client.impl.Murmur3_32Hash;
import org.apache.pulsar.client.impl.Murmur3Hash32;

import static org.apache.flink.configuration.description.LinkElement.link;
import static org.apache.flink.configuration.description.TextElement.code;
Expand Down Expand Up @@ -57,7 +57,7 @@ public Hash getHash() {
link("https://en.wikipedia.org/wiki/MurmurHash", "Murmur3"))) {
@Override
public Hash getHash() {
return Murmur3_32Hash.getInstance();
return Murmur3Hash32.getInstance();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import static org.apache.flink.connector.pulsar.source.PulsarSourceOptions.PULSAR_SUBSCRIPTION_TYPE;
import static org.apache.flink.connector.pulsar.source.PulsarSourceOptions.PULSAR_VERIFY_INITIAL_OFFSETS;

/** The configure class for pulsar source. */
/** The configuration class for pulsar source. */
@PublicEvolving
public class SourceConfiguration extends PulsarConfiguration {
private static final long serialVersionUID = 8488507275800787580L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import static org.apache.flink.util.Preconditions.checkState;

/** This cursor would left pulsar start consuming from a specific message id. */
/** This cursor would leave pulsar start consuming from a specific message id. */
public class MessageIdStartCursor implements StartCursor {
private static final long serialVersionUID = -8057345435887170111L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public PulsarPartitionSplit(TopicPartition partition, StopCursor stopCursor) {
public PulsarPartitionSplit(
TopicPartition partition,
StopCursor stopCursor,
MessageId latestConsumedId,
TxnID uncommittedTransactionId) {
@Nullable MessageId latestConsumedId,
@Nullable TxnID uncommittedTransactionId) {
this.partition = checkNotNull(partition);
this.stopCursor = checkNotNull(stopCursor);
this.latestConsumedId = latestConsumedId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ The Apache Software Foundation (http://www.apache.org/).

This project bundles the following dependencies under the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)

- org.apache.pulsar:bouncy-castle-bc:pkg:2.9.1
- org.apache.pulsar:pulsar-client-admin-api:2.9.1
- org.apache.pulsar:pulsar-client-all:2.9.1
- org.apache.pulsar:pulsar-client-api:2.9.1
- org.slf4j:jul-to-slf4j:1.7.25
- org.apache.pulsar:bouncy-castle-bc:pkg:2.10.0
- org.apache.pulsar:pulsar-client-admin-api:2.10.0
- org.apache.pulsar:pulsar-client-all:2.10.0
- org.apache.pulsar:pulsar-client-api:2.10.0
- org.slf4j:jul-to-slf4j:1.7.32

This project bundles the following dependencies under the Bouncy Castle license.
See bundled license files for details.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ under the License.
<name>Flink : E2E Tests : Pulsar</name>

<properties>
<pulsar.version>2.9.1</pulsar.version>
<pulsar.version>2.10.0</pulsar.version>
<bouncycastle.version>1.69</bouncycastle.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class DockerImageVersions {

public static final String LOCALSTACK = "localstack/localstack:0.13.3";

public static final String PULSAR = "apachepulsar/pulsar:2.9.1";
public static final String PULSAR = "apachepulsar/pulsar:2.10.0";

public static final String CASSANDRA_4_0 = "cassandra:4.0.3";

Expand Down

0 comments on commit 688f6ab

Please sign in to comment.