Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for isErrObjectNotFound (0.13 sec)

  1. cmd/config-common.go

    	r, err := store.GetObjectNInfo(ctx, minioMetaBucket, configFile, nil, http.Header{}, opts)
    	if err != nil {
    		if isErrObjectNotFound(err) {
    			return nil, ObjectInfo{}, errConfigNotFound
    		}
    
    		return nil, ObjectInfo{}, err
    	}
    	defer r.Close()
    
    	buf, err := io.ReadAll(r)
    	if err != nil {
    		return nil, ObjectInfo{}, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. cmd/object-api-deleteobject_test.go

    				t.Log(oi)
    				t.Fatalf("%s : %s", instanceType, err.Error())
    			}
    		}
    
    		oi, err := obj.DeleteObject(context.Background(), testCase.bucketName, testCase.pathToDelete, ObjectOptions{})
    		if err != nil && !isErrObjectNotFound(err) {
    			t.Log(oi)
    			t.Errorf("Test %d: %s:  Expected to pass, but failed with: <ERROR> %s", i+1, instanceType, err)
    			continue
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. cmd/global-heal.go

    			if err != nil {
    				res, err := er.HealObject(ctx, bucket, encodedEntryName, "",
    					madmin.HealOpts{
    						ScanMode: scanMode,
    						Remove:   healDeleteDangling,
    					})
    				if err != nil {
    					if isErrObjectNotFound(err) || isErrVersionNotFound(err) {
    						// queueing happens across namespace, ignore
    						// objects that are not found.
    						return
    					}
    					result = healEntryFailure(0)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. cmd/batch-handlers.go

    					if err == nil {
    						oi = toObjectInfo(r.Source.Bucket, obj.Key, oi2)
    					} else {
    						if !isErrMethodNotAllowed(ErrorRespToObjectError(err, r.Source.Bucket, obj.Key)) &&
    							!isErrObjectNotFound(ErrorRespToObjectError(err, r.Source.Bucket, obj.Key)) {
    							batchLogIf(ctx, err)
    						}
    						continue
    					}
    				}
    				if hasTags {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-decom.go

    }
    
    func (p *poolMeta) load(ctx context.Context, pool *erasureSets, pools []*erasureSets) error {
    	data, err := readConfig(ctx, pool, poolMetaName)
    	if err != nil {
    		if errors.Is(err, errConfigNotFound) || isErrObjectNotFound(err) {
    			return nil
    		}
    		return err
    	}
    	if len(data) == 0 {
    		// Seems to be empty create a new poolMeta object.
    		return nil
    	}
    	if len(data) <= 4 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool.go

    	idx, err = z.getPoolIdxExistingNoLock(ctx, bucket, object)
    	if err != nil && !isErrObjectNotFound(err) {
    		return idx, err
    	}
    
    	if isErrObjectNotFound(err) {
    		idx = z.getAvailablePoolIdx(ctx, bucket, object, size)
    		if idx < 0 {
    			return -1, toObjectErr(errDiskFull)
    		}
    	}
    
    	return idx, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    					if err != nil {
    						err := bgSeq.queueHealTask(healSource{
    							bucket:    bucket,
    							object:    entry.name,
    							versionID: "",
    						}, madmin.HealItemObject)
    						if !isErrObjectNotFound(err) && !isErrVersionNotFound(err) {
    							scannerLogIf(ctx, err)
    						}
    						foundObjs = foundObjs || err == nil
    						return
    					}
    
    					custom["versions"] = fmt.Sprint(len(fiv.Versions))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    					// These rebalance failures can be ignored.
    					if err != nil {
    						// This can happen when rebalance stop races with ongoing rebalance workers.
    						// These rebalance failures can be ignored.
    						if isErrObjectNotFound(err) || isErrVersionNotFound(err) || isDataMovementOverWriteErr(err) {
    							ignore = true
    							stopFn(0, nil)
    							continue
    						}
    					}
    					stopFn(version.Size, err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  9. cmd/bucket-object-lock.go

    			// This happens usually for a delete marker
    			if oi.DeleteMarker || !oi.VersionPurgeStatus.Empty() {
    				// Delete marker should be present and valid.
    				return nil
    			}
    		}
    		if isErrObjectNotFound(gerr) || isErrVersionNotFound(gerr) {
    			return nil
    		}
    		return gerr
    	}
    
    	lhold := objectlock.GetObjectLegalHoldMeta(oi.UserDefined)
    	if lhold.Status.Valid() && lhold.Status == objectlock.LegalHoldOn {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  10. cmd/object-api-errors.go

    func isErrWriteQuorum(err error) bool {
    	var rquorum InsufficientWriteQuorum
    	return errors.As(err, &rquorum)
    }
    
    // isErrObjectNotFound - Check if error type is ObjectNotFound.
    func isErrObjectNotFound(err error) bool {
    	if errors.Is(err, errFileNotFound) {
    		return true
    	}
    
    	var objNotFound ObjectNotFound
    	return errors.As(err, &objNotFound)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top