This is an automated email from the ASF dual-hosted git repository.
mattisonchao pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.9 by this push:
new 5902caab532 [fix][tiered-storage] Fix the wrong secret key name get
from env (#15814)
5902caab532 is described below
commit 5902caab532ea0ea36afc4d1e9f988cb575e753a
Author: Yong Zhang <[email protected]>
AuthorDate: Fri May 27 22:15:43 2022 +0800
[fix][tiered-storage] Fix the wrong secret key name get from env (#15814)
---
.../mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java
b/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java
index fc28c0291ce..f29d9ad0678 100644
---
a/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java
+++
b/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java
@@ -442,7 +442,7 @@ public enum JCloudBlobStoreProvider implements
Serializable, ConfigValidation, B
if (StringUtils.isEmpty(accountName.trim())) {
throw new IllegalArgumentException("Couldn't get the access key
id.");
}
- String accountKey = System.getenv().getOrDefault("ACCESS_KEY_ID", "");
+ String accountKey = System.getenv().getOrDefault("ACCESS_KEY_SECRET",
"");
if (StringUtils.isEmpty(accountKey.trim())) {
accountKey =
System.getenv().getOrDefault("ALIYUN_OSS_ACCESS_KEY_SECRET", "");
}