Commit e49809f
Eugenio Grosso
flasharray: rate-limit legacy-auth deprecation WARN to once per URL
Copilot pointed out that the legacy-auth deprecation WARN is emitted on every login/refresh; with the default ~14-minute key TTL and multiple legacy-configured pools, that spams the logs without giving the operator any new information.
Gate the WARN behind a static Set<String> keyed by FlashArray URL so it fires once per endpoint per JVM lifetime. Subsequent refreshes against the same URL stay silent. Uses ConcurrentHashMap.newKeySet() for thread-safety since multiple pools poll concurrently.
Signed-off-by: Eugenio Grosso <eugenio.grosso@gmail.com>1 parent 2938570 commit e49809f
1 file changed
Lines changed: 12 additions & 4 deletions
File tree
- plugins/storage/volume/flasharray/src/main/java/org/apache/cloudstack/storage/datastore/adapter/flasharray
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
712 | 718 | | |
713 | 719 | | |
714 | 720 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
719 | 727 | | |
720 | 728 | | |
721 | 729 | | |
| |||
0 commit comments