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

Bug in backend processing #71

Open
freddy33 opened this issue May 1, 2021 · 0 comments
Open

Bug in backend processing #71

freddy33 opened this issue May 1, 2021 · 0 comments

Comments

@freddy33
Copy link
Owner

freddy33 commented May 1, 2021

Looks like race condition.
`pathdb 2021/05/01 03:16:19 m3pathctxdb.go:408: [INFO PathDB104-GrowthCtx39-T4-Idx11-3-48 from=48 to=49 : move from 3,816 to 4,000 nodes with 0 conflicts]
pathdb 2021/05/01 03:16:19 m3pathctxdb.go:315: [INFO Path context PathDB104-GrowthCtx39-T4-Idx11-3-49 max dist set to 49]
m3server 2021/05/01 03:16:21 path_handler.go:93: [INFO Receive increaseMaxDist]
pathdb 2021/05/01 03:16:23 m3pathnodedb.go:167: [ERROR Linked id of &{17 [234,513 236,002 236,631] T008 T08: (CP01, CP02, CN04)} not set correctly for 2 since 236,631 != -3]
2021/05/01 03:16:23 [ERROR Linked id of &{17 [234,513 236,002 236,631] T008 T08: (CP01, CP02, CN04)} not set correctly for 2 since 236,631 != -3]
pathdb 2021/05/01 03:16:25 m3pathctxdb.go:408: [INFO PathDB120-GrowthCtx41-T8-Idx01-7-47 from=47 to=48 : move from 3,793 to 3,936 nodes with 0 conflicts]
pathdb 2021/05/01 03:16:25 m3pathctxdb.go:315: [INFO Path context PathDB120-GrowthCtx41-T8-Idx01-7-48 max dist set to 48]
m3server 2021/05/01 03:16:27 path_handler.go:93: [INFO Receive increaseMaxDist]
pathdb 2021/05/01 03:16:29 m3pathctxdb.go:408: [INFO PathDB104-GrowthCtx39-T4-Idx11-3-49 from=49 to=50 : move from 4,000 to 4,167 nodes with 0 conflicts]
pathdb 2021/05/01 03:16:29 m3pathctxdb.go:315: [INFO Path context PathDB104-GrowthCtx39-T4-Idx11-3-50 max dist set to 50]
m3server 2021/05/01 03:16:32 path_handler.go:93: [INFO Receive increaseMaxDist]
pathdb 2021/05/01 03:16:32 m3pathctxdb.go:408: [INFO PathDB111-GrowthCtx40-T8-Idx00-6-56 from=56 to=57 : move from 5,411 to 5,596 nodes with 0 conflicts]
pathdb 2021/05/01 03:16:32 m3pathctxdb.go:315: [INFO Path context PathDB111-GrowthCtx40-T8-Idx00-6-57 max dist set to 57]
pathdb 2021/05/01 03:16:35 m3pathnodedb.go:188: [ERROR Linked id for next of &{529 [234,513 236,002 -1] T008 T08: (CP01, CP02, CN04)} not set correctly for 2 since -1 != -5 && -1 <= 0]
panic: [ERROR Linked id for next of &{529 [234,513 236,002 -1] T008 T08: (CP01, CP02, CN04)} not set correctly for 2 since -1 != -5 && -1 <= 0]

goroutine 133199 [running]:
github.com/freddy33/qsm-go/m3util.(*BaseLogger).Fatalf(0xc000005b00, 0x15a931f, 0x4b, 0xc0031045a0, 0x5, 0x5)
C:/work/projects/qsm-go/m3util/qsm_log.go:269 +0xcb
github.com/freddy33/qsm-go/backend/pathdb.(*ConnectionsStateDb).GetLinkIdsForDb(0xc003b146e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
C:/work/projects/qsm-go/backend/pathdb/m3pathnodedb.go:188 +0x554
github.com/freddy33/qsm-go/backend/pathdb.(*PathNodeDb).updateInDb(0xc003b146e0, 0x0, 0x0)
C:/work/projects/qsm-go/backend/pathdb/m3pathnodedb.go:359 +0x54
github.com/freddy33/qsm-go/backend/pathdb.(*PathNodeDb).syncInDb(0xc003b146e0, 0x0, 0x0)
C:/work/projects/qsm-go/backend/pathdb/m3pathnodedb.go:336 +0x75a
github.com/freddy33/qsm-go/backend/pathdb.(*PathContextDb).calculateNextMaxDist.func3(0x1fffffffb, 0x2d, 0xc003b146e0, 0x0)
C:/work/projects/qsm-go/backend/pathdb/m3pathctxdb.go:391 +0x59
github.com/freddy33/qsm-go/backend/pathdb.(*ServerPointHashPathNodeMap).Range.func1(0x1fffffffb, 0x2d, 0xc003b146e0, 0xc0043c3f84)
C:/work/projects/qsm-go/backend/pathdb/m3pathmap.go:124 +0x48
github.com/freddy33/qsm-go/model/m3point.(*PointHashMap).Range.func1(0x16287a0, 0xc004884850, 0xc003b146e0, 0x0)
C:/work/projects/qsm-go/model/m3point/m3pointmap.go:69 +0x7f
github.com/freddy33/qsm-go/model/m3point.(*NonBlockConcurrentMap).Range.func1(0xc0007e64e0, 0x0, 0xc004674b70, 0x1fa, 0xc00511c180)
C:/work/projects/qsm-go/model/m3point/nonblockmap.go:349 +0x133
created by github.com/freddy33/qsm-go/model/m3point.(*NonBlockConcurrentMap).Range
C:/work/projects/qsm-go/model/m3point/nonblockmap.go:332 +0x1e5
`

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

No branches or pull requests

1 participant