Update SinkToStorage.cpp

This commit is contained in:
Nikolai Kochetov 2021-09-09 15:46:06 +03:00
parent aea1871755
commit 5c220d62b3

View File

@ -71,7 +71,12 @@ IProcessor::Status ExceptionKeepingTransform::prepare()
return Status::PortFull;
}
ready_input = true;
if (has_exception)
/// In case of exception, just drop all other data.
/// If transform is stateful, it's state may be broken after exception from transform()
data.chunk.clear();
else
ready_input = true;
}
return Status::Ready;