Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Clinet lost connection #498

Open
alpha3171 opened this issue Jan 11, 2023 · 3 comments
Open

Java Clinet lost connection #498

alpha3171 opened this issue Jan 11, 2023 · 3 comments
Labels
question Further information is requested

Comments

@alpha3171
Copy link

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);
@powersj
Copy link
Contributor

powersj commented Mar 27, 2023

Hi,

Were you able to resolve your issue?
Are you closing the client or the writeapi? Take a look at the response in this other issue: #469

@powersj powersj added the question Further information is requested label Mar 27, 2023
@alpha3171
Copy link
Author

Hi,

Were you able to resolve your issue? Are you closing the client or the writeapi? Take a look at the response in this other issue: #469

thanks for your response. my issue has not been resolved. I use token to connect influxdb. And this issue happened accidentally, But if it happend, my server can write any data into the influxdb , even restart the server app, it not work too.

@powersj
Copy link
Contributor

powersj commented Mar 28, 2023

Have you tried the example in the issue I linked to as an alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants