[GitHub] [pulsar] leiless edited a comment on issue #10832: [Question] Can producer send() cause cumulative ACK from previous sendAsync()?

2021-06-09 Thread GitBox
leiless edited a comment on issue #10832: URL: https://github.com/apache/pulsar/issues/10832#issuecomment-858341525 Code example ```java List> sendFutureList = Lists.newArrayList(); for (int i = 0; i < numMsgs; i++) { byte[] message = ("msg-" + i)

[GitHub] [pulsar] leiless edited a comment on issue #10832: [Question] Can producer send() cause cumulative ACK from previous sendAsync()?

2021-06-08 Thread GitBox
leiless edited a comment on issue #10832: URL: https://github.com/apache/pulsar/issues/10832#issuecomment-856694634 @lhotari, many thanks for your reply. For the [`flush()`](https://pulsar.apache.org/api/client/2.7.0-SNAPSHOT/org/apache/pulsar/client/api/Producer.html#flush--) metho

[GitHub] [pulsar] leiless edited a comment on issue #10832: [Question] Can producer send() cause cumulative ACK from previous sendAsync()?

2021-06-08 Thread GitBox
leiless edited a comment on issue #10832: URL: https://github.com/apache/pulsar/issues/10832#issuecomment-856702215 > One possibility is to add them to a map/list and validate that all completable futures were successfully completed as the last step, after your `flush()` step. What

[GitHub] [pulsar] leiless edited a comment on issue #10832: [Question] Can producer send() cause cumulative ACK from previous sendAsync()?

2021-06-08 Thread GitBox
leiless edited a comment on issue #10832: URL: https://github.com/apache/pulsar/issues/10832#issuecomment-856694634 @lhotari, many thanks for your reply. For the [`flush()`](https://pulsar.apache.org/api/client/2.7.0-SNAPSHOT/org/apache/pulsar/client/api/Producer.html#flush--) metho

[GitHub] [pulsar] leiless edited a comment on issue #10832: [Question] Can producer send() cause cumulative ACK from previous sendAsync()?

2021-06-08 Thread GitBox
leiless edited a comment on issue #10832: URL: https://github.com/apache/pulsar/issues/10832#issuecomment-856694634 @lhotari, many thanks for your reply. For the [`flush()`](https://pulsar.apache.org/api/client/2.7.0-SNAPSHOT/org/apache/pulsar/client/api/Producer.html#flush--) metho

[GitHub] [pulsar] leiless edited a comment on issue #10832: [Question] Can producer send() cause cumulative ACK from previous sendAsync()?

2021-06-04 Thread GitBox
leiless edited a comment on issue #10832: URL: https://github.com/apache/pulsar/issues/10832#issuecomment-855166878 Instead of `fsync(2)` per message manner, I pursuing `fsync(2)` in batch(as a whole). Explicitly, `fsync(2)` for the last msg in a list. Which enforces previous messages