Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for IsErr (0.03 sec)

  1. cmd/bucket-replication-metrics.go

    		bucketStats: make(map[string]ProxyMetric),
    	}
    }
    
    func (p *proxyStatsCache) inc(bucket string, api replProxyAPI, isErr bool) {
    	p.Lock()
    	defer p.Unlock()
    	v, ok := p.bucketStats[bucket]
    	if !ok {
    		v = ProxyMetric{}
    	}
    	switch api {
    	case putObjectTaggingAPI:
    		if !isErr {
    			atomic.AddUint64(&v.PutTagTotal, 1)
    			atomic.AddUint64(&p.srProxyStats.PutTagTotal, 1)
    		} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. cmd/bucket-replication-stats.go

    	atomic.AddInt64(&r.qCache.srQueueStats.nowCount, -1)
    }
    
    // incProxy increments proxy metrics for proxied calls
    func (r *ReplicationStats) incProxy(bucket string, api replProxyAPI, isErr bool) {
    	if r != nil {
    		r.pCache.inc(bucket, api, isErr)
    	}
    }
    
    func (r *ReplicationStats) getProxyStats(bucket string) ProxyMetric {
    	if r == nil {
    		return ProxyMetric{}
    	}
    	return r.pCache.getBucketStats(bucket)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. cmd/metacache-server-pool.go

    			cancel()
    		}
    		if err != nil {
    			if errors.Is(err, context.Canceled) {
    				// Context is canceled, return at once.
    				// request canceled, no entries to return
    				return entries, io.EOF
    			}
    			if !IsErr(err, context.DeadlineExceeded, grid.ErrDisconnected) {
    				// Report error once per bucket, but continue listing.x
    				storageLogOnceIf(ctx, err, "GetMetacacheListing:"+o.Bucket)
    			}
    			o.Transient = true
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    		if gerr == nil {
    			evt := evalActionFromLifecycle(ctx, *lc, rcfg, replcfg, goi)
    			var isErr bool
    			switch evt.Action {
    			case lifecycle.NoneAction:
    				isErr = true
    			case lifecycle.TransitionAction, lifecycle.TransitionVersionAction:
    				isErr = true
    			}
    			if isErr {
    				if goi.VersionID != "" {
    					return goi, VersionNotFound{
    						Bucket:    bucket,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. cmd/utils.go

    }
    
    // IsErrIgnored returns whether given error is ignored or not.
    func IsErrIgnored(err error, ignoredErrs ...error) bool {
    	return IsErr(err, ignoredErrs...)
    }
    
    // IsErr returns whether given error is exact error.
    func IsErr(err error, errs ...error) bool {
    	for _, exactErr := range errs {
    		if errors.Is(err, exactErr) {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. cmd/erasure-healing.go

    			outDatedDisks[i] = storageDisks[i]
    			disksToHealCount++
    		}
    
    		driveState := ""
    		switch {
    		case reason == nil:
    			driveState = madmin.DriveStateOk
    		case IsErr(reason, errDiskNotFound):
    			driveState = madmin.DriveStateOffline
    		case IsErr(reason, errFileNotFound, errFileVersionNotFound, errVolumeNotFound, errPartMissingOrCorrupt, errOutdatedXLMeta, errLegacyXLMeta):
    			driveState = madmin.DriveStateMissing
    		default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  7. cmd/xl-storage-disk-id-check.go

    	return func(sz int64, errp *error) {
    		duration := time.Since(startTime)
    
    		var err error
    		if errp != nil && *errp != nil {
    			err = *errp
    		}
    
    		atomic.AddUint64(&p.apiCalls[s], 1)
    		if IsErr(err, []error{
    			errFaultyDisk,
    			errFaultyRemoteDisk,
    			context.DeadlineExceeded,
    		}...) {
    			p.totalErrsAvailability.Add(1)
    			if errors.Is(err, context.DeadlineExceeded) {
    				p.totalErrsTimeout.Add(1)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    			errFileNotFound,
    			errVolumeNotFound,
    			errFileVersionNotFound,
    			errDiskNotFound,
    			errUnformattedDisk,
    			errMaxVersionsExceeded,
    			errFileAccessDenied,
    		}
    		if err != nil && !IsErr(err, ignoredErrs...) && !contextCanceled(ctx) {
    			// Only log these errors if context is not yet canceled.
    			storageLogOnceIf(ctx, fmt.Errorf("drive:%s, srcVolume: %s, srcPath: %s, dstVolume: %s:, dstPath: %s - error %v",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top