YARN-7211. AMSimulator in SLS does't work due to responseId refactoring.(Contributed by Botong Huang via Yufei Gu)
This commit is contained in:
parent
67e12169b0
commit
79e37dc6db
@ -83,7 +83,7 @@ public abstract class AMSimulator extends TaskRunner.Task {
|
||||
RecordFactoryProvider.getRecordFactory(null);
|
||||
// response queue
|
||||
protected final BlockingQueue<AllocateResponse> responseQueue;
|
||||
protected int RESPONSE_ID = 1;
|
||||
private int responseId = 0;
|
||||
// user name
|
||||
protected String user;
|
||||
// queue name
|
||||
@ -274,7 +274,7 @@ protected AllocateRequest createAllocateRequest(List<ResourceRequest> ask,
|
||||
List<ContainerId> toRelease) {
|
||||
AllocateRequest allocateRequest =
|
||||
recordFactory.newRecordInstance(AllocateRequest.class);
|
||||
allocateRequest.setResponseId(RESPONSE_ID ++);
|
||||
allocateRequest.setResponseId(responseId++);
|
||||
allocateRequest.setAskList(ask);
|
||||
allocateRequest.setReleaseList(toRelease);
|
||||
return allocateRequest;
|
||||
|
Loading…
Reference in New Issue
Block a user