Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,159 for ErrorS (0.05 sec)

  1. cmd/erasure-metadata-utils.go

    	return reduceQuorumErrs(ctx, errs, ignoredErrs, readQuorum, errErasureReadQuorum)
    }
    
    // reduceWriteQuorumErrs behaves like reduceErrs but only for returning
    // values of maximally occurring errors validated against writeQuorum.
    func reduceWriteQuorumErrs(ctx context.Context, errs []error, ignoredErrs []error, writeQuorum int) (maxErr error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. tests/create_test.go

    		t.Errorf("no error should happen when auto migrate, but got %v", err)
    	}
    
    	if err := DB.Create(&EmptyStruct{}).Error; err != nil {
    		t.Errorf("No error should happen when creating user, but got %v", err)
    	}
    }
    
    func TestCreateEmptySlice(t *testing.T) {
    	data := []User{}
    	if err := DB.Create(&data).Error; err != gorm.ErrEmptySlice {
    		t.Errorf("no data should be created, got %v", err)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  3. internal/config/storageclass/storage-class_test.go

    			t.Errorf("Test %d, Expected %v, got %v", i+1, tt.wantSc, gotSc)
    			return
    		}
    		if tt.expectedError != nil && err.Error() != tt.expectedError.Error() {
    			t.Errorf("Test %d, Expected `%v`, got `%v`", i+1, tt.expectedError, err)
    		}
    	}
    }
    
    func TestValidateParity(t *testing.T) {
    	tests := []struct {
    		rrsParity     int
    		ssParity      int
    		success       bool
    		setDriveCount int
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. cmd/erasure-decode.go

    			break
    		}
    
    		var err error
    		bufs, err = reader.Read(bufs)
    		if len(bufs) > 0 {
    			// Set only if there are be enough data for reconstruction.
    			// and only for expected errors, also set once.
    			if errors.Is(err, errFileNotFound) || errors.Is(err, errFileCorrupt) {
    				if derr == nil {
    					derr = err
    				}
    			}
    		} else if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. cmd/ftp-server-driver.go

    	stopFn := globalFtpMetrics.log(c, username)
    	defer stopFn(0, err)
    
    	if globalIAMSys.LDAPConfig.Enabled() {
    		sa, _, err := globalIAMSys.getServiceAccount(context.Background(), username)
    		if err != nil && !errors.Is(err, errNoSuchServiceAccount) {
    			return false, err
    		}
    		if errors.Is(err, errNoSuchServiceAccount) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. cmd/erasure-healing.go

    }
    
    var errLegacyXLMeta = errors.New("legacy XL meta")
    
    var errOutdatedXLMeta = errors.New("outdated XL meta")
    
    var errPartMissingOrCorrupt = errors.New("part missing or corrupt")
    
    // Only heal on disks where we are sure that healing is needed. We can expand
    // this list as and when we figure out more errors can be added to this list safely.
    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. tests/update_many2many_test.go

    	}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user3 User
    	DB.Preload("Languages").Preload("Friends").Find(&user3, "id = ?", user.ID)
    	CheckUser(t, user2, user3)
    
    	if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user4 User
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. internal/event/target/kafka.go

    // Validate KafkaArgs fields
    func (k KafkaArgs) Validate() error {
    	if !k.Enable {
    		return nil
    	}
    	if len(k.Brokers) == 0 {
    		return errors.New("no broker address found")
    	}
    	for _, b := range k.Brokers {
    		if _, err := xnet.ParseHost(b.String()); err != nil {
    			return err
    		}
    	}
    	if k.QueueDir != "" {
    		if !filepath.IsAbs(k.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. tests/test_additional_responses_response_class.py

                        "title": "JsonApiError",
                        "required": ["errors"],
                        "type": "object",
                        "properties": {
                            "errors": {
                                "title": "Errors",
                                "type": "array",
                                "items": {"$ref": "#/components/schemas/Error"},
                            }
                        },
                    },
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. src/bytes/reader.go

    func (r *Reader) UnreadRune() error {
    	if r.i <= 0 {
    		return errors.New("bytes.Reader.UnreadRune: at beginning of slice")
    	}
    	if r.prevRune < 0 {
    		return errors.New("bytes.Reader.UnreadRune: previous operation was not ReadRune")
    	}
    	r.i = int64(r.prevRune)
    	r.prevRune = -1
    	return nil
    }
    
    // Seek implements the [io.Seeker] interface.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jul 16 18:17:37 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top