Skip to content

Commit

Permalink
increase the priority of transfer appid to version control (#127)
Browse files Browse the repository at this point in the history
Co-authored-by: alantong <[email protected]>
  • Loading branch information
vintmd and vintmd authored Nov 1, 2023
1 parent 844aa81 commit 0ad0766
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.qcloud.cos</groupId>
<artifactId>hadoop-cos</artifactId>
<version>8.3.1</version>
<version>8.3.2</version>
<packaging>jar</packaging>

<name>Apache Hadoop Tencent Cloud COS Support</name>
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/apache/hadoop/fs/CosFileSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,13 @@ private void transferOfsConfig() {
if (null != content && !content.isEmpty()) {
String transferKey = Constants.COSN_CONFIG_TRANSFER_PREFIX.
concat(configMap.get(org));
// if ofs transfer appid set we ignore it, then we can use appid to version control
String transferContent = this.getConf().get(transferKey);
if (null != transferContent && !transferContent.isEmpty()) {
LOG.info("transfer ofs config, already has transfer key {}, value {}",
transferKey, transferContent);
continue;
}
this.getConf().set(transferKey, content);
}
}
Expand Down

0 comments on commit 0ad0766

Please sign in to comment.