Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 206 for wait (0.14 sec)

  1. helm/minio/templates/_helper_create_bucket.txt

    MC_CONFIG_DIR="{{ .Values.configPathmc }}"
    MC="/usr/bin/mc --insecure --config-dir ${MC_CONFIG_DIR}"
    {{- else }}
    MC="/usr/bin/mc --insecure"
    {{- end }}
    
    # connectToMinio
    # Use a check-sleep-check loop to wait for MinIO service to be available
    connectToMinio() {
    	SCHEME=$1
    	ATTEMPTS=0
    	LIMIT=29 # Allow 30 attempts
    	set -e   # fail if we can't read the keys.
    	ACCESS=$(cat /config/rootUser)
    	SECRET=$(cat /config/rootPassword)
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jan 12 18:18:57 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. internal/cachevalue/cache.go

    		if t.updating.TryLock() {
    			go func() {
    				defer t.updating.Unlock()
    				t.update()
    			}()
    		}
    		return v.v, v.e
    	}
    
    	// Get lock. Either we get it or we wait for it.
    	t.updating.Lock()
    	if time.Since(time.UnixMilli(t.lastUpdateMs.Load())) < ttl {
    		// There is a new value, release lock and return it.
    		v = t.valErr.Load()
    		t.updating.Unlock()
    		return v.v, v.e
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 16:00:42 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    		t.Log("Roundtrip:", time.Since(start))
    		if len(resp) != 0 {
    			t.Errorf("want nil, got %q", string(resp))
    		}
    		if err != RemoteErr(testPayload) {
    			t.Errorf("want error %v(%T), got %v(%T)", RemoteErr(testPayload), RemoteErr(testPayload), err, err)
    		}
    		t.Log("Roundtrip:", time.Since(start))
    	})
    
    	t.Run("localToRemoteHuge", func(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  4. cmd/dynamic-timeouts_test.go

    					timeout.LogSuccess(time.Duration(float64(time.Second) * rng.Float64()))
    				}
    				to := timeout.Timeout()
    				if to < time.Millisecond || to > time.Second {
    					panic(to)
    				}
    			}
    		}()
    	}
    	wg.Wait()
    }
    
    func TestDynamicTimeoutHitMinimum(t *testing.T) {
    	const minimum = 30 * time.Second
    	timeout := newDynamicTimeout(time.Minute, minimum)
    
    	initial := timeout.Timeout()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  5. cmd/erasure-metadata.go

    			fi.Erasure.Index = index + 1
    			if fi.IsValid() {
    				return disks[index].WriteMetadata(ctx, origbucket, bucket, prefix, fi)
    			}
    			return errFileCorrupt
    		}, index)
    	}
    
    	// Wait for all the routines.
    	mErrs := g.Wait()
    
    	err := reduceWriteQuorumErrs(ctx, mErrs, objectOpIgnoredErrs, quorum)
    	return evalDisks(disks, mErrs), err
    }
    
    func commonParity(parities []int, defaultParityCount int) int {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  6. docs/debugging/s3-verify/main.go

    			targetFailed = true
    		} else if tgtSize != tgtCtnt.Size {
    			fmt.Printf("unreadable on target - size differs upon read: %s\n", tgtCtnt.Key)
    			targetFailed = true
    		}
    	}()
    	wg.Wait()
    
    	sobj.Close()
    	tobj.Close()
    
    	if !sourceFailed && !targetFailed {
    		ssum := srcSha256.Sum(nil)
    		tsum := tgtSha256.Sum(nil)
    		allgood = bytes.Equal(ssum, tsum)
    		if !allgood {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jun 22 15:12:47 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  7. cmd/peer-rest-server.go

    	if traceOpts.TraceTypes().Contains(madmin.TraceBootstrap) {
    		go globalBootstrapTracer.Publish(ctx, globalTrace)
    	}
    
    	// Wait for remote to cancel and SubscribeJSON to exit.
    	wg.Wait()
    	return nil
    }
    
    func (s *peerRESTServer) BackgroundHealStatusHandler(_ *grid.MSS) (*grid.JSON[madmin.BgHealState], *grid.RemoteErr) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  8. internal/lock/lock_windows.go

    }
    
    // TryLockedOpenFile - tries a new write lock, functionality
    // it is similar to LockedOpenFile with with syscall.LOCK_EX
    // mode but along with syscall.LOCK_NB such that the function
    // doesn't wait forever but instead returns if it cannot
    // acquire a write lock.
    func TryLockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) {
    	var lockType uint32 = lockFileFailImmediately | lockFileExclusiveLock
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    		Secure: s.secure,
    	})
    	if err != nil {
    		c.Fatalf("Err creating user admin client: %v", err)
    	}
    	userAdmClient.SetCustomTransport(s.TestSuiteCommon.client.Transport)
    
    	time.Sleep(2 * time.Second) // wait for listbuckets cache to be invalidated
    
    	accInfo, err := userAdmClient.AccountInfo(ctx, madmin.AccountOpts{})
    	if err != nil {
    		c.Fatalf("root user STS should be able to get account info: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  10. cmd/server_test.go

    			c.Assert(err, nil)
    
    			response, err := s.client.Do(request)
    			if err != nil {
    				c.Errorf("Put bucket Failed: <ERROR> %s", err)
    				return
    			}
    			defer response.Body.Close()
    		}()
    	}
    	wg.Wait()
    
    	bucketName = getRandomBucketName()
    	// Block 2: testing for correctness of the functionality
    	// HTTP request to create the bucket.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top