-
Notifications
You must be signed in to change notification settings - Fork 36
Write detection code path in callbacks #48
Write detection code path in callbacks #48
Conversation
} else { | ||
LOG.warn(NULL_RESPONSE + " {} for {}", modelID, rcfNodeID); | ||
} | ||
} finally { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catch exception and log it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
this.endTime = endTime; | ||
this.nodeCount = nodeCount; | ||
this.responseCount = responseCount; | ||
this.adID = adID; | ||
} | ||
|
||
@Override | ||
public void onResponse(RCFResultResponse response) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onResponse
will be called multiple times if send request to multiple nodes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
* add AD job on top of JobScheduler * release job lock when job finish or fail * upgrade jobscheduler to 1.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the change! Please merge before push.
} | ||
|
||
@Test | ||
public void testRunJobWithLocakDuration() throws InterruptedException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That’s actually from rebased code. not the code meant to be reviewed. I fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Previously, we actively wait for rcf and threshold model requests to return in transport thread. The active wait blocks transport thread. To increase concurrency and improve performance, we change detection code path to use callbacks.
Testing done: