influxdata / influxdata/influxdb-client-java

Java Clinet lost connection

Open
#498 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.