akhq
akhq copied to clipboard
/topic/data endpoint is not honouring akhq.topic-data.size
It keeps returning the default count number 50, even if akhq's application.yml contains the key
akhq:
topic-data:
size: 2000
Looking at code, we never used this option, so normal it don't work. I think a quick fix was possible but need more time to handle this. PR are welcome :+1:
Thanks for the fast answer @tchiotludo. Then topic/data is paginated at 50 by design with no way to tune it currently, right?
Anyway, I just found out the /data/search variant honours it, thankfully
Exactly. Or you can change this :
akhq:
clients-defaults:
consumer:
properties:
max.poll.records: 50
that will do the job I think
I checked the code in RecordRepository but it seems the var is not used anywhere if github finders work ok:
@Value("${akhq.clients-defaults.consumer.properties.max.poll.records:50}")
protected int maxPollRecords;
This vars maxPollRecords
is not used, but the max.poll.records
is injected on every consumer, so that one works
@tchiotludo are you working on this already? I'd love to contribute back to akhq (which I used a lot in past years) and a bug fix may be a good way to learn about the code base
@lucapette: I don't work on this but I'm not sure we need to work on this, since we max.poll.records
, maybe removing the options and the documentation will be fine
@tchiotludo if that's your preference, I understand. I can do the docs if you want (I value docs contributions as much as code. Still works as a way to get acquainted with the codebase as well) and probably close the issue with that pr (your call of course!)
yes documentation have a lot of values :+1: If you want to search something to do I do some triage here
@tchiotludo thank you! I'll have a look as soon as I can. If you're ok with it (reaction to the comment will do) I'll open a pr to clean up the docs from the unused option
@lucapette thanks ;)