|
18 | 18 |
|
19 | 19 | package org.apache.hadoop.fs.azurebfs; |
20 | 20 |
|
21 | | -import javax.annotation.Nullable; |
22 | 21 | import java.io.File; |
23 | 22 | import java.io.FileNotFoundException; |
24 | 23 | import java.io.IOException; |
|
42 | 41 | import java.util.concurrent.ExecutorService; |
43 | 42 | import java.util.concurrent.Executors; |
44 | 43 | import java.util.concurrent.Future; |
| 44 | +import javax.annotation.Nullable; |
45 | 45 |
|
46 | 46 | import org.slf4j.Logger; |
47 | 47 | import org.slf4j.LoggerFactory; |
|
118 | 118 | import static org.apache.hadoop.fs.CommonConfigurationKeys.IOSTATISTICS_LOGGING_LEVEL; |
119 | 119 | import static org.apache.hadoop.fs.CommonConfigurationKeys.IOSTATISTICS_LOGGING_LEVEL_DEFAULT; |
120 | 120 | import static org.apache.hadoop.fs.Options.OpenFileOptions.FS_OPTION_OPENFILE_STANDARD_OPTIONS; |
121 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_APPEND; |
122 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_CREATE; |
123 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_CREATE_NON_RECURSIVE; |
124 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_DELETE; |
125 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_EXIST; |
126 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_GET_DELEGATION_TOKEN; |
127 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_GET_FILE_STATUS; |
128 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_LIST_STATUS; |
129 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_MKDIRS; |
130 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_OPEN; |
131 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.CALL_RENAME; |
132 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.DIRECTORIES_CREATED; |
133 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.DIRECTORIES_DELETED; |
134 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.ERROR_IGNORED; |
135 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.FILES_CREATED; |
136 | | -import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.FILES_DELETED; |
| 121 | +import static org.apache.hadoop.fs.azurebfs.AbfsStatistic.*; |
137 | 122 | import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.CPK_IN_NON_HNS_ACCOUNT_ERROR_MESSAGE; |
138 | 123 | import static org.apache.hadoop.fs.azurebfs.constants.AbfsServiceType.DFS; |
139 | 124 | import static org.apache.hadoop.fs.azurebfs.constants.ConfigurationKeys.DATA_BLOCKS_BUFFER; |
@@ -365,8 +350,10 @@ public void registerListener(Listener listener1) { |
365 | 350 |
|
366 | 351 | @Override |
367 | 352 | public FSDataInputStream open(final Path path, final int bufferSize) throws IOException { |
368 | | - LOG.debug("AzureBlobFileSystem.open path: {} bufferSize: {}", path, bufferSize); |
369 | 353 | // bufferSize is unused. |
| 354 | + LOG.debug( |
| 355 | + "AzureBlobFileSystem.open path: {} bufferSize as configured in 'fs.azure.read.request.size': {}", |
| 356 | + path, abfsStore.getAbfsConfiguration().getReadBufferSize()); |
370 | 357 | return open(path, Optional.empty()); |
371 | 358 | } |
372 | 359 |
|
|
0 commit comments