Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
019f229e
Commit
019f229e
authored
21 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Change logging level of detailed communication errors from type info to
type debug.
parent
97bee5a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/slurm_protocol_socket_implementation.c
+20
-20
20 additions, 20 deletions
src/common/slurm_protocol_socket_implementation.c
with
20 additions
and
20 deletions
src/common/slurm_protocol_socket_implementation.c
+
20
−
20
View file @
019f229e
...
@@ -204,8 +204,8 @@ int _slurm_send_timeout(slurm_fd fd, char *buf, size_t size,
...
@@ -204,8 +204,8 @@ int _slurm_send_timeout(slurm_fd fd, char *buf, size_t size,
while
(
sent
<
size
)
{
while
(
sent
<
size
)
{
if
((
timeout
-=
_tot_wait
(
&
tstart
))
<=
0
)
{
if
((
timeout
-=
_tot_wait
(
&
tstart
))
<=
0
)
{
info
(
"_slurm_send_timeout at %d of %d, timeout"
,
debug
(
"_slurm_send_timeout at %d of %d, timeout"
,
sent
,
size
);
sent
,
size
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_IMPL_TIMEOUT
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_IMPL_TIMEOUT
);
sent
=
SLURM_ERROR
;
sent
=
SLURM_ERROR
;
goto
done
;
goto
done
;
...
@@ -214,9 +214,9 @@ int _slurm_send_timeout(slurm_fd fd, char *buf, size_t size,
...
@@ -214,9 +214,9 @@ int _slurm_send_timeout(slurm_fd fd, char *buf, size_t size,
if
((
rc
==
0
)
||
(
errno
==
EINTR
))
if
((
rc
==
0
)
||
(
errno
==
EINTR
))
continue
;
continue
;
else
{
else
{
info
(
"_slurm_send_timeout at %d of %d, "
debug
(
"_slurm_send_timeout at %d of %d, "
"poll error: %s"
,
"poll error: %s"
,
sent
,
size
,
strerror
(
errno
));
sent
,
size
,
strerror
(
errno
));
slurm_seterrno
(
SLURM_COMMUNICATIONS_SEND_ERROR
);
slurm_seterrno
(
SLURM_COMMUNICATIONS_SEND_ERROR
);
sent
=
SLURM_ERROR
;
sent
=
SLURM_ERROR
;
goto
done
;
goto
done
;
...
@@ -227,17 +227,17 @@ int _slurm_send_timeout(slurm_fd fd, char *buf, size_t size,
...
@@ -227,17 +227,17 @@ int _slurm_send_timeout(slurm_fd fd, char *buf, size_t size,
if
(
errno
==
EINTR
)
if
(
errno
==
EINTR
)
continue
;
continue
;
else
{
else
{
info
(
"_slurm_send_timeout at %d of %d, "
debug
(
"_slurm_send_timeout at %d of %d, "
"send error: %s"
,
"send error: %s"
,
sent
,
size
,
strerror
(
errno
));
sent
,
size
,
strerror
(
errno
));
slurm_seterrno
(
SLURM_COMMUNICATIONS_SEND_ERROR
);
slurm_seterrno
(
SLURM_COMMUNICATIONS_SEND_ERROR
);
sent
=
SLURM_ERROR
;
sent
=
SLURM_ERROR
;
goto
done
;
goto
done
;
}
}
}
}
if
(
rc
==
0
)
{
if
(
rc
==
0
)
{
info
(
"_slurm_send_timeout at %d of %d, "
debug
(
"_slurm_send_timeout at %d of %d, "
"sent zero bytes"
,
sent
,
size
);
"sent zero bytes"
,
sent
,
size
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_ZERO_BYTES_SENT
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_ZERO_BYTES_SENT
);
sent
=
SLURM_ERROR
;
sent
=
SLURM_ERROR
;
goto
done
;
goto
done
;
...
@@ -280,8 +280,8 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
...
@@ -280,8 +280,8 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
while
(
recvlen
<
size
)
{
while
(
recvlen
<
size
)
{
if
((
timeout
-=
_tot_wait
(
&
tstart
))
<
0
)
{
if
((
timeout
-=
_tot_wait
(
&
tstart
))
<
0
)
{
info
(
"_slurm_recv_timeout at %d of %d, timeout"
,
debug
(
"_slurm_recv_timeout at %d of %d, timeout"
,
recvlen
,
size
);
recvlen
,
size
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_IMPL_TIMEOUT
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_IMPL_TIMEOUT
);
recvlen
=
SLURM_ERROR
;
recvlen
=
SLURM_ERROR
;
goto
done
;
goto
done
;
...
@@ -291,9 +291,9 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
...
@@ -291,9 +291,9 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
if
((
errno
==
EINTR
)
||
(
rc
==
0
))
if
((
errno
==
EINTR
)
||
(
rc
==
0
))
continue
;
continue
;
else
{
else
{
info
(
"_slurm_recv_timeout at %d of %d, "
debug
(
"_slurm_recv_timeout at %d of %d, "
"poll error: %s"
,
"poll error: %s"
,
recvlen
,
size
,
strerror
(
errno
));
recvlen
,
size
,
strerror
(
errno
));
slurm_seterrno
(
slurm_seterrno
(
SLURM_COMMUNICATIONS_RECEIVE_ERROR
);
SLURM_COMMUNICATIONS_RECEIVE_ERROR
);
recvlen
=
SLURM_ERROR
;
recvlen
=
SLURM_ERROR
;
...
@@ -305,9 +305,9 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
...
@@ -305,9 +305,9 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
if
(
errno
==
EINTR
)
if
(
errno
==
EINTR
)
continue
;
continue
;
else
{
else
{
info
(
"_slurm_recv_timeout at %d of %d, "
debug
(
"_slurm_recv_timeout at %d of %d, "
"recv error: %s"
,
"recv error: %s"
,
recvlen
,
size
,
strerror
(
errno
));
recvlen
,
size
,
strerror
(
errno
));
slurm_seterrno
(
slurm_seterrno
(
SLURM_COMMUNICATIONS_RECEIVE_ERROR
);
SLURM_COMMUNICATIONS_RECEIVE_ERROR
);
recvlen
=
SLURM_ERROR
;
recvlen
=
SLURM_ERROR
;
...
@@ -315,8 +315,8 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
...
@@ -315,8 +315,8 @@ int _slurm_recv_timeout(slurm_fd fd, char *buffer, size_t size,
}
}
}
}
if
(
rc
==
0
)
{
if
(
rc
==
0
)
{
info
(
"_slurm_recv_timeout at %d of %d, "
debug
(
"_slurm_recv_timeout at %d of %d, "
"recv zero bytes"
,
recvlen
,
size
);
"recv zero bytes"
,
recvlen
,
size
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_ZERO_BYTES_SENT
);
slurm_seterrno
(
SLURM_PROTOCOL_SOCKET_ZERO_BYTES_SENT
);
recvlen
=
SLURM_ERROR
;
recvlen
=
SLURM_ERROR
;
goto
done
;
goto
done
;
...
...
This diff is collapsed.
Click to expand it.
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