Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Cancellation (0.23 sec)

  1. cmd/post-policy-fan-out.go

    	KmsCtx   kms.Context
    	Checksum *hash.Checksum
    	MD5Hex   string
    }
    
    // fanOutPutObject takes an input source reader and fans out multiple PUT operations
    // based on the incoming fan-out request, a context cancellation by the caller
    // would ensure all fan-out operations are canceled.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. internal/grid/stream.go

    	// Channel will be closed after error or when remote closes.
    	// All responses *must* be read by the caller until either an error is returned or the channel is closed.
    	// Canceling the context will cause the context cancellation error to be returned.
    	responses <-chan Response
    	cancel    context.CancelCauseFunc
    
    	// Requests sent to the server.
    	// If the handler is defined with 0 incoming capacity this will be nil.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 18:05:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. cmd/batch-expire.go

    				// persist in-memory state to disk after every 10secs.
    				batchLogIf(ctx, ri.updateAfter(ctx, api, 10*time.Second, job))
    
    			case <-ctx.Done():
    				// persist in-memory state immediately before exiting due to context cancellation.
    				batchLogIf(ctx, ri.updateAfter(ctx, api, 0, job))
    				return
    
    			case <-saverQuitCh:
    				// persist in-memory state immediately to disk.
    				batchLogIf(ctx, ri.updateAfter(ctx, api, 0, job))
    				return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  4. cni/test/install_cni.go

    		cp(wd+k8sSvcAcctSubDir+f, tempK8sSvcAcctDir+"/"+f, t)
    	}
    	t.Logf("Finished pre-populating working dirs")
    }
    
    // create an install server instance and run it, blocking until it gets terminated
    // via context cancellation
    func startInstallServer(ctx context.Context, serverConfig *config.Config, t *testing.T) {
    	readyFlag := &atomic.Value{}
    	installer := install.NewInstaller(&serverConfig.InstallConfig, readyFlag)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. internal/grid/handlers.go

    		return &r
    	}
    	return nil
    }
    
    type (
    	// SingleHandlerFn is handlers for one to one requests.
    	// A non-nil error value will be returned as RemoteErr(msg) to client.
    	// No client information or cancellation (deadline) is available.
    	// Include this in payload if needed.
    	// Payload should be recycled with PutByteBuffer if not needed after the call.
    	SingleHandlerFn func(payload []byte) ([]byte, *RemoteErr)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  6. cmd/common-main.go

    	select {
    	case <-ctx.Done():
    		return true
    	default:
    		return false
    	}
    }
    
    // bgContext returns a context that can be used for async operations.
    // Cancellation/timeouts are removed, so parent cancellations/timeout will
    // not propagate from parent.
    // Context values are preserved.
    // This can be used for goroutines that live beyond the parent context.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  7. cmd/erasure-metadata-utils_test.go

    		{
    			[]error{
    				errFileNotFound, errFileNotFound, errFileNotFound,
    				errFileNotFound, errFileNotFound, nil, nil, nil, nil, nil,
    			},
    			nil, nil,
    		},
    		// Checks if wrapped context cancellation errors are grouped as one.
    		{canceledErrs, nil, context.Canceled},
    	}
    	// Validates list of all the testcases for returning valid errors.
    	for i, testCase := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool.go

    	}()
    	go func() {
    		// Merge all entries from all disks.
    		// We leave quorum at 1, since entries are already resolved to have the desired quorum.
    		// mergeEntryChannels will close 'merged' channel upon completion or cancellation.
    		storageLogIf(ctx, mergeEntryChannels(ctx, entries, merged, 1))
    	}()
    
    	return nil
    }
    
    // HealObjectFn closure function heals the object.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  9. cmd/erasure-metadata-utils.go

    	errorCounts := make(map[error]int)
    	for _, err := range errs {
    		if IsErrIgnored(err, ignoredErrs...) {
    			continue
    		}
    		// Errors due to context cancellation may be wrapped - group them by context.Canceled.
    		if errors.Is(err, context.Canceled) {
    			errorCounts[context.Canceled]++
    			continue
    		}
    		errorCounts[err]++
    	}
    
    	max := 0
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  10. cmd/metacache-set.go

    }
    
    // listPathRaw will list a path on the provided drives.
    // See listPathRawOptions on how results are delivered.
    // Directories are always returned.
    // Cache will be bypassed.
    // Context cancellation will be respected but may take a while to effectuate.
    func listPathRaw(ctx context.Context, opts listPathRawOptions) (err error) {
    	disks := opts.disks
    	if len(disks) == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top