You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by Ivan Kelly <iv...@apache.org> on 2018/02/26 20:42:29 UTC

Fine grained control over batching in tests

Hi folks,

I'd like to do some tests with batching and compaction. So far the
only way I've found to control batching is by setting
BatchingMaxMessages and MaxPublishingDelay, but this doesn't seem 100%
deterministic to me.

Does anyone have a better way to control this, or would it make more
sense to expose ProducerImpl#batchMessageAndSend() just for tests?

Regards,
Ivan

Re: Fine grained control over batching in tests

Posted by Ivan Kelly <iv...@apache.org>.
Crap :) dev + autocomplete.



On Mon, Feb 26, 2018 at 9:45 PM, Sijie Guo <gu...@gmail.com> wrote:
> Ivan,
>
> I think this should be at pulsar@ :-)
>
> - Sijie
>
> On Mon, Feb 26, 2018 at 12:42 PM, Ivan Kelly <iv...@apache.org> wrote:
>
>> Hi folks,
>>
>> I'd like to do some tests with batching and compaction. So far the
>> only way I've found to control batching is by setting
>> BatchingMaxMessages and MaxPublishingDelay, but this doesn't seem 100%
>> deterministic to me.
>>
>> Does anyone have a better way to control this, or would it make more
>> sense to expose ProducerImpl#batchMessageAndSend() just for tests?
>>
>> Regards,
>> Ivan
>>

Re: Fine grained control over batching in tests

Posted by Sijie Guo <gu...@gmail.com>.
Ivan,

I think this should be at pulsar@ :-)

- Sijie

On Mon, Feb 26, 2018 at 12:42 PM, Ivan Kelly <iv...@apache.org> wrote:

> Hi folks,
>
> I'd like to do some tests with batching and compaction. So far the
> only way I've found to control batching is by setting
> BatchingMaxMessages and MaxPublishingDelay, but this doesn't seem 100%
> deterministic to me.
>
> Does anyone have a better way to control this, or would it make more
> sense to expose ProducerImpl#batchMessageAndSend() just for tests?
>
> Regards,
> Ivan
>