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

Implement PoSt scheduler #205

Merged
merged 28 commits into from
Sep 20, 2019
Merged

Implement PoSt scheduler #205

merged 28 commits into from
Sep 20, 2019

Conversation

whyrusleeping
Copy link
Member

This is still a bit of a WIP, and won't be done done until the actor methods are implemented.

However, I think theres room for some review already.

@magik6k magik6k self-requested a review September 18, 2019 07:54
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting there

return ts, nil
}

pts, err := cs.LoadTipSet(ts.Parents())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimization: we could use chain/events.tipSetCache here, but that can be done later

@whyrusleeping whyrusleeping mentioned this pull request Sep 19, 2019
@whyrusleeping
Copy link
Member Author

I'm not seeing the out of bounds panic you pointed out, but I do see this:

2019-09-19T15:21:12.581-0700	WARN	chain	chain/sync.go:571	validating tipset (heigt=34, size=1)
2019-09-19T15:21:12.592-0700	INFO	chainstore	store/store.go:728	Returning randomness: H:14, t:0, mtb:bafy2bzacebtaarm2klkj57cxuv437zyxz624xpxiozww5eo337r2ne2cw3hk2
2019-09-19T15:21:12.598-0700	ERROR	chain	chain/sync.go:573	failed to validate tipset: receipts mismatched
github.com/filecoin-project/go-lotus/chain.(*Syncer).syncMessagesAndCheckState.func1
	/home/why/code/go-lotus/chain/sync.go:573
github.com/filecoin-project/go-lotus/chain.(*Syncer).iterFullTipsets
	/home/why/code/go-lotus/chain/sync.go:632
github.com/filecoin-project/go-lotus/chain.(*Syncer).syncMessagesAndCheckState
	/home/why/code/go-lotus/chain/sync.go:570
github.com/filecoin-project/go-lotus/chain.(*Syncer).collectChain
	/home/why/code/go-lotus/chain/sync.go:686
github.com/filecoin-project/go-lotus/chain.(*Syncer).Sync
	/home/why/code/go-lotus/chain/sync.go:297
github.com/filecoin-project/go-lotus/chain.(*Syncer).InformNewHead.func1
	/home/why/code/go-lotus/chain/sync.go:109
2019-09-19T15:21:12.598-0700	ERROR	chain	chain/sync.go:110	sync error: collectChain failed: collectChain syncMessages: message processing failed: receipts mismatched
github.com/filecoin-project/go-lotus/chain.(*Syncer).InformNewHead.func1
	/home/why/code/go-lotus/chain/sync.go:110

log.Warnf("not restarting listenHeadChanges: context error: %s", ctx.Err())
return
}
time.Sleep(time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the sleep?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only happens when there is a critical error in the event handling loop, which in most cases would be API connection timing out / disconnecting, and this sleep prevents unnecessarily spamming the logs

@magik6k magik6k merged commit 07f97c6 into master Sep 20, 2019
@Kubuxu Kubuxu deleted the feat/post-schedule branch May 13, 2020 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants