Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
8ce5f4f0
Commit
8ce5f4f0
authored
Nov 30, 2020
by
Peter Goodspeed-Niklaus
Browse files
REVERT ME: add tracing to candidate-backing job creation
parent
d5e0d2c5
Pipeline
#115514
failed with stages
in 23 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/core/backing/src/lib.rs
View file @
8ce5f4f0
...
...
@@ -824,6 +824,13 @@ impl util::JobTrait for CandidateBackingJob {
}
}
tracing
::
info!
(
target
:
LOG_TARGET
,
relay_parent
=
?
parent
,
method
=
"<CandidateBackingJob as JobTrait>::run"
,
"started async block"
,
);
let
(
validators
,
groups
,
session_index
,
cores
)
=
futures
::
try_join!
(
request_validators
(
parent
,
&
mut
tx_from
)
.await
?
,
request_validator_groups
(
parent
,
&
mut
tx_from
)
.await
?
,
...
...
@@ -840,6 +847,13 @@ impl util::JobTrait for CandidateBackingJob {
let
session_index
=
try_runtime_api!
(
session_index
);
let
cores
=
try_runtime_api!
(
cores
);
tracing
::
info!
(
target
:
LOG_TARGET
,
relay_parent
=
?
parent
,
method
=
"<CandidateBackingJob as JobTrait>::run"
,
"got runtime data"
,
);
let
signing_context
=
SigningContext
{
parent_hash
:
parent
,
session_index
};
let
validator
=
match
Validator
::
construct
(
&
validators
,
...
...
@@ -847,7 +861,13 @@ impl util::JobTrait for CandidateBackingJob {
keystore
.clone
(),
)
.await
{
Ok
(
v
)
=>
v
,
Err
(
util
::
Error
::
NotAValidator
)
=>
{
return
Ok
(())
},
Err
(
util
::
Error
::
NotAValidator
)
=>
{
tracing
::
info!
(
target
:
LOG_TARGET
,
"not a validator"
,
);
return
Ok
(())
},
Err
(
e
)
=>
{
tracing
::
warn!
(
target
:
LOG_TARGET
,
...
...
@@ -860,10 +880,9 @@ impl util::JobTrait for CandidateBackingJob {
};
let
mut
groups
=
HashMap
::
new
();
let
n_cores
=
cores
.len
();
let
mut
assignment
=
None
;
for
(
idx
,
core
)
in
cores
.into_iter
()
.enumerate
()
{
// Ignore prospective assignments on occupied cores for the time being.
if
let
CoreState
::
Scheduled
(
scheduled
)
=
core
{
...
...
@@ -878,6 +897,14 @@ impl util::JobTrait for CandidateBackingJob {
}
}
tracing
::
info!
(
target
:
LOG_TARGET
,
relay_parent
=
?
parent
,
method
=
"<CandidateBackingJob as JobTrait>::run"
,
assignment
=
?
assignment
,
"got assignment"
,
);
let
table_context
=
TableContext
{
groups
,
validators
,
...
...
@@ -890,6 +917,13 @@ impl util::JobTrait for CandidateBackingJob {
Some
(
r
)
=>
r
,
};
tracing
::
info!
(
target
:
LOG_TARGET
,
relay_parent
=
?
parent
,
method
=
"<CandidateBackingJob as JobTrait>::run"
,
"starting <CandidateBackingJob::run_loop"
,
);
let
job
=
CandidateBackingJob
{
parent
,
rx_to
,
...
...
gabriel klawitter
🏄
@gabriel
mentioned in commit
a047f69a
·
Dec 01, 2020
mentioned in commit
a047f69a
mentioned in commit a047f69afa9f7d8ed917fe26c95274c40a6fe316
Toggle commit list
gabriel klawitter
🏄
@gabriel
mentioned in commit
113ae827
·
Dec 04, 2020
mentioned in commit
113ae827
mentioned in commit 113ae8272ecf2133272b9373123ffb4f74a00425
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment