From b4a8a73d9c2dba5682e6c4afcea21f4f88d87d2d Mon Sep 17 00:00:00 2001 From: thu-david Date: Tue, 11 Jun 2024 15:08:39 +0800 Subject: [PATCH] fix --- .../alluxio/underfs/oss/OSSUnderFileSystemFactory.java | 3 +-- .../alluxio/underfs/tos/TOSUnderFileSystemFactory.java | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/underfs/oss/src/main/java/alluxio/underfs/oss/OSSUnderFileSystemFactory.java b/underfs/oss/src/main/java/alluxio/underfs/oss/OSSUnderFileSystemFactory.java index 5b4a01905610..4d72900e60b1 100644 --- a/underfs/oss/src/main/java/alluxio/underfs/oss/OSSUnderFileSystemFactory.java +++ b/underfs/oss/src/main/java/alluxio/underfs/oss/OSSUnderFileSystemFactory.java @@ -48,8 +48,7 @@ public UnderFileSystem create(String path, UnderFileSystemConfiguration conf) { } } - String err = - "TOS Credentials or configurations not available, cannot create TOS Under File System."; + String err = "OSS Credentials not available, cannot create OSS Under File System."; throw Throwables.propagate(new IOException(err)); } diff --git a/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystemFactory.java b/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystemFactory.java index a45f2f472f48..ff02067ddd8c 100644 --- a/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystemFactory.java +++ b/underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystemFactory.java @@ -30,7 +30,8 @@ public class TOSUnderFileSystemFactory implements UnderFileSystemFactory { /** * Constructs a new {@link TOSUnderFileSystemFactory}. */ - public TOSUnderFileSystemFactory() {} + public TOSUnderFileSystemFactory() { + } @Override public UnderFileSystem create(String path, UnderFileSystemConfiguration conf) { @@ -44,7 +45,8 @@ public UnderFileSystem create(String path, UnderFileSystemConfiguration conf) { } } - String err = "TOS Credentials not available, cannot create TOS Under File System."; + String err = + "TOS Credentials or configurations not available, cannot create TOS Under File System."; throw Throwables.propagate(new IOException(err)); } @@ -55,7 +57,6 @@ public boolean supportsPath(String path) { /** * @param conf optional configuration object for the UFS - * * @return true if both access, secret and endpoint keys are present, false otherwise */ private boolean checkTOSCredentials(UnderFileSystemConfiguration conf) {