vanus-labs / vanus

Vanus is a Serverless, event streaming system with processing capabilities. It easily connects SaaS, Cloud Services, and Databases to help users build next-gen Event-driven Applications.
https://vanus.ai
Apache License 2.0
2.29k stars 113 forks source link

controller segment ut timeout #225

Closed xdlbdy closed 1 year ago

xdlbdy commented 2 years ago

Bug Report

panic: test timed out after 20s

goroutine 28 [running]:
testing.(*M).startAlarm.func1()
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1788 +0xbb
created by time.goFunc
    /opt/hostedtoolcache/go/1.17.13/x64/src/time/sleep.go:180 +0x4a

goroutine 1 [chan receive]:
testing.(*T).Run(0xc000177380, {0xbc3c30, 0x1b}, 0xbdf1a8)
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1307 +0x752
testing.runTests.func1(0x0)
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1598 +0x9a
testing.tRunner(0xc000177380, 0xc00017fbc0)
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1259 +0x230
testing.runTests(0xc0000fe580, {0x10556a0, 0xd, 0xd}, {0xc0001d9398, 0xc00017fc48, 0x1062180})
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1596 +0x7cb
testing.(*M).Run(0xc0000fe580)
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1504 +0x9d2
main.main()
    _testmain.go:119 +0x325

goroutine 14 [chan receive]:
github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.Test_ExpiredSegmentDeleting.func1.3()
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog_test.go:939 +0x4ce
github.com/smartystreets/goconvey/convey.parseAction.func1({0xbcb78e, 0xc0004987e0})
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/discovery.go:89 +0x31
github.com/smartystreets/goconvey/convey.(*context).conveyInner(0xc00034f1f0, {0xbcb78e, 0x26}, 0xc0003f1300)
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/context.go:279 +0x285
github.com/smartystreets/goconvey/convey.(*context).Convey.func1()
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/context.go:166 +0x85
github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/context.go:97 +0x5d8
github.com/jtolds/gls.EnsureGoroutineId(0xc0004987b0)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/gid.go:19 +0x1a9
github.com/jtolds/gls.(*ContextManager).SetValues(0xc0001b8c80, 0xc000498750, 0xc0001f1fc8)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/context.go:63 +0x29e
github.com/smartystreets/goconvey/convey.(*context).Convey(0xc00026cd90, {0xc0000ef670, 0x2, 0x2})
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/context.go:165 +0x745
github.com/smartystreets/goconvey/convey.Convey({0xc0000ef670, 0x2, 0x2})
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/doc.go:78 +0x87
github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.Test_ExpiredSegmentDeleting.func1()
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog_test.go:921 +0xdb6
github.com/smartystreets/goconvey/convey.parseAction.func1({0xbc59e6, 0xc000425b30})
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/discovery.go:89 +0x31
github.com/smartystreets/goconvey/convey.(*context).conveyInner(0xc00026cd90, {0xbc59e6, 0x1d}, 0xc00030a170)
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/context.go:279 +0x285
github.com/smartystreets/goconvey/convey.rootConvey.func1()
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/context.go:112 +0x1aa
github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/context.go:97 +0x5d8
github.com/jtolds/gls.EnsureGoroutineId.func1()
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/gid.go:24 +0x3f
github.com/jtolds/gls._m(0x0, 0xc00000f698)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/stack_tags.go:108 +0x42
github.com/jtolds/gls.github_com_jtolds_gls_markS(0x1061780, 0x100000000000000)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/stack_tags.go:56 +0x37
github.com/jtolds/gls.addStackTag(...)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/stack_tags.go:49
github.com/jtolds/gls.EnsureGoroutineId(0xc0002791d0)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/gid.go:24 +0x165
github.com/jtolds/gls.(*ContextManager).SetValues(0xc0001b8c80, 0xc000279170, 0xc000067560)
    /home/runner/go/pkg/mod/github.com/jtolds/gls@v4.20.0+incompatible/context.go:63 +0x29e
github.com/smartystreets/goconvey/convey.rootConvey({0xc000262e58, 0x3, 0x3})
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/context.go:107 +0x572
github.com/smartystreets/goconvey/convey.Convey({0xc000262e58, 0x3, 0x3})
    /home/runner/go/pkg/mod/github.com/smartystreets/goconvey@v1.7.2/convey/doc.go:76 +0x9d
github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.Test_ExpiredSegmentDeleting(0xc0002324e0)
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog_test.go:754 +0xec
testing.tRunner(0xc0002324e0, 0xbdf1a8)
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1259 +0x230
created by testing.(*T).Run
    /opt/hostedtoolcache/go/1.17.13/x64/src/testing/testing.go:1306 +0x727

goroutine 9 [select]:
github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.(*eventlogManager).dynamicScaleUpEventLog(0xc00022cc60, {0xc9[229](https://github.com/linkall-labs/vanus/runs/7968242107?check_suite_focus=true#step:4:230)8, 0xc000070480})
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog.go:450 +0x[258](https://github.com/linkall-labs/vanus/runs/7968242107?check_suite_focus=true#step:4:259)
created by github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.(*eventlogManager).Run
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog.go:153 +0x8f9

goroutine 10 [select]:
github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.(*eventlogManager).cleanAbnormalSegment(0xc00022cc60, {0xc92[298](https://github.com/linkall-labs/vanus/runs/7968242107?check_suite_focus=true#step:4:299), 0xc000070480})
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog.go:506 +0x209
created by github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.(*eventlogManager).Run
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog.go:154 +0x9bd

goroutine 11 [select]:
github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.(*eventlogManager).checkSegmentExpired(0xc00022cc60, {0xc92298, 0xc000070480})
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog.go:572 +0x209
created by github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog.(*eventlogManager).Run
    /home/runner/work/vanus/vanus/vanus/internal/controller/eventbus/eventlog/eventlog.go:155 +0xa85
FAIL    github.com/linkall-labs/vanus/internal/controller/eventbus/eventlog 20.027s

https://github.com/linkall-labs/vanus/runs/7968242107?check_suite_focus=true

wenfengwang commented 1 year ago

close due to not reproduced