Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 71 for Sleep (0.16 sec)

  1. cmd/storage-rest-server.go

    				return true
    			}
    
    			if createStorage(server) {
    				continue
    			}
    
    			// Start async goroutine to create storage.
    			go func(server *storageRESTServer) {
    				for {
    					time.Sleep(3 * time.Second)
    					if createStorage(server) {
    						return
    					}
    				}
    			}(server)
    
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	for _, pool := range pools.serverPools {
    		for _, sets := range pool.erasureDisks {
    			for _, s := range sets {
    				if !s.IsLocal() {
    					for {
    						if s.IsOnline() {
    							break
    						}
    						time.Sleep(100 * time.Millisecond)
    						if time.Since(t) > 10*time.Second {
    							return nil, nil, errors.New("timeout waiting for disk to come online")
    						}
    					}
    				}
    			}
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    		duration := time.Duration(r.Float64() * float64(time.Minute))
    		if duration < time.Second {
    			// Make sure to sleep at least a second to avoid high CPU ticks.
    			duration = time.Second
    		}
    		time.Sleep(duration)
    	}
    	c.RLock()
    	defer c.RUnlock()
    	if c.enabled {
    		logger.Info("Cluster replication initialized")
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  4. istioctl/pkg/proxyconfig/proxyconfig_test.go

    			wantException:  true,
    		},
    		{ // supplying type that doesn't select pods should fail
    			args:           strings.Split("listeners serviceaccount/sleep", " "),
    			expectedString: `"serviceaccount/sleep" does not refer to a pod`,
    			wantException:  true,
    		},
    		{ // supplying valid pod name retrieves Envoy config (fails because we don't check in Envoy config unit tests)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. internal/event/targetlist_test.go

    func (target ExampleTarget) Store() TargetStore {
    	return nil
    }
    
    func (target ExampleTarget) send(eventData Event) error {
    	b := make([]byte, 1)
    	if _, err := rand.Read(b); err != nil {
    		panic(err)
    	}
    
    	time.Sleep(time.Duration(b[0]) * time.Millisecond)
    
    	if target.sendErr {
    		return errors.New("send error")
    	}
    
    	return nil
    }
    
    // SendFromStore - interface compatible method does no-op.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. internal/deadlineconn/deadlineconn_test.go

    		}
    		received := string(b)
    		if received != "message one\n" {
    			t.Errorf(`server: expected: "message one\n", got: %v`, received)
    			return
    		}
    
    		// Wait for more than read timeout to simulate processing.
    		time.Sleep(3 * time.Second)
    
    		_, terr = deadlineconn.Read(b)
    		if terr != nil {
    			t.Errorf("failed to read from client. %v", terr)
    			return
    		}
    		received = string(b)
    		if received != "message two\n" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Nov 05 18:09:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  7. cmd/background-heal-ops.go

    		return
    	}
    
    	const waitTick = 100 * time.Millisecond
    
    	tmpMaxWait := maxWait
    
    	for currentIO() >= maxIO {
    		if tmpMaxWait > 0 {
    			if tmpMaxWait < waitTick {
    				time.Sleep(tmpMaxWait)
    				return
    			}
    			time.Sleep(waitTick)
    			tmpMaxWait -= waitTick
    		}
    		if tmpMaxWait <= 0 {
    			return
    		}
    	}
    }
    
    func currentHTTPIO() int {
    	httpServer := newHTTPServerFn()
    	if httpServer == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. cmd/bucket-metadata-sys.go

    	g := errgroup.WithNErrs(len(buckets))
    	bucketMetas := make([]BucketMetadata, len(buckets))
    	for index := range buckets {
    		index := index
    		g.Go(func() error {
    			// Sleep and stagger to avoid blocked CPU and thundering
    			// herd upon start up sequence.
    			time.Sleep(25*time.Millisecond + time.Duration(rand.Int63n(int64(100*time.Millisecond))))
    
    			_, _ = sys.objAPI.HealBucket(ctx, buckets[index].Name, madmin.HealOpts{Recreate: true})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  9. misc/ios/go_ios_exec.go

    			"-i", appdir,
    		))
    		if out, err := cmd.CombinedOutput(); err != nil {
    			// Sometimes, installing the app fails for some reason.
    			// Give the device a few seconds and try again.
    			if attempt < 5 {
    				time.Sleep(5 * time.Second)
    				attempt++
    				continue
    			}
    			os.Stderr.Write(out)
    			return fmt.Errorf("ideviceinstaller -i %q: %v (%d attempts)", appdir, err, attempt)
    		}
    		return nil
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  10. cmd/batch-handlers.go

    						humanize.Ordinal(attempts), res.UploadID, tgtBucket, tgtObject, aerr))
    				attempts++
    				time.Sleep(time.Second)
    			}
    		}
    	}()
    
    	var (
    		hr    *hash.Reader
    		pInfo PartInfo
    	)
    
    	for i := 0; i < partsCount; i++ {
    		gopts := miniogo.GetObjectOptions{
    			VersionID:  srcObjInfo.VersionID,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
Back to top