lordcheng10 opened a new issue #12216:
URL: https://github.com/apache/pulsar/issues/12216
## Motivation
In the implementation of the producer's close method, the pending write
request is not waited for persistence。
For example, in the following example, after the producer is closed, the
data is not successfully written to the server, and it seems that the data is
lost:
`
try {
PulsarClient client =
PulsarClient.builder().serviceUrl("pulsar://127.0.0.1:6650").build();
Producer<byte[]> producer =
client.newProducer().topic("test1").create();
producer.sendAsync("hello".getBytes());
client.close();
} catch (PulsarClientException e) {
e.printStackTrace();
}
Thread.sleep(1000);
`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]