Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix health record creation error #3470

Merged
merged 3 commits into from
Sep 28, 2021
Merged

Conversation

iulianpascalau
Copy link
Contributor

  • fix health record creation error on shuffle out & with health service deactivated

Testing scenario: start a regular internal testnet using the master branch and without the -use-health-service on the node start line. After upgrade & some shuffle out processes, when grepping the logs for ERROR you will find some lines like
open /home/xxx/elrond-nodes/node-0/health-records/mem__softrestart__xxx__xxx_MB.pprof: no such file or directory
(this is just to prove the master branch has the wrong code)
Repeat these steps with this branch. Should no longer find ERROR messages. Then reactivate the -use-health-service flag and give it a proper #all-in scenario.

@codecov
Copy link

codecov bot commented Sep 27, 2021

Codecov Report

Merging #3470 (4ee90b9) into master (b11336f) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3470      +/-   ##
==========================================
- Coverage   73.85%   73.84%   -0.01%     
==========================================
  Files         579      579              
  Lines       73415    73420       +5     
==========================================
  Hits        54217    54217              
- Misses      14829    14834       +5     
  Partials     4369     4369              
Impacted Files Coverage Δ
node/nodeRunner.go 0.00% <0.00%> (ø)
p2p/libp2p/netMessenger.go 75.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b11336f...4ee90b9. Read the comment docs.


func (nr *nodeRunner) doProfileOnShuffleOut() {
debugConfig := nr.configs.GeneralConfig.Debug.ShuffleOut
shouldDoProfile := debugConfig.DoProfileOnShuffleOut && nr.configs.FlagsConfig.UseHealthService
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System test passed.
image

@LucianMincu LucianMincu merged commit 54b931d into master Sep 28, 2021
@LucianMincu LucianMincu deleted the fix-healthrecord-creation branch September 28, 2021 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants