You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/08 01:18:10 UTC
[GitHub] [pulsar] codelipenghui commented on issue #8001: A publisher is stuck after delete and recreate partitioned topic with fewer partitions
codelipenghui commented on issue #8001:
URL: https://github.com/apache/pulsar/issues/8001#issuecomment-688565079
@alexku7 Thanks for your feedback. I can't reproduce this issue on my laptop. When I try to delete the partitioned topic and the producers still publishing messages to this topic. The request is rejected by
```
09:13:48.095 [AsyncHttpClient-7-1] WARN org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/public/default/xyz/partitions?force=false] Failed to perform http delete request: javax.ws.rs.ClientErrorException: HTTP 412 Precondition Failed
Topic has active producers/subscriptions
Reason: Topic has active producers/subscriptions
```
Then I close all producers and recreate the partitioned topic
```
bin/pulsar-admin topics create-partitioned-topic persistent://public/default/xyz -p 2
```
This topic has 3 partitions previously.
Then I restart the producers:
```
09:14:13.035 [pulsar-client-io-2-10] INFO org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/xyz-partition-0] [standalone-0-3] Created producer on cnx [id: 0xcdb35d20, L:/127.0.0.1:56325 - R:localhost/127.0.0.1:6650]
09:14:13.038 [pulsar-client-io-2-1] INFO org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/xyz-partition-1] [standalone-0-4] Created producer on cnx [id: 0x86001b28, L:/127.0.0.1:56326 - R:localhost/127.0.0.1:6650]
09:14:13.044 [pulsar-client-io-2-1] INFO org.apache.pulsar.client.impl.PartitionedProducerImpl - [xyz] Created partitioned producer
09:14:13.044 [pulsar-perf-producer-exec-1-1] INFO org.apache.pulsar.testclient.PerformanceProducer - Created 1 producers
09:14:13.094 [pulsar-timer-5-1] WARN com.scurrilous.circe.checksum.Crc32cIntChecksum - Failed to load Circe JNI library. Falling back to Java based CRC32c provider
09:14:22.522 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produced: 942.7 msg/s --- 7.4 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 3.166 ms - med: 2.986 - 95pct: 4.433 - 99pct: 5.388 - 99.9pct: 6.737 - 99.99pct: 15.831 - Max: 16.880
09:14:32.671 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produced: 999.8 msg/s --- 7.8 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 4.895 ms - med: 2.979 - 95pct: 4.811 - 99pct: 88.148 - 99.9pct: 176.388 - 99.99pct: 189.040 - Max: 189.914
09:14:42.714 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produced: 1000.1 msg/s --- 7.8 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 3.074 ms - med: 2.942 - 95pct: 4.408 - 99pct: 5.414 - 99.9pct: 8.176 - 99.99pct: 13.231 - Max: 13.239
09:14:52.729 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produced: 999.9 msg/s --- 7.8 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 2.996 ms - med: 2.925 - 95pct: 4.378 - 99pct: 5.257 - 99.9pct: 9.832 - 99.99pct: 12.820 - Max: 13.879
09:15:02.742 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produced: 1000.2 msg/s --- 7.8 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 2.992 ms - med: 2.905 - 95pct: 4.378 - 99pct: 5.663 - 99.9pct: 10.231 - 99.99pct: 12.816 - Max: 13.330
09:15:12.757 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produced: 999.9 msg/s --- 7.8 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 2.988 ms - med: 2.913 - 95pct: 4.434 - 99pct: 5.566 - 99.9pct: 8.327 - 99.99pct: 11.314 - Max: 11.314
```
The producer works well.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org