Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.1.0
Description
There are a few debug log entries in replication manager like this:
LOG.debug("Handling under-replicated container: {}", container.getContainerID()); LOG.debug("Deleting empty container {} replicas,", container.containerID());
Especially the latter one, will always allocate a new ContainerID object on each call, even if debug is not enabled.
If we just pass "container" then it will use the container.toString() method inside the logger, only if debug is enabled. The ContainerInfo toString looks like:
@Override public String toString() { return "ContainerInfo{" + "id=" + containerID + ", state=" + state + ", pipelineID=" + pipelineID + ", stateEnterTime=" + stateEnterTime + ", owner=" + owner + '}'; }
It contains some extra information, but some of that may be useful if debugging a problem.
Attachments
Issue Links
- links to