tntech-ngin / ndn-hydra

ndn-hydra: A Python-coded NDN distributed repository with five focused attributes: resiliency, scalability, usability, efficiency, and security.
Apache License 2.0
2 stars 1 forks source link

Database is not cleaning up after missing 3 heartbeats #26

Closed GportDev closed 3 weeks ago

sankalpatimilsina12 commented 1 month ago

I am not sure if we want to clean the database upon every hydra initiation. Since the database is persistent, the hydra picks up whatever was previously there.

Please correct this if not so: @susmit85 @GportDev

GportDev commented 1 month ago

If we did not listen from the node in 3 heartbeat then we should clean the database of this particular node

sankalpatimilsina12 commented 1 month ago

I've verified that the node expiration is indeed executed, and the node is marked as expired in the database, the heartbeats seem like they are working properly.

@susmit85 @GportDev

tntech-ngin commented 3 weeks ago

When the nodes do not hear from another node for 3 heartbeats, it marks that node expired. Expired nodes are not currently deleted from the database.