Chris Lu
8126ab4b5d
rename
3 years ago
Chris Lu
5469019852
adjust data type
3 years ago
Chris Lu
ee6c67682c
minor
4 years ago
Chris Lu
5d931eff27
avoid possible nil
fix https://github.com/chrislusf/seaweedfs/issues/1928
The nil was because of `dn.Parent().UnlinkChildNode(dn.Id())` in topo.UnRegisterDataNode() function, when the dn leaves the cluster.
4 years ago
Chris Lu
f8446b42ab
this can compile now!!!
4 years ago
Chris Lu
d156c74ec0
volume server set volume type and heartbeat to the master
4 years ago
Konstantin Lebedev
1eec5c8d5d
gen pb
4 years ago
Konstantin Lebedev
dc26012a3b
initial
4 years ago
Chris Lu
da4edf3651
master: check peers for existing leader before starting a leader election
fix https://github.com/chrislusf/seaweedfs/issues/1509
4 years ago
James Hartig
91e4eca1e9
Fix deadlock with KeepConnected and SendHeartbeat
There's the potential where we're writing to a clientConn and it goes away
and we're stuck keeping a read lock on clientChansLock. This causes
KeepConnected to not be able to remove the client since it requires a write
lock on clientChansLock. This ends up backing up SendHeartbeat because it
can't get a read lock.
4 years ago
Chris Lu
41d508edfd
go fmt
4 years ago
Chris Lu
be54eeb364
passing value by checkWithMaster() instead
4 years ago
Chris Lu
97733c3dff
typo
4 years ago
Chris Lu
a41588279a
change log level 5 to 4
4 years ago
Chris Lu
bee0d7e5eb
lower log priority for noisy heartbeat
4 years ago
Chris Lu
93ea0801ea
volume: the variable for the master node may be stale?
related to https://github.com/chrislusf/seaweedfs/issues/1414
4 years ago
Chris Lu
31583b5d6c
master and volume server: avoid race condition
The volume server may disconnect and reconnect to the same master.
The master's unregistration may happen after the reconnection. Thus the volume server will disappear.
5 years ago
Chris Lu
69eda558ef
reduce the connections
fix https://github.com/chrislusf/seaweedfs/issues/1277
this avoids sending error to wdclients, and clients retry the connections
5 years ago
Chris Lu
826f96b6f3
fix unreachable code
5 years ago
Chris Lu
8e23dc078b
refactoring
5 years ago
Chris Lu
5361f999ed
shell: only one shell is allowed to connect to the cluster
fix https://github.com/chrislusf/seaweedfs/issues/1266
5 years ago
Chris Lu
c16dc57a58
fix max volume count reporting
5 years ago
Chris Lu
3137777d83
volume: automatically detect max volume count
5 years ago
Chris Lu
dc40413847
fix error
5 years ago
Chris Lu
6a8484b4ae
master able to list all master clients by type
5 years ago
Chris Lu
8c1da71402
remove dead code
5 years ago
Chris Lu
0da7b894cc
pass backend config from master to volume servers
5 years ago
Chris Lu
ea9a7e61d0
only send metrics address during on the first response
5 years ago
Chris Lu
71eb8efd20
fix error logs
5 years ago
Chris Lu
55a2221eba
master: add logging for volume server disconnection
add logging for https://github.com/chrislusf/seaweedfs/issues/1093
5 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
5 years ago
j.laycock
595a1beff0
Swap imports to use joeslay
5 years ago
Chris Lu
ca2b81a944
fix test error
5 years ago
Chris Lu
19360ab10a
master: redirect clients to the new leader
5 years ago
Chris Lu
0264a7f50a
set the max file key when ever possible
6 years ago
Chris Lu
f16375621f
big refactoring
6 years ago
Chris Lu
d8ed73926d
volume servers get metrics address and interval from the master
6 years ago
Chris Lu
450f4733ce
report empty volume or ec shards
6 years ago
Chris Lu
ede876cfdb
periodic scripts exeuction from leader master
6 years ago
Chris Lu
ac1ba3b667
remove comments
6 years ago
Chris Lu
92f9c7b1aa
adjust ec shard status on disconnect
6 years ago
Chris Lu
b58e25e588
broadcast vid->location map to master clients for ec chards
6 years ago
Chris Lu
af67d99ca4
incrementally update master ec shards state
6 years ago
Chris Lu
24b8ad9a14
push the ec shard info to master
6 years ago
Chris Lu
4659d80035
prepare to register ec shard info in master
6 years ago
Chris Lu
17ac1290c0
volume: load ec shards during heartbeats to master
6 years ago
Wine93
32f93fb09e
style: go fmt for all
6 years ago
Chris Lu
108d0fb08d
adjust log level
6 years ago
Chris Lu
132921ad41
adjust log or error
6 years ago
Chris Lu
6fc1f53018
shell: add command volume.move
6 years ago