Skip to content
Discussion options

You must be logged in to vote

上一次提issue的时候我们进行了排查,进行了如下的代码变更,用于输出上次的提交日志:
/lotus/chain/events/events_called.go#Apply

defer func() { e.lastTs = to }()

change code

	defer func() {
		log.Infof("启动events callled apply,from %d to %d,old lastTs=>%d,address=>%p", from.Height(), to.Height(), e.lastTs.Height(), e)
		e.lastTs = to
	}()

/lotus/chain/events/events_called.go#Revert

defer func() { e.lastTs = to }()

change code

	defer func() {
        log.Infof("启动events callled revert,from %d to %d,old lastTs=>%d,address=>%p", from.Height(), to.Height(), e.lastTs.Height(), e)
		e.lastTs = to
	}()

根据我们最新排查的情况,是区块高度在同步apply的时候会出现处理时间较长的情况(默认30s/组)。此情况会导致后续的区块同步apply处理延时。
目前矩阵存储基于官方底层代码的运行情况为每次同步5-6个消息,每个消息7s以上(处理时长超过30s/组),长期处理延时…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@LexLuthr
Comment options

@MatrixStorage
Comment options

Answer selected by MatrixStorage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chain Area: Chain status/archived Archive label, use when closing/locking old discussions.
3 participants
Converted from issue

This discussion was converted from issue #7599 on November 16, 2021 03:22.