Skip to content

Configurable HTTP_TIMEOUT_MS in StoreAccessTokenProvider #158

Open
@jan-starkos-oracle

Description

@jan-starkos-oracle

Hi, I have a request related to the implementation in the nosqldriver-5.4.16 library. We noticed that when the cluster is unprovisioned or not in a healthy state and we try to establish a connection, the process waits for 30 seconds and tries to establish the secure connection until an exception is thrown and the operation times out.
I investigated the cause and found that the issue lies in the class oracle.nosql.driver.kv.StoreAccessTokenProvider, where the timeout is hardcoded as:

private static final int HTTP_TIMEOUT_MS = 30000;

This value is then used in a doGetRequest call, and unfortunately, we are unable to configure or override this timeout in any way.
I wanted to ask if it would be possible to make this timeout configurable through a setter or property.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions