mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-05 11:41:13 +00:00
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
36 lines
560 B
Go
36 lines
560 B
Go
package errors
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func init() {
|
|
}
|
|
|
|
func TestError01(t *testing.T) {
|
|
err := New("first")
|
|
err = NewError(err)
|
|
err = Trace(err, "second(%v %v)", 2, 3)
|
|
err = Trace(err, "third(%v %v)", 4, 5)
|
|
t.Log(err)
|
|
t.Log(Stack(err))
|
|
}
|
|
|
|
func TestError02(t *testing.T) {
|
|
var err error
|
|
|
|
err = Trace(nil, "first(%v %v)", 2, 3)
|
|
err = Trace(err, "second(%v %v)", 4, 5)
|
|
t.Log(err)
|
|
t.Log(Stack(err))
|
|
}
|
|
|
|
func TestError03(t *testing.T) {
|
|
var err error
|
|
|
|
err = Trace(nil, "first")
|
|
err = Trace(err, "second(%v %v)", 4, 5)
|
|
t.Log(err)
|
|
t.Log(Stack(err))
|
|
}
|