Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gekkofs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc
gekkofs
Commits
8c7c6f53
Unverified
Commit
8c7c6f53
authored
5 years ago
by
Tommaso Tocci
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup get_fs_config RPC
parent
0ffc4a3f
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/client/rpc/ld_rpc_management.cpp
+6
-6
6 additions, 6 deletions
src/client/rpc/ld_rpc_management.cpp
with
6 additions
and
6 deletions
src/client/rpc/ld_rpc_management.cpp
+
6
−
6
View file @
8c7c6f53
...
...
@@ -43,16 +43,16 @@ bool get_fs_config() {
CTX
->
log
()
->
error
(
"{}() creating handle for failed"
,
__func__
);
return
false
;
}
CTX
->
log
()
->
debug
(
"{}() About to send get config RPC to daemon"
,
__func__
);
int
send_ret
=
HG_FALSE
;
CTX
->
log
()
->
debug
(
"{}() Forwarding request"
,
__func__
);
for
(
int
i
=
0
;
i
<
RPC_TRIES
;
++
i
)
{
send_
ret
=
margo_forward_timed
(
handle
,
&
in
,
RPC_TIMEOUT
);
if
(
send_
ret
==
HG_SUCCESS
)
{
ret
=
margo_forward_timed
(
handle
,
&
in
,
RPC_TIMEOUT
);
if
(
ret
==
HG_SUCCESS
)
{
break
;
}
CTX
->
log
()
->
warn
(
"{}() Failed to forward request. Error: {}. Attempt {}/{}"
,
__func__
,
HG_Error_to_string
(
ret
),
i
+
1
,
RPC_TRIES
);
}
if
(
send_
ret
!=
HG_SUCCESS
)
{
CTX
->
log
()
->
warn
(
"{}()
timed out"
,
__func__
);
if
(
ret
!=
HG_SUCCESS
)
{
CTX
->
log
()
->
error
(
"{}()
Failed to forward request. Giving up after {} attempts"
,
__func__
,
RPC_TRIES
);
margo_destroy
(
handle
);
return
false
;
}
...
...
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