- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for RetryCount (0.2 sec)
-
testing/internal-testing/src/test/groovy/org/gradle/testing/internal/util/RetryUtilTest.groovy
def "exceed retry count of #retryCount throws last exception"() { given: def closure = Mock(Closure) when: RetryUtil.retry(retryCount, closure) then: def exception = thrown(Exception) exception.message == "Exception for retry #${retryCount - 1}" interaction { retryCount.times { retryIndex -> 1 * closure.call() >> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2K bytes - Viewed (0) -
platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/RetryHttpInitializerWrapperTest.groovy
def retryCount = 0 when: httpResponse.statusCode = 500 storage.objects().list("test").executeUnparsed() then: 4 * credential.intercept(*_) 3 * credential.handleResponse(*_) >> { args -> retryCount++ if (retryCount > 2) { httpResponse.statusCode = 200
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 3.4K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/testing/internal/util/RetryUtil.groovy
private RetryUtil() {} static int retry(int retries = 3, int waitMsBetweenRetries = 0, Closure closure) { int retryCount = 0 Throwable lastException = null while (retryCount++ < retries) { try { closure.call() return retryCount } catch (Throwable e) { lastException = e Thread.sleep(waitMsBetweenRetries)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.2K bytes - Viewed (0) -
pkg/envoy/agent.go
log.Errorf(err.Error()) retryCount++ // Max retry 5 times if retryCount > 4 { a.abortCh <- errAbort log.Warnf("Graceful termination logic ended prematurely, error while obtaining downstream_cx_active stat (Max retry %d exceeded)", retryCount) break graceful_loop } log.Warnf("Retrying (%d attempt) to obtain active connections...", retryCount) continue graceful_loop }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 24 16:04:22 UTC 2024 - 9K bytes - Viewed (0) -
fess-crawler-es/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 19.8K bytes - Viewed (0) -
cmd/notification.go
Host: addr, } retryCount := g.retryCount for i := 0; i < retryCount; i++ { g.errs[index].Err = nil if err := f(); err != nil { g.errs[index].Err = err if contextCanceled(ctx) { // context already canceled no retries. retryCount = 0 } // Last iteration log the error. if i == retryCount-1 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 44.9K bytes - Viewed (0) -
pkg/kube/controllers/queue.go
defer q.queue.Done(key) err := q.workFn(key) if err != nil { retryCount := q.queue.NumRequeues(key) + 1 if retryCount < q.maxAttempts { q.log.Errorf("error handling %v, retrying (retry count: %d): %v", formatKey(key), retryCount, err) q.queue.AddRateLimited(key) // Return early, so we do not call Forget(), allowing the rate limiting to backoff return true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 6.3K bytes - Viewed (0) -
cmd/bucket-replication-utils.go
// MRFReplicateEntry mrf entry to save to disk type MRFReplicateEntry struct { Bucket string `json:"bucket" msg:"b"` Object string `json:"object" msg:"o"` versionID string `json:"-"` RetryCount int `json:"retryCount" msg:"rc"` sz int64 `json:"-"` } // MRFReplicateEntries has the map of MRF entries to save to disk type MRFReplicateEntries struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 26.3K bytes - Viewed (0) -
cmd/bucket-replication-utils_gen.go
if err != nil { err = msgp.WrapError(err, "Entries", za0001, "Object") return } case "rc": za0002.RetryCount, err = dc.ReadInt() if err != nil { err = msgp.WrapError(err, "Entries", za0001, "RetryCount") return } default: err = dc.Skip() if err != nil { err = msgp.WrapError(err, "Entries", za0001) return
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 61.1K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/SocketConnection.java
} @SuppressWarnings("ThreadPriorityCheck") private int writeWithNonBlockingRetry() throws IOException { int count = 0; int retryCount = 0; while (count == 0 && retryCount++ < RETRIES_WHEN_BUFFER_FULL) { count = socket.write(buffer); if (count < 0) { throw new EOFException();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 11.8K bytes - Viewed (0)