HDFS-13076: [SPS]: Resolve conflicts after rebasing HDFS-10285 branch to trunk. Contributed by Rakesh R.
This commit is contained in:
parent
66e8f9b315
commit
db3f227d8a
|
@ -184,4 +184,10 @@ public class RouterNamenodeProtocol implements NamenodeProtocol {
|
||||||
rpcServer.checkOperation(OperationCategory.READ, false);
|
rpcServer.checkOperation(OperationCategory.READ, false);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long getNextSPSPath() throws IOException {
|
||||||
|
// not supported
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2509,4 +2509,11 @@ public class RouterRpcServer extends AbstractService
|
||||||
checkOperation(OperationCategory.READ, false);
|
checkOperation(OperationCategory.READ, false);
|
||||||
return StoragePolicySatisfyPathStatus.NOT_AVAILABLE;
|
return StoragePolicySatisfyPathStatus.NOT_AVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Long getNextSPSPath() throws IOException {
|
||||||
|
checkOperation(OperationCategory.READ, false);
|
||||||
|
// not supported
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5078,7 +5078,7 @@ public class BlockManager implements BlockStatsMXBean {
|
||||||
DFSConfigKeys.DFS_STORAGE_POLICY_ENABLED_KEY,
|
DFSConfigKeys.DFS_STORAGE_POLICY_ENABLED_KEY,
|
||||||
DFSConfigKeys.DFS_STORAGE_POLICY_ENABLED_DEFAULT);
|
DFSConfigKeys.DFS_STORAGE_POLICY_ENABLED_DEFAULT);
|
||||||
String modeVal = spsMode;
|
String modeVal = spsMode;
|
||||||
if (org.apache.commons.lang.StringUtils.isBlank(modeVal)) {
|
if (org.apache.commons.lang3.StringUtils.isBlank(modeVal)) {
|
||||||
modeVal = conf.get(DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_MODE_KEY,
|
modeVal = conf.get(DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_MODE_KEY,
|
||||||
DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_MODE_DEFAULT);
|
DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_MODE_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class IntraSPSNameNodeFileIdCollector extends FSTreeTraverser
|
||||||
|
|
||||||
public IntraSPSNameNodeFileIdCollector(FSDirectory dir,
|
public IntraSPSNameNodeFileIdCollector(FSDirectory dir,
|
||||||
SPSService service) {
|
SPSService service) {
|
||||||
super(dir);
|
super(dir, service.getConf());
|
||||||
this.service = service;
|
this.service = service;
|
||||||
this.maxQueueLimitToScan = service.getConf().getInt(
|
this.maxQueueLimitToScan = service.getConf().getInt(
|
||||||
DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_QUEUE_LIMIT_KEY,
|
DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_QUEUE_LIMIT_KEY,
|
||||||
|
@ -72,7 +72,7 @@ public class IntraSPSNameNodeFileIdCollector extends FSTreeTraverser
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean canSubmitCurrentBatch() {
|
protected boolean shouldSubmitCurrentBatch() {
|
||||||
return remainingCapacity <= 0;
|
return remainingCapacity <= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue