Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 1,989 for error_1 (0.08 sec)

  1. cmd/admin-handlers-pools.go

    package cmd
    
    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"net/http"
    	"strconv"
    	"strings"
    
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v3/env"
    	"github.com/minio/pkg/v3/policy"
    )
    
    var (
    	errRebalanceDecommissionAlreadyRunning = errors.New("Rebalance cannot be started, decommission is already in progress")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 00:22:30 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    			t.Fatalf("MinIO %s: Failed parsing response body: <ERROR> %v", instanceType, err)
    		}
    
    		actualError := &APIErrorResponse{}
    		if err = xml.Unmarshal(actualContent, actualError); err != nil {
    			t.Errorf("MinIO %s: error response failed to parse error XML", instanceType)
    		}
    
    		if actualError.BucketName != bucketName {
    			t.Errorf("MinIO %s: error response bucket name differs from expected value", instanceType)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  3. cmd/batch-job-common-types.go

    // BatchJobYamlErr can be used to return yaml validation errors with line,
    // column information guiding user to fix syntax errors
    type BatchJobYamlErr struct {
    	line, col int
    	msg       string
    }
    
    // message returns the error message excluding line, col information.
    // Intended to be used in unit tests.
    func (b BatchJobYamlErr) message() string {
    	return b.msg
    }
    
    // Error implements Error interface
    func (b BatchJobYamlErr) Error() string {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. cmd/erasure-sets_test.go

    		if sipHashElement := hashKey("SIPMOD", testCase.objectName, 200, testUUID); sipHashElement != testCase.sipHash {
    			t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.sipHash, sipHashElement)
    		}
    	}
    
    	if sipHashElement := hashKey("SIPMOD", "This will fail", -1, testUUID); sipHashElement != -1 {
    		t.Errorf("Test: Expected \"-1\" but got \"%v\"", sipHashElement)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/tag.go

    }
    
    var (
    	errInvalidTagKey   = Errorf("The TagKey you have provided is invalid")
    	errInvalidTagValue = Errorf("The TagValue you have provided is invalid")
    
    	errDuplicatedXMLTag = Errorf("duplicated XML Tag")
    	errUnknownXMLTag    = Errorf("unknown XML Tag")
    )
    
    // UnmarshalXML - decodes XML data.
    func (tag *Tag) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    	var keyAlreadyParsed, valueAlreadyParsed bool
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. internal/s3select/simdj/record.go

    	}
    	if n != len(b) {
    		return io.ErrShortWrite
    	}
    	return nil
    }
    
    // Replace the underlying buffer of json data.
    func (r *Record) Replace(k interface{}) error {
    	v, ok := k.(simdjson.Object)
    	if !ok {
    		return fmt.Errorf("cannot replace internal data in simd json record with type %T", k)
    	}
    	r.object = v
    	return nil
    }
    
    // NewRecord - creates new empty JSON record.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. schema/constraint_test.go

    	for k, result := range results {
    		v, ok := checks[k]
    		if !ok {
    			t.Errorf("Failed to found check %v from parsed checks %+v", k, checks)
    		}
    
    		for _, name := range []string{"Name", "Constraint"} {
    			if reflect.ValueOf(result).FieldByName(name).Interface() != reflect.ValueOf(v).FieldByName(name).Interface() {
    				t.Errorf(
    					"check %v %v should equal, expects %v, got %v",
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. tests/joins_table_test.go

    	if err := DB.Select(clause.Associations).Delete(&person2).Error; err != nil {
    		t.Fatalf("failed to delete person, got error: %v", err)
    	}
    
    	if count := DB.Unscoped().Model(&person2).Association("Addresses").Count(); count != 2 {
    		t.Errorf("person's addresses expects 2, got %v", count)
    	}
    
    	if count := DB.Model(&person2).Association("Addresses").Count(); count != 0 {
    		t.Errorf("person's addresses expects 2, got %v", count)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Sep 10 13:46:18 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  9. schema/field_test.go

    		"age":        20,
    		"birthday":   time.Now(),
    		"active":     f,
    	}
    
    	for k, v := range newValues {
    		if err := userSchema.FieldsByDBName[k].Set(context.Background(), reflectValue, v); err != nil {
    			t.Errorf("no error should happen when assign value to field %v, but got %v", k, err)
    		}
    	}
    	newValues["updated_at"] = time.Time{}
    	newValues["active"] = false
    	checkField(t, userSchema, reflectValue, newValues)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 19 09:02:53 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  10. schema/serializer.go

    	default:
    		err = fmt.Errorf("invalid field type %#v for UnixSecondSerializer, only int, uint supported", v)
    	}
    	return
    }
    
    // GobSerializer gob serializer
    type GobSerializer struct{}
    
    // Scan implements serializer interface
    func (GobSerializer) Scan(ctx context.Context, field *Field, dst reflect.Value, dbValue interface{}) (err error) {
    	fieldValue := reflect.New(field.FieldType)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 08:45:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top