Commit b382e2c
authored
Fix race condition in JWT realm test (#138448)
Fix race condition in JwtRealmAuthenticateTests
testJwkUpdatesByReloadWithFile.
The foreground test thread checks the JWT cache without proper locking
or synchronization. The can result in concurrent modification to the
JWT cache and NPE.
This change simply disables the JWT cache for this test.
It isn't relevant to the test.1 parent 39d634c commit b382e2c
File tree
2 files changed
+1
-4
lines changed- x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/jwt
2 files changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | 411 | | |
415 | 412 | | |
416 | 413 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
0 commit comments