Steps to reproduce:
- Start empty Influxdb instance
- Create bucket named "myBucket"
- Request list of elements
InfluxQLQueryResult result = client.getInfluxQLQueryApi().query(new InfluxQLQuery("show field keys", "myBucket"));
Expected behavior:
Code above should return empty result: result.getResults() should return an empty List.
Actual behavior:
Code returns null, despite method query(...) being annotated @NonNull.
Specifications:
- Client Version:
7.1.0
- InfluxDB Version:
v2.7.6
- JDK Version:
openjdk 17.0.11 2024-04-16
- Platform:
ArchLinux 6.9.5-arch1-1
I believe error is somewhere in AbstractQueryApi class, in bodyConsumer (lines 118+):
BufferedSource source = body.source();
while(source.isOpen() && !source.exhausted() && !cancellable.wasCancelled) {
// consumer won't be executed when body is empty
consumer.accept(cancellable, source);
}
Steps to reproduce:
InfluxQLQueryResult result = client.getInfluxQLQueryApi().query(new InfluxQLQuery("show field keys", "myBucket"));Expected behavior:
Code above should return empty result:
result.getResults()should return an emptyList.Actual behavior:
Code returns null, despite method
query(...)being annotated@NonNull.Specifications:
7.1.0v2.7.6openjdk 17.0.11 2024-04-16ArchLinux 6.9.5-arch1-1I believe error is somewhere in
AbstractQueryApiclass, in bodyConsumer (lines 118+):