Skip to content
Snippets Groups Projects
Commit 53db77b7 authored by Steven Murray's avatar Steven Murray
Browse files

cta/CTA#129 Session killed ... why?

The report of a file being archived will now timeout after
15 seconds when trying to connect to EOS.   The previous
timeout was 8 minutes.

The 8 minute timeout was so long that the "kill a stalled
data transfer session" logic would kick in before the
timeout expired.  This killing logic would then mask
the underlying problem.
parent f48bbcd2
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,11 @@ void EOSReporter::reportArchiveFullyComplete() {
XrdCl::Buffer arg (m_query.size());
arg.FromString(m_query);
XrdCl::Buffer * resp = nullptr;
XrdCl::XRootDStatus status=m_fs.Query(qcOpaque, arg, resp);
const uint16_t queryTimeout = 15; // Timeout in seconds that is rounded up to the nearest 15 seconds
XrdCl::XRootDStatus status=m_fs.Query(qcOpaque, arg, resp, queryTimeout);
delete (resp);
cta::exception::XrootCl::throwOnError(status,
"In EOSReporter::reportArchiveFullyComplete(): failed to XrdCl::FileSystem::Query()");
}
}} // namespace cta::disk
\ No newline at end of file
}} // namespace cta::disk
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment