seaweedfs/weed/pb
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
..
filer_pb avoid data race of TraverseBfs (#3856) 2022-10-16 11:30:41 -07:00
iam_pb associate Account and Identity by accountId (#3754) 2022-09-28 13:25:59 -07:00
master_pb remove unused ReadNeedleBlobRequest.needle_id 2022-10-13 23:10:46 -07:00
message_fbs add message batch 2022-07-28 23:24:38 -07:00
mount_pb go fmt 2022-09-14 23:06:44 -07:00
mq_pb grpc: watch metadata changes by directory 2022-09-20 09:25:18 -07:00
remote_pb grpc: watch metadata changes by directory 2022-09-20 09:25:18 -07:00
s3_pb go fmt 2022-09-14 23:06:44 -07:00
volume_server_pb fix volume_server.proto conflict (#3858) 2022-10-15 20:01:07 -07:00
filer.proto grpc: watch metadata changes by directory 2022-09-20 09:25:18 -07:00
filer_pb_tail.go s3 to watch specific directories 2022-09-20 09:30:05 -07:00
grpc_client_server.go remove old raft servers if they don't answer to pings for too long (#3398) 2022-08-23 23:18:21 -07:00
iam.proto associate Account and Identity by accountId (#3754) 2022-09-28 13:25:59 -07:00
Makefile add flatbuffer serde for message 2022-07-28 23:24:38 -07:00
master.proto show raft leader via shell (#3796) 2022-10-06 07:10:41 -07:00
message.fbs add message batch 2022-07-28 23:24:38 -07:00
mount.proto move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
mq.proto scaffold 2022-07-31 13:23:44 -07:00
proto_read_write_test.go fix tests 2022-08-18 00:15:46 -07:00
remote.proto move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
s3.proto move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
server_address.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
shared_values.go remove fixJpgOrientation 2020-06-20 12:50:40 -07:00
volume_server.proto avoid load volume file with BytesOffset mismatch (#3841) 2022-10-14 00:18:09 -07:00