Browse Source
move error to a separate file
move error to a separate file
This file contains metric names for all errors The naming convention is ErrorSomeThing = "error.some.thing"pull/2643/head
chrislu
3 years ago
5 changed files with 55 additions and 24 deletions
-
10weed/server/filer_server_handlers_read.go
-
31weed/stats/metrics_names.go
-
20weed/storage/needle/needle_read_write.go
-
6weed/topology/store_replicate.go
-
12weed/wdclient/masterclient.go
@ -0,0 +1,31 @@ |
|||
package stats |
|||
|
|||
// This file contains metric names for all errors
|
|||
// The naming convention is ErrorSomeThing = "error.some.thing"
|
|||
const ( |
|||
// volume server
|
|||
ErrorSizeMismatchOffsetSize = "errorSizeMismatchOffsetSize" |
|||
ErrorSizeMismatch = "errorSizeMismatch" |
|||
ErrorCRC = "errorCRC" |
|||
ErrorIndexOutOfRange = "errorIndexOutOfRange" |
|||
|
|||
// master topology
|
|||
ErrorWriteToLocalDisk = "errorWriteToLocalDisk" |
|||
ErrorUnmarshalPairs = "errorUnmarshalPairs" |
|||
ErrorWriteToReplicas = "errorWriteToReplicas" |
|||
|
|||
// master client
|
|||
FailedToKeepConnected = "failedToKeepConnected" |
|||
FailedToSend = "failedToSend" |
|||
FailedToReceive = "failedToReceive" |
|||
RedirectedToleader = "redirectedToleader" |
|||
OnPeerUpdate = "onPeerUpdate" |
|||
Failed = "failed" |
|||
|
|||
// filer handler
|
|||
ErrorReadNotFound = "read.notfound" |
|||
ErrorReadInternal = "read.internalerror" |
|||
ErrorWriteEntry = "write.entry.failed" |
|||
ErrorReadCache = "read.cache.failed" |
|||
ErrorReadStream = "read.stream.failed" |
|||
) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue