- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 130 for successes (0.1 sec)
-
src/main/java/jcifs/util/SimpleCircuitBreaker.java
if (current == State.HALF_OPEN) { int successes = halfOpenSuccesses.incrementAndGet(); if (successes >= successThreshold) { if (state.compareAndSet(State.HALF_OPEN, State.CLOSED)) { stateChangeTime.set(System.currentTimeMillis()); log.info("Circuit breaker {} closed after {} successful attempts", name, successes); } } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// First success should transition to HALF_OPEN String result = circuitBreaker.executeWithCircuitBreaker(() -> "success 0"); assertEquals("success 0", result, "Should execute in HALF_OPEN"); assertEquals(State.HALF_OPEN, circuitBreaker.getState(), "Should be in HALF_OPEN after first success"); // Need successThreshold (2) consecutive successes to close the circuit
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
cmd/tier_test.go
switch metric.Description.Name { case tierRequestsSuccess: succ += metric.Value case tierRequestsFailure: fail += metric.Value } } if int(succ) != expSuccess { t.Fatalf("Expected %d successes but got %f", expSuccess, succ) } if int(fail) != expFailure { t.Fatalf("Expected %d failures but got %f", expFailure, fail) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
if (currentState == State.HALF_OPEN) { int successes = successCount.incrementAndGet(); log.debug("[{}] Success in HALF_OPEN state ({}/{})", name, successes, successThreshold); if (successes >= successThreshold) { log.info("[{}] Circuit breaker closing after {} successful attempts", name, successes); transitionTo(State.CLOSED); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
// Next call should transition to HALF_OPEN String result = circuitBreaker.call(() -> "success"); assertEquals("success", result); assertEquals(SimpleCircuitBreaker.State.HALF_OPEN, circuitBreaker.getState()); } @Test @DisplayName("Test circuit closes after success threshold in HALF_OPEN") void testCircuitClosesAfterSuccessThreshold() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.34.md
- Added `started_user_namespaced_pods_total` and `started_user_namespaced_pods_errors_total` for tracking the successes and failures in creating pods if a user namespace was requested. ([#132902](https://github.com/kubernetes/kubernetes/pull/132902), [@haircommander](https://github.com/haircommander)) [SIG Node and Testing]
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Wed Aug 27 10:36:10 UTC 2025 - 292.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
int rid = 100; // Mock the behavior of sendrecv for MsrpcSamrOpenAlias doAnswer(invocation -> { MsrpcSamrOpenAlias rpc = invocation.getArgument(0); rpc.retval = 0; // Simulate success return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenAlias.class)); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java
import org.junit.jupiter.params.provider.CsvSource; @DisplayName("NbtException Tests") class NbtExceptionTest { @Test @DisplayName("getErrorString success returns SUCCESS") void testSuccess() { assertEquals("SUCCESS", NbtException.getErrorString(NbtException.SUCCESS, 0)); } @Test @DisplayName("getErrorString for name service error with known code") void testNameServiceKnown() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
cmd/postpolicyform_test.go
t.Run("", func(t *testing.T) { _, err := parsePostPolicyForm(strings.NewReader(testCase.policy)) if testCase.success && err != nil { t.Errorf("Expected success but failed with %s", err) } if !testCase.success && err == nil { t.Errorf("Expected failed but succeeded") } }) } } type formValues struct { http.Header } func newFormValues() formValues {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtException.java
*/ public class NbtException extends CIFSException { /** * */ private static final long serialVersionUID = 492638554095148960L; // error classes /** Success status code */ public static final int SUCCESS = 0; /** Name service error class */ public static final int ERR_NAM_SRVC = 0x01; /** Session service error class */ public static final int ERR_SSN_SRVC = 0x02;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0)