HDFS-16101. Remove unuse variable and IoException in ProvidedStorageMap. Contributed by lei w.

This commit is contained in:
Ayush Saxena 2021-07-06 23:26:52 +05:30
parent a447cfd78b
commit c85a18327d
1 changed files with 1 additions and 3 deletions

View File

@ -75,11 +75,9 @@ public class ProvidedStorageMap {
private final ProvidedDescriptor providedDescriptor; private final ProvidedDescriptor providedDescriptor;
private final DatanodeStorageInfo providedStorageInfo; private final DatanodeStorageInfo providedStorageInfo;
private boolean providedEnabled; private boolean providedEnabled;
private long capacity;
private int defaultReplication; private int defaultReplication;
ProvidedStorageMap(RwLock lock, BlockManager bm, Configuration conf) ProvidedStorageMap(RwLock lock, BlockManager bm, Configuration conf) {
throws IOException {
storageId = conf.get(DFSConfigKeys.DFS_PROVIDER_STORAGEUUID, storageId = conf.get(DFSConfigKeys.DFS_PROVIDER_STORAGEUUID,
DFSConfigKeys.DFS_PROVIDER_STORAGEUUID_DEFAULT); DFSConfigKeys.DFS_PROVIDER_STORAGEUUID_DEFAULT);