-
Notifications
You must be signed in to change notification settings - Fork 189
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
ocis crashed: fatal error: concurrent map read and map write
#7697
Comments
@aduffeck This seems to happen cs3share cache. Any idea? |
It cannot reproduce isolated.
|
The logs in the builds have expired. And also I haven't seen this error for a while. |
Similar crash: https://drone.owncloud.com/owncloud/ocis/30164/29/3 fatal error: concurrent map read and map write
goroutine 366773 [running]:
github.com/cs3org/reva/v2/pkg/share/manager/jsoncs3/receivedsharecache.(*Cache).Add(0xc001e7c670, {0x44826b8, 0xc004f7aae0}, {0xc005262ab0, 0x24}, {0xc002366780, 0x49}, 0xc004025700)
/drone/src/vendor/github.com/cs3org/reva/v2/pkg/share/manager/jsoncs3/receivedsharecache/receivedsharecache.go:100 +0x2fd
github.com/cs3org/reva/v2/pkg/share/manager/jsoncs3.(*Manager).UpdateReceivedShare(0xc001e7c540, {0x44826b8, 0xc004f7aa80}, 0xc0020939c0, 0xc002093ac0, 0xc0042289b0)
/drone/src/vendor/github.com/cs3org/reva/v2/pkg/share/manager/jsoncs3/jsoncs3.go:1022 +0x4b7 |
Locking is insufficient in the cache. We need to replace https://github.com/cs3org/reva/blob/edge/pkg/share/manager/jsoncs3/receivedsharecache/receivedsharecache.go#L49 with a cornelk/hashmap to avoid the concurrent writes |
Or use our mtimesyncedcache package as in |
Build: https://drone.owncloud.com/owncloud/ocis/28565/30/3
Another: https://drone.owncloud.com/owncloud/ocis/28454/33/4
The text was updated successfully, but these errors were encountered: