Skip to content

Commit 1f94dd9

Browse files
Disable topic level policies to make tests work (#397)
1 parent 77e0c22 commit 1f94dd9

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

pulsar-test-service-start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ SRC_DIR=$PWD
2525

2626
./pulsar-test-service-stop.sh
2727

28-
CONTAINER_ID=$(docker run -i --user $(id -u) -p 8080:8080 -p 6650:6650 -p 8443:8443 -p 6651:6651 --rm --detach apachepulsar/pulsar:3.1.1 sleep 3600)
28+
CONTAINER_ID=$(docker run -i --user $(id -u) -p 8080:8080 -p 6650:6650 -p 8443:8443 -p 6651:6651 --rm --detach apachepulsar/pulsar:latest sleep 3600)
2929
build-support/setup-test-service-container.sh $CONTAINER_ID start-test-service-inside-container.sh
3030

3131
docker cp $CONTAINER_ID:/pulsar/data/tokens/token.txt .test-token.txt
3232

33-
CONTAINER_ID=$(docker run -i --user $(id -u) -p 8081:8081 -p 6652:6652 -p 8444:8444 -p 6653:6653 --rm --detach apachepulsar/pulsar:3.1.1 sleep 3600)
33+
CONTAINER_ID=$(docker run -i --user $(id -u) -p 8081:8081 -p 6652:6652 -p 8444:8444 -p 6653:6653 --rm --detach apachepulsar/pulsar:latest sleep 3600)
3434
build-support/setup-test-service-container.sh $CONTAINER_ID start-mim-test-service-inside-container.sh
3535

3636
echo "-- Ready to start tests"

test-conf/standalone-ssl-mim.conf

+5
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,8 @@ maxMessageSize=1024000
307307

308308
# Disable consistent hashing to fix flaky `KeySharedConsumerTest#testMultiTopics`.
309309
subscriptionKeySharedUseConsistentHashing=false
310+
311+
# It's true by default since 2.11. After https://github.com/apache/pulsar/pull/21445, we must configure
312+
# brokerClientAuthenticationPlugin and brokerClientAuthenticationParameters correctly when enabling topic
313+
# level policies. Otherwise, no topic could be loaded.
314+
topicLevelPoliciesEnabled=false

test-conf/standalone-ssl.conf

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919

2020
### --- General broker settings --- ###
2121

22-
# Disable system topic
23-
systemTopicEnabled=false
24-
topicLevelPoliciesEnabled=false
25-
2622
# Zookeeper quorum connection string
2723
zookeeperServers=
2824

@@ -317,3 +313,8 @@ subscriptionKeySharedUseConsistentHashing=false
317313

318314
# Enable batch index ACK
319315
acknowledgmentAtBatchIndexLevelEnabled=true
316+
317+
# It's true by default since 2.11. After https://github.com/apache/pulsar/pull/21445, we must configure
318+
# brokerClientAuthenticationPlugin and brokerClientAuthenticationParameters correctly when enabling topic
319+
# level policies. Otherwise, no topic could be loaded.
320+
topicLevelPoliciesEnabled=false

0 commit comments

Comments
 (0)