Search Options

Results per page
Sort
Preferred Languages
Advance

Results 481 - 490 of 1,955 for error_0 (0.06 sec)

  1. cmd/xl-storage-format-v2_gen_test.go

    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
    	}
    }
    
    func BenchmarkMarshalMsgxlMetaDataDirDecoder(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Nov 18 20:15:22 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  2. internal/config/scanner/scanner.go

    	case "slowest":
    		cfg.Delay, cfg.MaxWait, cfg.Cycle = 100, 15*time.Second, 30*time.Minute
    	default:
    		return cfg, fmt.Errorf("unknown '%s' value", speed)
    	}
    
    	return cfg, nil
    }
    
    func lookupDeprecatedScannerConfig(kvs config.KVS, cfg *Config) (err error) {
    	delay := env.Get(EnvDelayLegacy, "")
    	if delay == "" {
    		delay = env.Get(EnvDelay, kvs.GetWithDefault(Delay, DefaultKVS))
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. internal/s3select/jstream/scanner_test.go

    	failAfter int
    }
    
    func newMockReader(failAfter int, data byte) *mockReader {
    	return &mockReader{0, data, failAfter}
    }
    
    func (r *mockReader) Read(p []byte) (n int, err error) {
    	if r.pos >= r.failAfter {
    		return 0, fmt.Errorf("intentionally unexpected reader error")
    	}
    	r.pos++
    	p[0] = r.mockData
    	return 1, nil
    }
    
    func TestScannerFailure(t *testing.T) {
    	var (
    		i         int
    		failAfter = 900
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. cmd/net.go

    // extractHostPort - extracts host/port from many address formats
    // such as, ":9000", "localhost:9000", "http://localhost:9000/"
    func extractHostPort(hostAddr string) (string, string, error) {
    	var addr, scheme string
    
    	if hostAddr == "" {
    		return "", "", errors.New("unable to process empty address")
    	}
    
    	// Simplify the work of url.Parse() and always send a url with
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. cmd/erasure-healing-common_test.go

    	if len(filteredDisks) != len(erasureDisks) {
    		t.Errorf("Unexpected number of drives: %d", len(filteredDisks))
    	}
    
    	for diskIndex, disk := range filteredDisks {
    		if partNeedsHealing(dataErrsPerDisk[diskIndex]) {
    			t.Errorf("Unexpected error: %v", dataErrsPerDisk[diskIndex])
    		}
    
    		if disk == nil {
    			t.Errorf("Drive erroneously filtered, driveIndex: %d", diskIndex)
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. internal/grid/debug.go

    	server.Listener = listener
    	server.Start()
    	return server
    }
    
    func dummyRequestValidate(r *http.Request) error {
    	return nil
    }
    
    func dummyTokenValidate(token string) error {
    	if token == "debug" {
    		return nil
    	}
    	return fmt.Errorf("invalid token. want empty, got %s", token)
    }
    
    func dummyNewToken() string {
    	return "debug"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental.cc

        if (TF_GetCode(&s) != TF_Code::TF_OK) {
          tensorflow::CoordinationServiceError error;
          *error.mutable_source_task() = result.error_payload().source_task();
          TF_SetPayload(&s, tensorflow::CoordinationErrorPayloadKey().data(),
                        error.SerializeAsString().c_str());
        }
        *state_iter = std::move(s);
        ++state_iter;
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  8. cmd/speedtest.go

    					WriteThroughput: r.WriteThroughput,
    					Error: func() string {
    						if r.Error != nil {
    							return r.Error.Error()
    						}
    						return ""
    					}(),
    				}
    				results = append(results, result)
    			}
    			for _, inp := range ignoredPaths {
    				results = append(results, madmin.DrivePerf{
    					Path:  inp,
    					Error: errFaultyDisk.Error(),
    				})
    			}
    			return results
    		}(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon May 06 09:45:10 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. internal/s3select/jstream/decoder.go

    	*scanner
    	emitDepth     int
    	maxDepth      int
    	emitKV        bool
    	emitRecursive bool
    	objectAsKVS   bool
    
    	depth   int
    	scratch *scratch
    	metaCh  chan *MetaValue
    	err     error
    
    	// follow line position to add context to errors
    	lineNo    int
    	lineStart int64
    }
    
    // NewDecoder creates new Decoder to read JSON values at the provided
    // emitDepth from the provider io.Reader.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. cmd/mrf_gen_test.go

    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
    	}
    }
    
    func BenchmarkMarshalMsgPartialOperation(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top