influxdata / influxdb-client-java

InfluxDB 2 JVM Based Clients

Home Page:https://influxdata.github.io/influxdb-client-java/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BucketsAPI::findBuckets() is limited to 20 by default

jcb-entrnce opened this issue · comments

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. have an influxdb2 instance with more than 20 buckets
  2. 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

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