Skip to content

Commit

Permalink
try revert client to 2.11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Apr 9, 2024
1 parent 97c17e9 commit 1f1776b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Setup upterm session
uses: lhotari/action-upterm@v1
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1

- name: Build and test
run: mvn -B clean javadoc:javadoc verify
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<maven.compiler.target>8</maven.compiler.target>
<jms.version>2.0.3</jms.version>
<pulsar.groupId>org.apache.pulsar</pulsar.groupId>
<pulsar.version>3.2.2</pulsar.version>
<pulsar.version>2.11.4</pulsar.version>
<activemq.version>5.16.1</activemq.version>
<hawtbuf.version>1.11</hawtbuf.version>
<curator.version>5.1.0</curator.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import javax.jms.TransactionRolledBackRuntimeException;
import lombok.extern.slf4j.Slf4j;
import org.apache.pulsar.client.api.MessageId;
import org.apache.pulsar.client.api.MessageIdAdv;
import org.apache.pulsar.client.impl.MessageIdImpl;

@Slf4j
public final class Utils {
Expand Down Expand Up @@ -342,8 +342,8 @@ public static String getAndRemoveString(

public static boolean sameEntryId(MessageId a, MessageId b) {
// get rid of TopicMessageIdImpl
MessageIdAdv a1 = (MessageIdAdv) a;
MessageIdAdv b1 = (MessageIdAdv) b;
MessageIdImpl a1 = MessageIdImpl.convertToMessageIdImpl(a);
MessageIdImpl b1 = MessageIdImpl.convertToMessageIdImpl(b);
return a1.getLedgerId() == b1.getLedgerId() && a1.getEntryId() == b1.getEntryId();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.apache.pulsar.common.policies.data.PersistentTopicInternalStats;
import org.apache.pulsar.common.policies.data.TopicStats;
import org.apache.pulsar.common.util.FutureUtil;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.Timeout;
Expand Down

0 comments on commit 1f1776b

Please sign in to comment.