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 2021/12/16 10:59:35 UTC
[GitHub] [pulsar] Jason918 opened a new issue #13360: [Bug] Produce chunk messages failed when topic level maxMessageSize is set.
Jason918 opened a new issue #13360:
URL: https://github.com/apache/pulsar/issues/13360
**Describe the bug**
Produce chunk messages failed when topic level maxMessageSize is set.
See details in the following unit test case.
**To Reproduce**
See this new unit test code in org.apache.pulsar.broker.admin.TopicPoliciesTest
```
@Test
public void testMaxMessageSizeWithChunking() throws Exception {
this.conf.setMaxMessageSize(10);
@Cleanup
Producer<byte[]> producer = pulsarClient.newProducer()
.topic(persistenceTopic)
.enableChunking(true)
.enableBatching(false)
.create();
PersistentTopic topic = (PersistentTopic) pulsar.getBrokerService().getTopic(persistenceTopic,false).join().get();
byte[] data = new byte[100];
producer.send(data);
// success with maxMessageSize is 10
admin.topicPolicies().setMaxMessageSize(persistenceTopic, 10);
Awaitility.await().untilAsserted(() -> {
Assert.assertEquals((int) topic.getHierarchyTopicPolicies().getTopicMaxMessageSize().get(), 10);
});
producer.send(data);
// failed with maxMessageSize is 9
admin.topicPolicies().setMaxMessageSize(persistenceTopic, 9);
Awaitility.await().untilAsserted(() -> {
Assert.assertEquals((int) topic.getHierarchyTopicPolicies().getTopicMaxMessageSize().get(), 9);
});
producer.send(data);
}
producer.send(data);
}
```
**Expected behavior**
Chunking should work fine if we change maxMessageSize.
**Screenshots**
NA
**Desktop (please complete the following information):**
- OS: macOS
**Additional context**
NA
--
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.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jason918 commented on issue #13360: [Bug] Produce chunk messages failed when topic level maxMessageSize is set.
Posted by GitBox <gi...@apache.org>.
Jason918 commented on issue #13360:
URL: https://github.com/apache/pulsar/issues/13360#issuecomment-1051510249
Solved with PIP-131
--
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.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jason918 closed issue #13360: [Bug] Produce chunk messages failed when topic level maxMessageSize is set.
Posted by GitBox <gi...@apache.org>.
Jason918 closed issue #13360:
URL: https://github.com/apache/pulsar/issues/13360
--
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.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #13360: [Bug] Produce chunk messages failed when topic level maxMessageSize is set.
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #13360:
URL: https://github.com/apache/pulsar/issues/13360#issuecomment-1051438716
The issue had no activity for 30 days, mark with Stale label.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Jason918 commented on issue #13360: [Bug] Produce chunk messages failed when topic level maxMessageSize is set.
Posted by GitBox <gi...@apache.org>.
Jason918 commented on issue #13360:
URL: https://github.com/apache/pulsar/issues/13360#issuecomment-995692052
I am working on a fix.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org