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

unhealthy snapshot passes health check in kademlia.go #1263

@acud

Description

@acud

A 6 node snapshot was generated in the swarm-snapshot passes the health check in kademlia.GetHealthInfo:

Thu Feb 21 13:27:31 UTC 2019 KΛÐΞMLIΛ hive: queen's address: 57d759
population: 2 (5), NeighbourhoodSize: 2, MinBinSize: 2, MaxBinSize: 4
============ DEPTH: 0 ==========================================
000  0                              |  2 c6c1 (1) e90d (0)
001  1 02de                         |  1 02de (0)
002  1 6ef4                         |  1 6ef4 (0)
003  0                              |  0
004  0                              |  0
005  0                              |  1 52b0 (0)
006  0                              |  0
007  0                              |  0
008  0                              |  0
009  0                              |  0
010  0                              |  0
011  0                              |  0
012  0                              |  0
013  0                              |  0
014  0                              |  0
015  0                              |  0
=========================================================================

The Swarm snapshot binary calls the WaitTillHealthy method which apparently returns a false true.
in GetHealthInfo, there is the following method call:
gotnn, countgotnn, culpritsgotnn := k.connectedNeighbours(pp.NNSet) which apparently returns gotnn=true as a false true.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions