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

InvalidBlockIndexException occurs during IBD #528

Closed
limebell opened this issue Sep 24, 2019 · 2 comments · Fixed by #576
Closed

InvalidBlockIndexException occurs during IBD #528

limebell opened this issue Sep 24, 2019 · 2 comments · Fixed by #576
Assignees
Labels
bug Something isn't working
Milestone

Comments

@limebell
Copy link
Member

2019-09-24 PM 7:03:57 +09:00: FillBlocksAsync() failed; retrying...: Libplanet.Blocks.InvalidBlockIndexException: the expected block index is 370, but its index is 369'

  at Libplanet.Blockchain.BlockChain`1[T].Append (Libplanet.Blocks.Block`1[T] block, System.DateTimeOffset currentTime, System.Boolean evaluateActions, System.Boolean renderActions) [0x00035] in <ded5f41b727f4d2a8edaa51acf068889>:0 

  at Libplanet.Net.Swarm`1+<>c__DisplayClass101_0[T].<FillBlocksAsync>b__0 (Libplanet.Blocks.Block`1[T] block) [0x0003c] in <ded5f41b727f4d2a8edaa51acf068889>:0 

  at System.Collections.Async.ForEachAsyncExtensions+<ForEachAsync>d__8`1[T].MoveNext () [0x0009d] in <5ab47007bd514ff3adcae97c30a0e967>:0 

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at Libplanet.Net.Swarm`1+<FillBlocksAsync>d__101[T].MoveNext () [0x0028d] in <ded5f41b727f4d2a8edaa51acf068889>:0 

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at Libplanet.Net.Swarm`1+<SyncPreviousBlocksAsync>d__99[T].MoveNext () [0x002e5] in <ded5f41b727f4d2a8edaa51acf068889>:0 
Libplanet.Blocks.InvalidBlockIndexException: the expected block index is 370, but its index is 369'

  at Libplanet.Blockchain.BlockChain`1[T].Append (Libplanet.Blocks.Block`1[T] block, System.DateTimeOffset currentTime, System.Boolean evaluateActions, System.Boolean renderActions) [0x00035] in <ded5f41b727f4d2a8edaa51acf068889>:0 

  at Libplanet.Net.Swarm`1+<>c__DisplayClass101_0[T].<FillBlocksAsync>b__0 (Libplanet.Blocks.Block`1[T] block) [0x0003c] in <ded5f41b727f4d2a8edaa51acf068889>:0 

  at System.Collections.Async.ForEachAsyncExtensions+<ForEachAsync>d__8`1[T].MoveNext () [0x0009d] in <5ab47007bd514ff3adcae97c30a0e967>:0 

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at Libplanet.Net.Swarm`1+<FillBlocksAsync>d__101[T].MoveNext () [0x0028d] in <ded5f41b727f4d2a8edaa51acf068889>:0 

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 

  at Libplanet.Net.Swarm`1+<SyncPreviousBlocksAsync>d__99[T].MoveNext () [0x002e5] in <ded5f41b727f4d2a8edaa51acf068889>:0 
@limebell limebell added the bug Something isn't working label Sep 24, 2019
@limebell
Copy link
Member Author

This occurred in testing multi-miner environment, at no-miner (especially seed). And this happens at latest block of target IBD.

@longfin longfin self-assigned this Oct 1, 2019
@longfin longfin added this to the 0.6.0 milestone Oct 1, 2019
@longfin
Copy link
Member

longfin commented Oct 1, 2019

It seems that fork(reorg) is required not only in Swarm<T>.SyncPreviousBlocksAsync(), but also Swarm<T>.FIllBlockAsync()...

I'll investigate more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants