Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for error (0.18 sec)

  1. tests/query_test.go

    		t.Errorf("Failed to batch find, got error %v, rows affected: %v", result.Error, result.RowsAffected)
    	}
    
    	var sub3 []User
    	if result := DB.Limit(4).Where("name = ?", users[0].Name).FindInBatches(&sub3, 2, func(tx *gorm.DB, batch int) error {
    		return nil
    	}); result.Error != nil || result.RowsAffected != 4 {
    		t.Errorf("Failed to batch find, got error %v, rows affected: %v", result.Error, result.RowsAffected)
    	}
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  2. cni/pkg/ipset/nldeps_linux.go

    			}
    		}
    	}
    
    	return errors.Join(delErrs...)
    }
    
    func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) {
    	var ipList []netip.Addr
    
    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return ipList, fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    
    	for _, entry := range res.Entries {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/metacache-set.go

    				atEOF++
    				continue
    			case nil:
    			default:
    				switch err.Error() {
    				case errFileNotFound.Error(),
    					errVolumeNotFound.Error(),
    					errUnformattedDisk.Error():
    					atEOF++
    					fnf++
    					// This is a special case, to handle bucket does
    					// not exist situations.
    					if errors.Is(err, errVolumeNotFound) {
    						vnf++
    					}
    					continue
    				}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. cmd/erasure-multipart.go

    	drivePath := disk.Endpoint().Path
    
    	readDirFn(pathJoin(drivePath, minioMetaMultipartBucket), func(shaDir string, typ os.FileMode) error {
    		readDirFn(pathJoin(drivePath, minioMetaMultipartBucket, shaDir), func(uploadIDDir string, typ os.FileMode) error {
    			uploadIDPath := pathJoin(shaDir, uploadIDDir)
    			fi, err := disk.ReadVersion(ctx, "", minioMetaMultipartBucket, uploadIDPath, "", ReadOptions{})
    			if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  5. cni/pkg/ipset/ipset.go

    	deleteIP(name string, ip netip.Addr, ipProto uint8) error
    	flush(name string) error
    	clearEntriesWithComment(name string, comment string) error
    	clearEntriesWithIP(name string, ip netip.Addr) error
    	listEntriesByIP(name string) ([]netip.Addr, error)
    }
    
    // TODO this should actually create v6 and v6 subsets of type `hash:ip`, add them both to a
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. cmd/erasure-healing.go

    			case errFileNotFound.Error():
    				fallthrough
    			case errVolumeNotFound.Error():
    				fallthrough
    			case errFileVersionNotFound.Error():
    				continue
    			}
    		}
    		return false
    	}
    	return len(errs) > 0
    }
    
    // isAllBucketsNotFound will return true if all the errors are either errFileNotFound
    // or errFileCorrupt
    // A 0 length slice will always return false.
    func isAllBucketsNotFound(errs []error) bool {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  7. cmd/erasure.go

    }
    
    func diskErrToDriveState(err error) (state string) {
    	switch {
    	case errors.Is(err, errDiskNotFound) || errors.Is(err, context.DeadlineExceeded):
    		state = madmin.DriveStateOffline
    	case errors.Is(err, errCorruptedFormat) || errors.Is(err, errCorruptedBackend):
    		state = madmin.DriveStateCorrupt
    	case errors.Is(err, errUnformattedDisk):
    		state = madmin.DriveStateUnformatted
    	case errors.Is(err, errDiskAccessDenied):
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  8. tests/preload_test.go

    		t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account)
    	}
    
    	if err := DB.Preload(clause.Associations, func(tx *gorm.DB) *gorm.DB {
    		return tx.Unscoped()
    	}).Take(&user4, "id = ?", users3[0].ID).Error; err != nil || user4.Account.ID == 0 {
    		t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account)
    	}
    }
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables_linux.go

    	loopbackLink, err := netlink.LinkByName("lo")
    	if err != nil {
    		return fmt.Errorf("failed to find 'lo' link: %v", err)
    	}
    
    	// Set up netlink routes for localhost
    	cidrs := []string{"0.0.0.0/0"}
    	if cfg.EnableIPv6 {
    		cidrs = append(cidrs, "0::0/0")
    	}
    	for _, fullCIDR := range cidrs {
    		_, localhostDst, err := net.ParseCIDR(fullCIDR)
    		if err != nil {
    			return fmt.Errorf("parse CIDR: %v", err)
    		}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  10. cmd/object-handlers_test.go

    					var errXML APIErrorResponse
    					err = xml.Unmarshal(errBytes, &errXML)
    					if err != nil {
    						t.Fatalf("%s, Failed to unmarshal error response from upload part request \"%s\"/\"%s\": <ERROR> %v.",
    							reqType, bucketName, test.objectName, err)
    					}
    					// Validate whether the error has occurred for the expected reason.
    					if want.Code != errXML.Code {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top