BucketsAPI::findBuckets() is limited to 20 by default
jcb-entrnce opened this issue · comments
jcb-entrnce commented
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
- have an influxdb2 instance with more than 20 buckets
- call BucketsApi::findBuckets()
Expected behavior:
The API returns all buckets
Actual behavior:
The API returns at most 20 buckets
Specifications:
- Client Version: com.influxdb:influxdb-client-java:6.9.0
- InfluxDB Version: 2.7
- JDK Version: Eclipse Adoptium jdk-17.0.6.10-hotspot
- Platform: docker / alpine-linux
Jakub Bednář commented
Hi @jcb-entrnce,
thanks for using our client.
You have to use: List<Bucket> findBuckets(@Nonnull final BucketsQuery query)
and set proper limit to BucketsQuery
.
Regards