seaweedfs/weed
Konstantin Lebedev e20f0dbd2d
avoid data race of TraverseBfs (#3856)
* avoid data race of TraverseBfs

* close is enough
avoid panic
I1014 12:29:59.207120 volume_loading.go:131 loading sorted db /tmp/sw/test2_19.sdx error: unexpected file /tmp/sw/test2_19.idx size: 255
I1014 12:29:59.207125 volume_loading.go:119 open to write file /tmp/sw/test4_26.idx
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5260a4c]

goroutine 287 [running]:
github.com/seaweedfs/seaweedfs/weed/storage.(*SortedFileNeedleMap).Close(0x0)
        /Users/tochka/GolandProjects/seaweedfs/weed/storage/needle_map_sorted_file.go:97 +0x2c
github.com/seaweedfs/seaweedfs/weed/storage.(*Volume).load.func1()
        /Users/tochka/GolandProjects/seaweedfs/weed/storage/volume_loading.go:32 +0x8e
github.com/seaweedfs/seaweedfs/weed/storage.(*Volume).load(0xc001b36280, 0x1, 0x1, 0x0, 0x69228c0?)
        /Users/tochka/GolandProjects/seaweedfs/weed/storage/volume_loading.go:205 +0x256c
github.com/seaweedfs/seaweedfs/weed/storage.NewVolume({0x7ffeefbff6e0, 0x7}, {0x7ffeefbff6e0, 0x7}, {0xc0009a9284, 0x5}, 0x13, 0x0, 0x0, 0x0, ...)
        /Users/tochka/GolandProjects/seaweedfs/weed/storage/volume.go:62 +0x30f
github.com/seaweedfs/seaweedfs/weed/storage.(*DiskLocation).loadExistingVolume(0xc0006f40c0, {0x846c8d0, 0xc0009ce600}, 0x0?, 0x1)
        /Users/tochka/GolandProjects/seaweedfs/weed/storage/disk_location.go:161 +0x4da
github.com/seaweedfs/seaweedfs/weed/storage.(*DiskLocation).concurrentLoadingVolumes.func2()
        /Users/tochka/GolandProjects/seaweedfs/weed/storage/disk_location.go:201 +0xf9
created by github.com/seaweedfs/seaweedfs/weed/storage.(*DiskLocation).concurrentLoadingVolumes
        /Users/tochka/GolandProjects/seaweedfs/weed/storage/disk_location.go:198 +0x150
2022-10-16 11:30:41 -07:00
..
cluster remove old raft servers if they don't answer to pings for too long (#3398) 2022-08-23 23:18:21 -07:00
command default hasSlowRead to true 2022-10-12 21:15:10 -07:00
filer filer: redis store reduce from 2 redis operations to 1 for updates. 2022-10-12 23:50:09 -07:00
ftpd move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
glog go fmt 2022-09-14 23:06:44 -07:00
iamapi refactor: Directory readability (#3665) 2022-09-14 10:11:31 -07:00
images go fmt 2022-09-14 23:06:44 -07:00
mount Revert "mount: remove mount directory from generating cache directory id" 2022-10-14 22:24:14 -07:00
mq avoid race conditions for OnPeerUpdate (#3525) 2022-08-26 10:18:49 -07:00
notification go fmt 2022-09-14 23:06:44 -07:00
operation refactor 2022-09-10 16:56:03 -07:00
pb avoid data race of TraverseBfs (#3856) 2022-10-16 11:30:41 -07:00
query move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
remote_storage gateway to remote object store: adjust upload concurrency 2022-08-26 23:47:37 -07:00
replication fix invalid memory address or nil pointer dereference on filer.sync 2022-10-11 21:58:17 -07:00
s3api don't skip empty value at AssembleEntryWithAcp (#3855) 2022-10-13 22:50:44 -07:00
security go fmt 2022-09-14 23:06:44 -07:00
sequence move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
server avoid load volume file with BytesOffset mismatch (#3841) 2022-10-14 00:18:09 -07:00
shell [volume.fsck] hotfix apply purging and add option verifyNeedle #3860 (#3861) 2022-10-15 20:38:46 -07:00
static Change filer UI icon from picture to icon font. 2022-04-08 15:07:56 +08:00
stats vacuum metrics and force sync dst files (#3832) 2022-10-13 00:51:20 -07:00
storage avoid data race of TraverseBfs (#3856) 2022-10-16 11:30:41 -07:00
topology docs(topology): readability improvements (#3688) 2022-09-15 02:03:10 -07:00
util avoid data race of LogBuffer isStopping (#3859) 2022-10-16 11:28:56 -07:00
wdclient docs(wdclient): readability fix (#3685) 2022-09-15 01:29:26 -07:00
Makefile debug 2022-08-07 00:55:49 -07:00
weed.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00