Releases: influxdata/influxdb-client-java
Releases · influxdata/influxdb-client-java
7.2.0
Features
- #745: New example
WriteHttpExceptionHandled.java
showing how to make use ofInfluxException.headers()
when HTTP Errors are returned from server. Also, now writes selected headers to client log. - #719:
InfluxQLQueryService
header changes.Accept
header can now be defined when makingInfluxQLQuery
calls. Supoorted MIME types:application/csv
application/json
- The value
application/csv
remains the default. ⚠️ Side effects of these changes:- When using
application/json
, timestamp fields are returned in the RFC3339 format unlessInfluxQLQuery.setPrecision()
has been previously called, in which case they are returned in the POSIX epoch format. - When using
application/csv
, timestamp fields are returned in the POSIX epoch format.
- When using
- Convenience methods have been added to
InfluxQLQueryAPI
to simplify expressly specifying JSON or CSV calls. - Epoch timestamps can also be ensured by calling
InfluxQLQuery.setPrecision()
before executing a query call. - An
AcceptHeader
field has also been added to theInfluxQLQuery
class and can be set withInfluxQLQuery.setAcceptHeader()
. - More information from the server side:
- See the updated InfluxQLExample
Bug Fixes
- #744 following an
InfluxQLQueryAPI.query()
call, empty results from the server no longer result in anull
result value.
Dependencies
Update dependencies:
Build:
- #753:
spring-boot
to3.3.2
- #726:
kotlin
to2.0.0
- #752:
micrometer-registry-influx
to1.13.2
- #749:
kotlin-coroutines
to1.8.1
- #735:
scala-collection-compat_2.12
to2.12.0
- #740:
pekko
to1.0.3
- #741:
commons-csv
to1.11.0
- #743:
gson
to2.11.0
Maven:
- #721:
build-helper-maven-plugin
to3.6.0
- #728:
maven-source-plugin
to3.3.1
- #729:
maven-enforcer-plugin
to3.5.0
- #730:
scala-maven-plugin
to4.9.1
- #734:
maven-compiler-plugin
to3.13.0
- #736:
jacoco-maven-plugin
to0.8.12
- #748:
maven-surefire-plugin
,maven-failsafe-plugin
to3.3.1
- #746:
maven-jar-plugin
to3.4.2
- #747:
maven-project-info-reports-plugin
to3.6.2
- #751:
license-maven-plugin
to4.5
Test:
- #724:
assertj
to3.26.0
- #725:
assertk-jvm
to0.28.1
- #750:
assertj-core
to3.26.3
- #737:
junit-jupiter
to5.10.3
- #754:
hamcrest
to3.0
Examples:
7.1.0
Bug Fixes
- #684: Fix checking for CSV end of table marker when parsing CSV stream to InfluxQLQueryResult, needed for example when parsing the results of a query like "SHOW SERIES".
- #662: Adds to FluxDsl support for the
|> elapsed(unit)
function. - #623: Enables the use of IPv6 addresses.
- #604: Custom FluxDSL restrictions for regular expressions
Dependencies
Update dependencies:
Build:
- #716:
karaf
to4.4.6
- #710:
spring-boot
to3.2.5
- #686:
scala-library
to2.12.19
- #690:
kotlinx-coroutines
to1.8.0
- #707:
micrometer-registry-influx
to1.12.5
- #696:
okio
to3.9.0
- #694:
retrofit
to2.11.0
- #699:
kotlin
to1.9.23
- #701:
lombok
to1.18.32
- #702:
commons-io
to2.16.0
Maven:
- #676:
maven-compiler-plugin
to3.12.1
- #677:
maven-surefire-plugin
,maven-failsafe-plugin
to3.2.5
- #679:
build-helper-maven-plugin
to3.5.0
- #682:
maven-checkstyle-plugin
to3.3.1
- #712:
maven-gpg-plugin
to3.2.4
- #703:
dokka-maven-plugin
to1.9.20
- #713:
maven-jar-plugin
to3.4.1
- #709:
scala-maven-plugin
to4.9.0
- #708:
maven-deploy-plugin
to3.1.2
Test:
Provided:
- #711:
slf4j-api
to2.0.13
Examples:
- #715:
commons-cli
to1.7.0
7.0.0
Features
- #661: Replaced Akka Streams with Pekko Streams in the Scala client.
- #673: Upgrade SpringBoot to v3 and Spring to v6
- #673: Disable support for old JDKs (< 17)
Dependencies
Update dependencies:
Build:
- #664:
kotlin
to1.9.22
- #666:
okio
to3.7.0
- #667:
rxjava
to3.1.8
- #669:
commons-lang3
to3.14.0
- #670:
micrometer-registry-influx
to1.12.1
- #673:
spring-boot
to3.2.2
- #673:
spring
to6.1.3
- #673:
scala-library
to2.13.11
- #673:
okhttp
to4.12.0
Maven:
- #671:
maven-javadoc-plugin
to3.6.3
Test:
- #668:
junit-jupiter
to5.10.1
6.12.0
Features
- #643:
ConnectionClosingInterceptor
interceptor closes connections that exceed
a specified maximum lifetime age (TTL). It's beneficial for scenarios where your application requires establishing new connections to the same host after
a predetermined interval.
The connection to the InfluxDB Enterprise with the ConnectionClosingInterceptor
can be configured as follows:
package example;
import java.time.Duration;
import java.util.Collections;
import okhttp3.OkHttpClient;
import okhttp3.Protocol;
import com.influxdb.client.InfluxDBClient;
import com.influxdb.client.InfluxDBClientFactory;
import com.influxdb.client.InfluxDBClientOptions;
import com.influxdb.client.domain.WriteConsistency;
import com.influxdb.rest.ConnectionClosingInterceptor;
public class InfluxQLExample {
public static void main(final String[] args) throws InterruptedException {
//
// Credentials to connect to InfluxDB Enterprise
//
String url = "https://localhost:8086";
String username = "admin";
String password = "password";
String database = "database";
WriteConsistency consistency = WriteConsistency.ALL;
//
// Configure underlying HTTP client
//
OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()
.protocols(Collections.singletonList(Protocol.HTTP_1_1));
//
// Use new Connection TTL feature
//
Duration connectionMaxAge = Duration.ofMinutes(1);
ConnectionClosingInterceptor interceptor = new ConnectionClosingInterceptor(connectionMaxAge);
okHttpClientBuilder
.addNetworkInterceptor(interceptor)
.eventListenerFactory(call -> interceptor);
//
// Configure InfluxDB client
//
InfluxDBClientOptions.Builder optionsBuilder = InfluxDBClientOptions.builder()
.url(url)
.org("-")
.authenticateToken(String.format("%s:%s", username, password).toCharArray())
.bucket(String.format("%s/%s", database, ""))
.consistency(consistency)
.okHttpClient(okHttpClientBuilder);
//
// Create client and write data
//
try (InfluxDBClient client = InfluxDBClientFactory.create(optionsBuilder.build())) {
// ...
}
}
}
6.11.0
Features
- #647:
findTasksStream
function with pagination
Bug Fixes
- #648: With csv parsing, return empty string when
stringValue
anddefaultValue
are both an empty string
Dependencies
Update dependencies:
Build:
- #614:
commons-lang3
to3.13.0
- #653:
commons-io
to2.15.1
- #622:
micrometer-registry-influx
to1.11.3
- #635:
spring-boot
to2.7.17
- #625:
lombok
to1.18.30
- #629:
karaf
to4.4.4
- #634:
kotlin
to1.9.20
- #542:
okhttp
to4.11.0
- #630:
okio
to3.6.0
Maven:
- #656:
maven-enforcer-plugin
to3.4.1
- #636:
dokka-maven-plugin
to1.9.10
- #658:
versions-maven-plugin
to2.16.2
- #627:
assertk-jvm
to0.27.0
- #637:
maven-javadoc-plugin
to3.6.0
- #639:
license-maven-plugin
to4.3
- #651:
maven-surefire-plugin
,maven-failsafe-plugin
to3.2.2
- #654:
jacoco-maven-plugin
to0.8.11
- #633:
maven-surefire-plugin
,maven-failsafe-plugin
to3.2.1
- #655:
maven-project-info-reports-plugin
to3.5.0
Examples:
- #638:
commons-cli
to1.6.0
Test:
- #650:
logback-classic
to1.3.14
Provided:
- #657:
slf4j-api
to2.0.9
6.10.0
Bug Fixes
- #584: InfluxQL tags support
CI
- #593: Add JDK 20 to CI pipeline
Dependencies
Update dependencies:
Build:
- #567:
lombok
to1.18.28
- #582:
scala-collection-compat_2.12
to2.11.0
- #601:
micrometer-registry-influx
to1.11.2
- #608:
spring-boot
to2.7.14
- #588:
scala-library
to2.12.18
- #589:
kotlin
to1.8.22
- #592:
akka
to2.6.21
- #602:
okio
to3.4.0
Maven:
- #569:
maven-enforcer-plugin
to3.3.0
- #570:
build-helper-maven-plugin
to3.4.0
- #573:
dokka-maven-plugin
to1.8.20
- #583:
maven-project-info-reports-plugin
to3.4.5
- #586:
maven-surefire-plugin
,maven-failsafe-plugin
to3.1.2
- #590:
maven-bundle-plugin
to5.1.9
- #591:
maven-source-plugin
to3.3.0
Examples:
- #571:
commons-io
to2.12.0
Test:
- #596:
logback-classic
to1.3.8
6.9.0
Dependencies
Update dependencies:
Build:
- #507:
rxjava
to3.1.5
- #511:
lombok
to1.18.26
- #512:
commons-csv
to1.10.0
- #536:
spring-boot
to2.7.11
- #540:
kotlin
to1.8.21
- #545:
scala-collection-compat_2.12
to2.10.0
- #548:
maven-gpg-plugin
to3.1.0
- #552:
micrometer-registry-influx
to1.11.0
Maven:
- #527:
scala-maven-plugin
to4.8.1
- #528:
license-maven-plugin
to4.2
- #529:
maven-deploy-plugin
to3.1.1
- #543:
jacoco-maven-plugin
to0.8.10
- #544:
maven-surefire-plugin
,maven-failsafe-plugin
to3.1.0
- #549:
maven-checkstyle-plugin
to3.2.2
- #550:
maven-compiler-plugin
to3.11.0
- #559:
maven-project-info-reports-plugin
to3.4.3
Provided:
- #561:
slf4j-api
to2.0.7
Test:
6.8.0
6.8.0 [2023-03-29]
Bug Fixes
- #470: Move auto-configuration registration to
AutoConfiguration.imports
[spring] - #483: Fix of potential NPE for
WriteParameters#hashCode
- #521: Ensure write data is actually gzip'ed when enabled
CI
- #484: Add JDK 19 to CI pipeline
Dependencies
Update various dependencies
Build:
- #473:
micrometer-registry-influx
to1.10.2
- #477:
kotlin
to1.7.22
- #476:
scala-collection-compat_2.12
to2.9.0
- #492:
versions-maven-plugin
to2.14.2
Maven Plugin:
- #479:
scala-maven-plugin
to4.8.0
Provided:
Test:
6.7.0
Features
- #439: Add
FluxRecord.getRow()
which stores response data in a list - #457: Add possibility to use
AuthorizationPostRequest
andAuthorizationUpdateRequest
inAuthorizationApi
Bug Fixes
- #459: Fix support for InfluxDB 1.8.x in InfluxQLQueryAPI
CI
- #460: Check dependency licenses
Dependencies
- #446: Remove
gson-fire
Update dependencies:
Build:
- #434:
kotlin
to1.7.20
- #436:
scala-library
to2.13.9
- #443:
micrometer-registry-influx
to1.9.5
- #451:
karaf
to4.4.2
- #449:
spring-boot
to2.7.5
- #462:
gson
to2.10
Maven Plugin:
Test:
6.6.0
Features
- #419: Add possibility to get time from
Point
data structure
Bug Fixes
- #414: Mapping
Number
types to POJO query output
Documentation
- #406: Fix compatibility of the
doclint
between JDK 8 and JDK 18
Dependencies
Update dependencies:
Build:
- #412, #416:
akka
to2.6.20
- #420:
micrometer-registry-influx
to1.9.4
- #423:
scala-library
to2.12.17
- #430:
spring-boot
to2.7.4
Maven Plugin:
- #413:
versions-maven-plugin
to2.12.0
- #426:
maven-jar-plugin
to3.3.0
- #432:
scala-maven-plugin
to4.7.2
Provided:
- #431:
slf4j-api
to2.0.3
Test:
- #422:
logback-classic
to1.3.1
- #417:
mockito
to4.8.0
- #425:
spring-test
to5.3.23
- #427:
junit-jupiter-engine
to5.9.1
Remove dependencies:
Test:
- #418:
junit-platform-runner