Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,989 for error_0 (0.09 sec)

  1. internal/event/target/nsq.go

    }
    
    // Validate NSQArgs fields
    func (n NSQArgs) Validate() error {
    	if !n.Enable {
    		return nil
    	}
    
    	if n.NSQDAddress.IsEmpty() {
    		return errors.New("empty nsqdAddress")
    	}
    
    	if n.Topic == "" {
    		return errors.New("empty topic")
    	}
    	if n.QueueDir != "" {
    		if !filepath.IsAbs(n.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    -----------------
    failure for all cases.
    
    // Pseudo code for managing `format.json`.
    
    // Generic checks.
    if (no quorum) return error
    if (any disk is corrupt) return error // Always error
    if (jbod inconsistent) return error // Always error.
    if (disks not recognized) // Always error.
    
    // Specific checks.
    if (all disks online)
      if (all disks return format.json)
         if (jbod consistent)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (0)
  3. internal/config/identity/ldap/ldap.go

    	}
    
    	// Check that DN exists in the LDAP directory.
    	searchRes, err := xldap.LookupDN(conn, dn, attrs)
    	if err != nil {
    		return nil, false, fmt.Errorf("Error looking up DN %s: %w", dn, err)
    	}
    	if searchRes == nil {
    		return nil, false, nil
    	}
    
    	// This will not return an error as the argument is validated to be a DN.
    	pdn, _ := ldap.ParseDN(searchRes.NormDN)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. internal/logger/config.go

    	EnvKafkaQueueSize     = "MINIO_AUDIT_KAFKA_QUEUE_SIZE"
    
    	loggerTargetNamePrefix = "logger-"
    	auditTargetNamePrefix  = "audit-"
    )
    
    var (
    	errInvalidQueueSize = errors.New("invalid queue_size value")
    	errInvalidBatchSize = errors.New("invalid batch_size value")
    )
    
    // Default KVS for loggerHTTP and loggerAuditHTTP
    var (
    	DefaultLoggerWebhookKVS = config.KVS{
    		config.KV{
    			Key:   config.Enable,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 20 16:02:50 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. internal/disk/stat_netbsd.go

    	if info.Free > info.Total {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'", info.Free, info.Total, path)
    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return IOStats{}, errors.New("operation unsupported")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. tests/associations_test.go

    		Create(coupon).Error
    	if err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    
    	if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    		t.Errorf("Failed to query saved coupon")
    	}
    
    	if DB.First(&CouponProduct{}, "coupon_id = ? AND product_id = ?", coupon.ID, "full-save-association-product1").Error != nil {
    		t.Errorf("Failed to query saved association")
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  7. fastapi/dependencies/utils.py

            else:
                return deepcopy(field.default), []
        v_, errors_ = field.validate(value, values, loc=loc)
        if isinstance(errors_, ErrorWrapper):
            return None, [errors_]
        elif isinstance(errors_, list):
            new_errors = _regenerate_error_with_loc(errors=errors_, loc_prefix=())
            return None, new_errors
        else:
            return v_, []
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  8. internal/disk/stat_linux_32bit.go

    		Ffree:  s.Ffree,
    		FSType: getFSType(s.Type),
    	}
    	// Check for overflows.
    	// https://github.com/minio/minio/issues/8035
    	// XFS can show wrong values at times error out
    	// in such scenarios.
    	if info.Free > info.Total {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'", info.Free, info.Total, path)
    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. cmd/common-main.go

    		logger.Fatal(err, "Failed to connect to KMS")
    	}
    
    	if _, err = KMS.GenerateKey(GlobalContext, &kms.GenerateKeyRequest{}); errors.Is(err, kms.ErrKeyNotFound) {
    		err = KMS.CreateKey(GlobalContext, &kms.CreateKeyRequest{Name: KMS.DefaultKey})
    	}
    	if err != nil && !errors.Is(err, kms.ErrKeyExists) && !errors.Is(err, kms.ErrPermission) {
    		logger.Fatal(err, "Failed to connect to KMS")
    	}
    	GlobalKMS = KMS
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  10. cmd/batch-handlers.go

    	}
    	if len(data) <= 4 {
    		return fmt.Errorf("%s: no data", ri.JobType)
    	}
    	// Read header
    	switch binary.LittleEndian.Uint16(data[0:2]) {
    	case format:
    	default:
    		return fmt.Errorf("%s: unknown format: %d", ri.JobType, binary.LittleEndian.Uint16(data[0:2]))
    	}
    	switch binary.LittleEndian.Uint16(data[2:4]) {
    	case version:
    	default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
Back to top