Commit cbc2137c authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

cta-dcache: don't fail DELETE request if file is not in catalog

As canceling of stage request implemented as DELETE, files that still in
the flush queue doesn't 'exist' in catalog.
parent 1e288a6a
......@@ -130,8 +130,7 @@ Status CtaRpcImpl::Delete(::grpc::ServerContext* context, const ::cta::dcache::r
try {
deleteRequest.archiveFile = m_catalogue->getArchiveFileById(deleteRequest.archiveFileID);
} catch (cta::exception::Exception &ex){
lc.log(cta::log::CRIT, ex.getMessageValue());
return ::grpc::Status(::grpc::StatusCode::INTERNAL, ex.getMessageValue());
lc.log(cta::log::WARNING, "Deleted file is not in catalog.");
m_scheduler->deleteArchive(instance, deleteRequest, lc);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment