Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,17 @@ public void markContainerForClose() throws StorageContainerException {
@Override
public void markContainerUnhealthy() throws StorageContainerException {
writeLock();
ContainerDataProto.State prevState = containerData.getState();
try {
updateContainerData(() ->
containerData.setState(ContainerDataProto.State.UNHEALTHY));
clearPendingPutBlockCache();
} finally {
writeUnlock();
}
LOG.warn("Moving container {} to state UNHEALTHY from state:{} Trace:{}",
LOG.warn("Moving container {} to state {} from state:{} Trace:{}",
containerData.getContainerPath(), containerData.getState(),
StringUtils.getStackTrace(Thread.currentThread()));
prevState, StringUtils.getStackTrace(Thread.currentThread()));
}

@Override
Expand Down