Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
dcache-cta
Commits
8a660af6
Commit
8a660af6
authored
Nov 30, 2021
by
Tigran Mkrtchyan
☕
Browse files
fix code formatting
parent
b69f8225
Pipeline
#13672
passed with stages
in 3 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/dcache/nearline/cta/xrootd/DataServerHandler.java
View file @
8a660af6
...
...
@@ -209,7 +209,9 @@ public class DataServerHandler extends XrootdRequestHandler {
var
r
=
pr
.
getRequest
();
var
file
=
getFile
(
r
);
LOGGER
.
info
(
"Request {} scheduling time: {}"
,
file
,
TimeUtils
.
describe
(
Duration
.
between
(
Instant
.
now
(),
pr
.
getSubmitionTime
()).
abs
()).
orElse
(
"-"
));
LOGGER
.
info
(
"Request {} scheduling time: {}"
,
file
,
TimeUtils
.
describe
(
Duration
.
between
(
Instant
.
now
(),
pr
.
getSubmitionTime
()).
abs
())
.
orElse
(
"-"
));
RandomAccessFile
raf
;
if
(
msg
.
isReadWrite
()
||
msg
.
isNew
()
||
msg
.
isDelete
())
{
...
...
@@ -329,12 +331,14 @@ public class DataServerHandler extends XrootdRequestHandler {
var
r
=
migrationRequest
.
request
();
var
file
=
getFile
(
r
);
long
size
=
file
.
length
();
long
duration
=
Duration
.
between
(
migrationRequest
.
getCreationTime
(),
Instant
.
now
()).
toMillis
();
double
bandwidth
=
(
double
)
size
/
duration
;
long
duration
=
Duration
.
between
(
migrationRequest
.
getCreationTime
(),
Instant
.
now
())
.
toMillis
();
double
bandwidth
=
(
double
)
size
/
duration
;
LOGGER
.
info
(
"Closing file {}. Transferred {} in {}, {}"
,
file
,
Strings
.
humanReadableSize
(
size
),
LOGGER
.
info
(
"Closing file {}. Transferred {} in {}, {}"
,
file
,
Strings
.
humanReadableSize
(
size
),
TimeUtils
.
describeDuration
(
duration
,
TimeUnit
.
MILLISECONDS
),
Strings
.
describeBandwidth
(
bandwidth
*
1000
)
Strings
.
describeBandwidth
(
bandwidth
*
1000
)
);
if
(
r
instanceof
StageRequest
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment