oracle / oracle/nosql-java-sdk

Configurable HTTP_TIMEOUT_MS in StoreAccessTokenProvider

Open
#158 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.