Commit Graph

66 Commits

Author SHA1 Message Date
awzhgw
6a9dbc369b Refactor: if not config warnLogDir,then donnot write umplog to disk
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
2019-08-16 14:42:09 +08:00
awzhgw
9e2fce42a7 enhancement: add raft monitor
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
2019-08-16 14:42:09 +08:00
awzhgw
74b9f1b737 Fix: when disk error,the raft cannot start on new data server first: StartRaftAfterRepair func get leader maxExtentID second: loop get leader from 0 to maxExtentID the partitionSize compare local partitionSize
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
2019-08-16 14:42:09 +08:00
zhuhyc
d4a94ae1ec enhancement: set writeDeadLineTime to one minute,avoid metanode gc reset conn which snapshot used as much as possible
Signed-off-by: zhuhyc <zzhniy.163.niy@163.com>
2019-08-16 14:42:09 +08:00
zhuhongyin
fceb29fc08 fix: truncate raft corrupt data
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
2019-08-16 14:42:09 +08:00
awzhgw
2265785511 Refactoring: sdk When creating a datapartition, select the datapartition retry strategy
and go fmt project

Signed-off-by: awzhgw <guowl18702995996@gmail.com>
2019-08-16 14:42:09 +08:00
Shuoran Liu
b0d82fb77f enhancement: align out message buffer size with max read size
Set out message buffer size to max read size, since we won't be needing
such a big buffer if it is larger than max read size.

Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2019-08-14 19:55:58 +08:00
Shuoran Liu
5e94555461 enhancement: enable async read by default
Enable FUSE async read feature by default, so that readahead can take
effect to improve sequential read performance.

Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2019-08-03 19:59:33 +08:00
awzhgw
f5c2d32117 fix: when raft member become leader,must apply from appliyID to commitID
Signed-off-by: awzhgw <guowl18702995996@gmail.com>
2019-07-18 17:20:54 +08:00
Shuoran Liu
97a1360de2 vendor: introduce jacobsa daemonize package
Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2019-07-04 15:22:15 +08:00
Shuoran Liu
7ee565d148 jacobsa fuse: add uid and gid in create ops
Add Uid and Gid fields in MkDirOp/MkNodOp/CreateFileOp/CreateSymlinkOp

Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2019-06-11 12:53:17 +08:00
Shuoran Liu
a6ccf13ad6 init jacobsa fuse package
Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
2019-06-11 12:53:17 +08:00
Tianpeng Li
eb009e97bd fix: 1. raft election timeout; 2. raft fatal event panic metanode
Signed-off-by: Tianpeng Li <skypigltp@gmail.com>
2019-06-11 12:53:17 +08:00
awzhgw
36d97f1034 master:
1.add ump warn packet
  2.partition has recover,but the status don't change
  3.remove redundancy calling loadMetaData method
  4.reload meta data when change leader

metanode:
   1. add totalMem in configFile
   2.change not raft leader to tryOtherAddr error

 datanode:
   1.when datapartition not exsit,tell client with proto.OptryAgain resultcode
   2.change disk retrain default space to 20gb
   3.heartbeat report add volname

 raft:
   1.use raft.ErrNotLeader replace ErrNotLeader
   2.raft became leader must apply from oldapplyid to commitid

 client:
   1.  create a dummy node instance if inode does not exist
   2. add ump alarm for read/write/fsync errors

log:
   1.   auto create subdir to logdir

 error:
   1.delete juju error packet
2019-04-30 09:31:58 +08:00
awzhgw
493af438b0 client:
1.try other hosts for network errors
  2.use single instance for File and Dir object
metanode:
  1.use tcp packet notify all raft followers to free inodes
datanode:
  1.remove read check appliedID
  2.change extentcache fp to 100
  3.fix always repair has delete extents
repl:
  1.modify funcName from reciveFromFollower to checkLocalResultAndReceiveFromFollower
2019-04-02 10:24:10 +08:00
awzhgw
3893283054 init LICENSE file and vendor,util packet 2019-03-14 14:04:21 +08:00