Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
5a829068
Commit
5a829068
authored
4 years ago
by
Utz-Uwe Haus
Browse files
Options
Downloads
Patches
Plain Diff
add CDO buffer debugging in failed GFS writes
parent
644a0b1c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#61481
failed
4 years ago
Stage: build-and-test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
transport/gfs.c
+7
-7
7 additions, 7 deletions
transport/gfs.c
with
7 additions
and
7 deletions
transport/gfs.c
+
7
−
7
View file @
5a829068
...
...
@@ -69,7 +69,7 @@ mstro_transport_gfs_src_execute(mstro_cdo src, Mstro__Pool__TransferTicket* tick
FILE
*
f
=
NULL
;
char
*
path
=
ticket
->
gfs
->
path
;
INFO
(
"Path src app will use for transport: %s
\n
"
,
path
);
DEBUG
(
"Path src app will use for transport: %s
\n
"
,
path
);
if
(
path
==
NULL
)
{
ERR
(
"Ticket for GFS transport does not contain a path
\n
"
);
return
MSTRO_INVARG
;
...
...
@@ -83,8 +83,8 @@ mstro_transport_gfs_src_execute(mstro_cdo src, Mstro__Pool__TransferTicket* tick
}
if
(
fwrite
(
dl
.
data
,
sizeof
(
char
),
dl
.
len
/
sizeof
(
char
),
f
)
!=
dl
.
len
)
{
ERR
(
"Partial write on %s for GFS transport (errno: %d -- %s)
\n
"
,
path
,
errno
,
strerror
(
errno
));
ERR
(
"Partial write on %s
(buf: %p)
for GFS transport (errno: %d -- %s)
\n
"
,
path
,
dl
.
data
,
errno
,
strerror
(
errno
));
return
MSTRO_FAIL
;
}
...
...
@@ -94,7 +94,7 @@ mstro_transport_gfs_src_execute(mstro_cdo src, Mstro__Pool__TransferTicket* tick
return
MSTRO_FAIL
;
}
INFO
(
"src app successfully executed transport CDO %s
\n
"
,
DEBUG
(
"src app successfully executed transport CDO %s
\n
"
,
src
->
name
);
return
MSTRO_OK
;
}
...
...
@@ -129,11 +129,11 @@ mstro_transport_gfs_dst_execute(mstro_cdo dst,
/* data is the raw-ptr or freshly allocated, CDO attribute is correct */
FILE
*
f
=
NULL
;
char
*
path
=
ticket
->
gfs
->
path
;
INFO
(
"Path src app will use for transport: %s
\n
"
,
path
);
if
(
path
==
NULL
)
{
ERR
(
"Ticket for GFS transport does not contain a path
\n
"
);
return
MSTRO_INVARG
;
}
DEBUG
(
"Path dst app will use for transport: %s
\n
"
,
path
);
f
=
fopen
(
path
,
"rb"
);
if
(
f
==
NULL
)
{
ERR
(
"Failed to open %s for GFS transport: %d (%s)
\n
"
,
...
...
@@ -176,7 +176,7 @@ mstro_transport_gfs_dst_execute(mstro_cdo dst,
/* abort(); */
/* } */
INFO
(
"dst app successfully executed transport CDO %s
\n
"
,
dst
->
name
);
DEBUG
(
"dst app successfully executed transport CDO %s
\n
"
,
dst
->
name
);
if
(
!
(
ticket
->
gfs
->
keep_file
))
{
int
s
=
unlink
(
ticket
->
gfs
->
path
);
...
...
@@ -184,7 +184,7 @@ mstro_transport_gfs_dst_execute(mstro_cdo dst,
WARN
(
"Couldn't unlink file used for gfs transfer (%s): %d (%s)
\n
"
,
ticket
->
gfs
->
path
,
s
,
strerror
(
s
));
}
else
{
INFO
(
"Removed the transfer file
from GFS
\n
"
);
DEBUG
(
"Removed the transfer file
\n
"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Utz-Uwe Haus
@haus1
mentioned in issue
#15 (closed)
·
4 years ago
mentioned in issue
#15 (closed)
mentioned in issue #15
Toggle commit list
Utz-Uwe Haus
@haus1
mentioned in issue
#19 (closed)
·
4 years ago
mentioned in issue
#19 (closed)
mentioned in issue #19
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment