Commit fd0d8762 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru

FST: Add log line about progress of TPC transfers greater than 10GB

parent 09fadc83
Pipeline #705248 failed with stages
in 29 minutes and 55 seconds
......@@ -2379,6 +2379,7 @@ XrdFstOfsFile::DoTpcTransfer()
int64_t rbytes = 0;
int64_t wbytes = 0;
off_t offset = 0;
constexpr uint64_t eight_gb = 8 * (2 ^ 30);
std::unique_ptr< std::vector<char> > buffer(
new std::vector<char>(tpcIO.GetBlockSize()));
eos_info("msg=\"tpc pull\" ");
......@@ -2409,6 +2410,10 @@ XrdFstOfsFile::DoTpcTransfer()
wbytes = write(offset, &((*buffer)[0]), rbytes);
eos_debug("msg=\"tpc write\" wbytes=%llu", wbytes);
if (offset / eight_gb != (offset + rbytes) / eight_gb) {
eos_info("msg=\"tcp write\" offset=%llu", offset);
}
if (rbytes != wbytes) {
(void) tpcIO.fileClose();
eos_err("msg=\"tpc transfer terminated - local write failed\"");
......
Markdown is supported
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