influxdata / influxdata/influxdb-java
Failed to get influxdb2 version
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
I have upgraded the influxdb server to version 2.0.6 , influxdb-java failed when evoke influxDB.query function, as it failed to get the version of influxdb2 server.
The failed exception:
```
java.lang.UnsupportedOperationException: MessagePack format is only supported from InfluxDB version 1.4 and later
at org.influxdb.impl.InfluxDBImpl.executeQuery(InfluxDBImpl.java:820)
at org.influxdb.impl.InfluxDBImpl.query(InfluxDBImpl.java:724)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with org.influxdb.impl.InfluxDBImpl.query at line 724 and executeQuery at line 820, using the reported InfluxDB 2.0.6 setup and exception as the reproduction case. Trace how the client obtains the server version and determine what must change so the query no longer raises the MessagePack support exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100