Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix db_modes_test pipeline fails, see epe889 #10237

Merged
merged 3 commits into from
Apr 13, 2021
Merged

fix db_modes_test pipeline fails, see epe889 #10237

merged 3 commits into from
Apr 13, 2021

Conversation

softprofe
Copy link
Contributor

@softprofe softprofe commented Apr 11, 2021

Change Description

Start 10237 description ......

EPE 889

In function
run_expect_success() {
run_nodeos "$@"
local NODEOS_PID=$!
sleep 10
kill $NODEOS_PID
wait $NODEOS_PID
}
wait throw exception, but kill not throw. The biggest possible is the timing of wait. if the kill finished rapidly before call wait, so the wait $NODEOS_PID is an already killed PID so wait it will throw. However the same fail didn't repro in my local PC. In my local Macbook, a case happened was that Nodes shutdown by it self. in this case, kill should throw instead of wait. Because kill didn't throw but wait throws, I think it is very possible Nodes was killed before wait call. in this case, don't let wait throw stop the test script.

End 10237 description ......

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

…n before call wait.

As the trace information is very limit. detail see epe889, the buildkite fails are very possible wait an already terminated NODEOS_PID
@softprofe softprofe requested a review from jgiszczak April 11, 2021 00:54
@pepe-invest-git
Copy link

pipiline

tests/db_modes_test.sh Show resolved Hide resolved
… go, in not, need stop and return the error code.
@softprofe softprofe requested a review from jgiszczak April 13, 2021 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants