Add stress test for Java worker (#3424)

This commit is contained in:
Hao Chen
2018-12-02 08:11:09 +08:00
committed by Robert Nishihara
parent 0603e0b73a
commit abd37df41e
3 changed files with 101 additions and 3 deletions
@@ -75,7 +75,7 @@ public abstract class AbstractRayRuntime implements RayRuntime {
public <T> void put(UniqueId objectId, T obj) {
UniqueId taskId = workerContext.getCurrentTask().taskId;
RayLog.core.info("Putting object {}, for task {} ", objectId, taskId);
RayLog.core.debug("Putting object {}, for task {} ", objectId, taskId);
objectStoreProxy.put(objectId, obj, null);
}
@@ -90,8 +90,8 @@ public class RayletClientImpl implements RayletClient {
@Override
public void fetchOrReconstruct(List<UniqueId> objectIds, boolean fetchOnly,
UniqueId currentTaskId) {
if (RayLog.core.isInfoEnabled()) {
RayLog.core.info("Blocked on objects for task {}, object IDs are {}",
if (RayLog.core.isDebugEnabled()) {
RayLog.core.debug("Blocked on objects for task {}, object IDs are {}",
UniqueIdUtil.computeTaskId(objectIds.get(0)), objectIds);
}
nativeFetchOrReconstruct(client, UniqueIdUtil.getIdBytes(objectIds),