6.0.0
Migration Notice
RxJava to support write with batching, retry and backpressure.
The underlying outdated RxJava2 library was upgraded to the latest RxJava3.
Changes in public API
WriteServiceimports:io.reactivex.Singleis refactored toio.reactivex.rxjava3.core.Single
WriteOptionsimports:io.reactivex.BackpressureOverflowStrategy->io.reactivex.rxjava3.core.BackpressureOverflowStrategyio.reactivex.Scheduler->io.reactivex.rxjava3.core.Schedulerio.reactivex.schedulers.Schedulers->io.reactivex.rxjava3.schedulers.Schedulers
InfluxDBClientReactive:Single<HealthCheck> health()->Publisher<HealthCheck> health()
WriteOptionsReactiveio.reactivex.Scheduler->io.reactivex.rxjava3.core.Schedulerio.reactivex.schedulers.Schedulers->io.reactivex.rxjava3.schedulers.Schedulers
TelegrafsServiceandTelegrafsApiTelegrafRequestrenamed toTelegrafPluginRequestto create/updateTelegrafconfigurationTelegrafPlugin.TypeEnum.INPUTSrenamed toTelegrafPlugin.TypeEnum.INPUTTelegrafPlugin.TypeEnum.OUTPUTSrenamed toTelegrafPlugin.TypeEnum.OUTPUT
Services
This release also uses new version of InfluxDB OSS API definitions - oss.yml. The following breaking changes are in underlying API services and doesn't affect common apis such as - WriteApi, QueryApi, BucketsApi, OrganizationsApi...
- Add
ConfigServiceto retrieve InfluxDB's runtime configuration - Add
DebugServiceto retrieve debug and performance data from runtime - Add
RemoteConnectionsServiceto deal with registered remote InfluxDB connections - Add
MetricsServiceto deal with exposed prometheus metrics - Add
ReplicationServiceto manage InfluxDB replications - Update
TemplatesServiceto deal withStackandTemplateAPI - Update
RestoreServiceto deal with new restore functions of InfluxDB
List of updated dependencies:
- Core:
- com.squareup.okhttp3:okhttp:jar:4.9.3
- com.squareup.okio:okio:jar:2.10.0
- com.google.code.gson:gson:jar:2.9.0
- io.reactivex.rxjava3:rxjava:jar:3.1.4
- org.apache.commons:commons-csv:jar 1.9.0
- io.gsonfire:gson-fire:1.8.5
- Kotlin
- org.jetbrains.kotlin:kotlin-stdlib:1.6.20
- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.4.3
- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0
- Karaf
- karaf 4.3.6
- gson-fire 1.8.5
- Micrometer
- micrometer 1.8.4
- OSGi
- org.osgi:osgi.core:8.0.0
- Spring integration
- org.springframework.boot:spring-boot:jar:2.6.6
- org.springframework:spring-core:jar:5.3.17
Features
-
#324 Removed dependency on
io.swagger:swagger-annotationsand updated swagger to the latest version -
#289: Upgrade
RxJava2->RxJava3, update outdated dependencies -
#316: Add
InvocableScriptsApito create, update, list, delete and invoke scripts by seamless way -
#315: Add support for timezones [FluxDSL]
-
#317: Gets HTTP headers from the unsuccessful HTTP request
-
#334: Supports not operator [FluxDSL]
-
#335: URL to connect to the InfluxDB is always evaluate as a connection string
-
#329: Add support for write
consistencyparameter [InfluxDB Enterprise]Configure
consistencyviaWrite API:- writeApi.writeRecord(WritePrecision.NS, "cpu_load_short,host=server02 value=0.67"); + WriteParameters parameters = new WriteParameters(WritePrecision.NS, WriteConsistency.ALL); + + writeApi.writeRecord("cpu_load_short,host=server02 value=0.67", parameters);
Configure
consistencyvia client options:- InfluxDBClient client = InfluxDBClientFactory.createV1("http://influxdb_enterpriser:8086", - "my-username", - "my-password".toCharArray(), - "my-db", - "autogen"); + InfluxDBClient client = InfluxDBClientFactory.createV1("http://influxdb_enterpriser:8086", + "my-username", + "my-password".toCharArray(), + "my-db", + "autogen", + WriteConsistency.ALL);
Bug Fixes
- #313: Do not deliver
exceptionwhen the consumer is already disposed [influxdb-client-reactive]