Skip to content

Commit f960a24

Browse files
authored
Re-check if auth string has been acquired after possibly waiting for on-premises kv auth login
1 parent 638f4f3 commit f960a24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/src/main/java/oracle/nosql/driver/kv/StoreAccessTokenProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ public StoreAccessTokenProvider(String userName,
222222
*/
223223
public synchronized void bootstrapLogin() {
224224

225-
if (!isSecure || isClosed) {
225+
/* re-check the authString in case of a race */
226+
if (!isSecure || isClosed || authString.get() != null) {
226227
return;
227228
}
228229

0 commit comments

Comments
 (0)