influxdata / influxdata/influxdb-client-java
Java Clinet lost connection
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 477
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
When I use java client, version 5.0.0. When the server run after a period , I found the point has not been writen to db. And there are not any exception logs.
Then , i use command "netstat -apntl | grep 8086" ,find none.
Could you tell me how to fix it. thanks.
I use token to auth.
init code is :
```
influxDBClients = InfluxDBClientFactory.create(address, token.toCharArray());
writeApis = influxDBClients.makeWriteApi(WriteOptions.builder().batchSize(128).flushInterval(3000).build());
```
and call in another function
```
writeApi = getApi();
Point point = Point.measurement(measurement).addTags(tags);
writeApi.writePoint("bucket1", "xxxx", point);
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior around InfluxDBClientFactory.create, makeWriteApi, and writePoint, using the Java client 5.0.0 configuration shown in the issue. Check what happens after the server runs for a period and whether the point is persisted or any connection errors are reported; the issue is resolved when writes continue reliably or the failure is clearly surfaced.
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
- 35/100