Skip to content

Rest do not respond for ~30sec after Rebooting with leaders having assigned block #1915

@SViksha

Description

@SViksha

Describe the bug
Rest do not respond for ~30 sec after rebooting with leaders having assigned block.
Passive node work fine this problem is only with leader having assigned block.

Mandatory Information

  1. jcli 0.8.14 (HEAD-9ca427ef, release, linux [x86_64]) - [rustc 1.41.1 (f3e1a954d 2020-02-24)]
  2. jormungandr 0.8.14 (HEAD-9ca427ef, release, linux [x86_64]) - [rustc 1.41.1 (f3e1a954d 2020-02-24)]

To Reproduce
Steps to reproduce the behavior:

  1. Make sure that the leader has blocks assigned more the block better to reproduce.
  2. Reboot the node with secrete file
  3. Start the script to monitor the node
    ./jcli rest v0 node stats get --host "http://127.0.0.1:<rest port./api"|grep "version|state|lastBlockDate|lastBlockHeight|lastBlockTime|uptime|lastBlockHash"
  4. Start the script to delete the leader with 1 sec interval
    watch -n 1 /jcli rest v0 leaders delete 1 --host "http://127.0.0.1:/api"
  5. Monitoring will show the status: Bootstrapping but as soon as the node is bootstrapped, the rest stop responding for ~30sec and do not delete for 30sec
    (this issue created the adversarial fork as backup not failed to delete the leaders)

Expected behavior
leader is deleted within a second of bootstraping.

Additional context
If this issue is not resolvable , there should be option in config file to avoid the leaders in enclave after rebooting but load the leader schedule.

Metadata

Metadata

Labels

A-jormungandrArea: Issues affecting jörmungandrbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions