浏览代码

HADOOP-11441. Hadoop-azure: Change few methods scope to public. Contributed by Shashank Khandelwal.

cnauroth 10 年之前
父节点
当前提交
ad55083f75

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -516,6 +516,9 @@ Release 2.7.0 - UNRELEASED
     HADOOP-10574. Bump the maven plugin versions too -moving the numbers into
     properties. (aajisaka)
 
+    HADOOP-11441. Hadoop-azure: Change few methods scope to public.
+    (Shashank Khandelwal via cnauroth)
+
   OPTIMIZATIONS
 
     HADOOP-11323. WritableComparator#compare keeps reference to byte array.

+ 3 - 2
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/AzureNativeFileSystemStore.java

@@ -789,8 +789,9 @@ public class AzureNativeFileSystemStore implements NativeFileSystemStore {
         STORAGE_EMULATOR_ACCOUNT_NAME_PROPERTY_NAME,
         DEFAULT_STORAGE_EMULATOR_ACCOUNT_NAME));
   }
-
-  static String getAccountKeyFromConfiguration(String accountName,
+  
+  @VisibleForTesting
+  public static String getAccountKeyFromConfiguration(String accountName,
       Configuration conf) throws KeyProviderException {
     String key = null;
     String keyProviderClass = conf.get(KEY_ACCOUNT_KEYPROVIDER_PREFIX

+ 1 - 1
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/AzureBlobStorageTestAccount.java

@@ -482,7 +482,7 @@ public final class AzureBlobStorageTestAccount {
     return conf;
   }
 
-  static CloudStorageAccount createTestAccount()
+  public static CloudStorageAccount createTestAccount()
       throws URISyntaxException, KeyProviderException
   {
     return createTestAccount(createTestConfiguration());