File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -198,8 +198,15 @@ def waitForNodeStarted(node):
198198 logFile = Utils .getNodeDataDir (catchupNodeNum ) + "/stderr.txt"
199199 f = open (logFile )
200200 contents = f .read ()
201- if contents .count ("3030001 unlinkable_block_exception: Unlinkable block" ) > 15 : # a few are fine
202- errorExit (f"Node{ catchupNodeNum } has unlinkable blocks: { logFile } ." )
201+ # See https://github.com/AntelopeIO/spring/issues/81 for fix to reduce the number of expected unlinkable blocks
202+ # Test verifies LIB is advancing, check to see that not too many unlinkable block exceptions are generated
203+ # while syncing up to head.
204+ numUnlinkable = contents .count ("3030001 unlinkable_block_exception: Unlinkable block" )
205+ numUnlinkableAllowed = 500
206+ Print (f"Node{ catchupNodeNum } has { numUnlinkable } unlinkable_block_exception in { logFile } " )
207+ if numUnlinkable > numUnlinkableAllowed :
208+ errorExit (f"Node{ catchupNodeNum } has { numUnlinkable } which is more than the configured "
209+ f"allowed { numUnlinkableAllowed } unlinkable blocks: { logFile } ." )
203210
204211 testSuccessful = True
205212
You can’t perform that action at this time.
0 commit comments