oracle / oracle/nosql-java-sdk
Configurable HTTP_TIMEOUT_MS in StoreAccessTokenProvider
@gmfeinberg is already working on this.
Since Jun 18, 2025.
- Dominant language
- Java
- Stars
- 34
- Forks
- 27
- Avg merge
- 13h 59m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
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.
Assessment
This issue has not been assessed yet.