[s3] fix s3 test_multipart_resend_first_finishes_last (#5471)
* try fix s3 test https://github.com/seaweedfs/seaweedfs/pull/5466 * add error handler metrics * refactor * refactor multipartExt * delete bad entry parts
This commit is contained in:
committed by
GitHub
parent
7aa25c1137
commit
d42a04cceb
@@ -241,7 +241,13 @@ var (
|
||||
Name: "request_total",
|
||||
Help: "Counter of s3 requests.",
|
||||
}, []string{"type", "code", "bucket"})
|
||||
|
||||
S3HandlerCounter = prometheus.NewCounterVec(
|
||||
prometheus.CounterOpts{
|
||||
Namespace: Namespace,
|
||||
Subsystem: "s3",
|
||||
Name: "handler_total",
|
||||
Help: "Counter of s3 server handlers.",
|
||||
}, []string{"type"})
|
||||
S3RequestHistogram = prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Namespace: Namespace,
|
||||
@@ -292,6 +298,7 @@ func init() {
|
||||
Gather.MustRegister(VolumeServerResourceGauge)
|
||||
|
||||
Gather.MustRegister(S3RequestCounter)
|
||||
Gather.MustRegister(S3HandlerCounter)
|
||||
Gather.MustRegister(S3RequestHistogram)
|
||||
Gather.MustRegister(S3TimeToFirstByteHistogram)
|
||||
}
|
||||
|
||||
@@ -43,4 +43,13 @@ const (
|
||||
ErrorChunkAssign = "chunkAssign.failed"
|
||||
ErrorReadCache = "read.cache.failed"
|
||||
ErrorReadStream = "read.stream.failed"
|
||||
|
||||
// s3 handler
|
||||
ErrorCompletedNoSuchUpload = "errorCompletedNoSuchUpload"
|
||||
ErrorCompletedPartEmpty = "ErrorCompletedPartEmpty"
|
||||
ErrorCompletedPartNumber = "ErrorCompletedPartNumber"
|
||||
ErrorCompletedPartNotFound = "errorCompletedPartNotFound"
|
||||
ErrorCompletedEtagInvalid = "errorCompletedEtagInvalid"
|
||||
ErrorCompletedEtagMismatch = "errorCompletedEtagMismatch"
|
||||
ErrorCompletedPartEntryMismatch = "errorCompletedPartEntryMismatch"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user