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 boolean isRollingUpgrade() throws IOException {
|
||||
rpcServer.checkOperation(OperationCategory.READ, false);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getNextSPSPath() throws IOException {
|
||||
// not supported
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -2509,4 +2509,11 @@ public StoragePolicySatisfyPathStatus checkStoragePolicySatisfyPathStatus(
|
||||
checkOperation(OperationCategory.READ, false);
|
||||
return StoragePolicySatisfyPathStatus.NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getNextSPSPath() throws IOException {
|
||||
checkOperation(OperationCategory.READ, false);
|
||||
// not supported
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -5078,7 +5078,7 @@ public boolean createSPSManager(final Configuration conf,
|
||||
DFSConfigKeys.DFS_STORAGE_POLICY_ENABLED_KEY,
|
||||
DFSConfigKeys.DFS_STORAGE_POLICY_ENABLED_DEFAULT);
|
||||
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,
|
||||
DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_MODE_DEFAULT);
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ public class IntraSPSNameNodeFileIdCollector extends FSTreeTraverser
|
||||
|
||||
public IntraSPSNameNodeFileIdCollector(FSDirectory dir,
|
||||
SPSService service) {
|
||||
super(dir);
|
||||
super(dir, service.getConf());
|
||||
this.service = service;
|
||||
this.maxQueueLimitToScan = service.getConf().getInt(
|
||||
DFSConfigKeys.DFS_STORAGE_POLICY_SATISFIER_QUEUE_LIMIT_KEY,
|
||||
@ -72,7 +72,7 @@ protected boolean processFileInode(INode inode, TraverseInfo traverseInfo)
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean canSubmitCurrentBatch() {
|
||||
protected boolean shouldSubmitCurrentBatch() {
|
||||
return remainingCapacity <= 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user