Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for recovered (0.42 sec)

  1. src/database/sql/sql_test.go

    	db, err := Open("test", fakeDBName)
    	if err != nil {
    		t.Fatalf("Open: %v", err)
    	}
    	expectPanic := func(name string, f func()) {
    		defer func() {
    			err := recover()
    			if err == nil {
    				t.Fatalf("%s did not panic", name)
    			}
    		}()
    		f()
    	}
    
    	expectPanic("Exec Exec", func() { db.Exec("PANIC|Exec|WIPE") })
    	exec(t, db, "WIPE") // check not deadlocked
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  2. pkg/volume/util/operationexecutor/operation_generator.go

    		}
    	} else {
    		// Get attacher plugin and the volumeName by splitting the volume unique name in case
    		// there's no VolumeSpec: this happens only on attach/detach controller crash recovery
    		// when a pod has been deleted during the controller downtime
    		pluginName, volumeName, err = util.SplitUniqueName(volumeToDetach.VolumeName)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	_, err = registry.Get(testContext, podA.Name, &metav1.GetOptions{})
    	if !errors.IsNotFound(err) {
    		t.Errorf("Unexpected error: %v", err)
    	}
    }
    
    // TestGracefulStoreCanDeleteIfExistingGracePeriodZero tests recovery from
    // race condition where the graceful delete is unable to complete
    // in prior operation, but the pod remains with deletion timestamp
    // and grace period set to 0.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  4. src/net/http/server.go

    // provided Request.
    //
    // If ServeHTTP panics, the server (the caller of ServeHTTP) assumes
    // that the effect of the panic was isolated to the active request.
    // It recovers the panic, logs a stack trace to the server error log,
    // and either closes the network connection or sends an HTTP/2
    // RST_STREAM, depending on the HTTP protocol. To abort a handler so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  5. pkg/controller/garbagecollector/garbagecollector_test.go

    	// Wait until sync discovers the change
    	time.Sleep(1 * time.Second)
    	assertMonitors(t, gc, "pods", "secrets")
    
    	// Put the resources back to normal and ensure garbage collector sync recovers
    	fakeDiscoveryClient.setPreferredResources(serverResources, nil)
    
    	err = expectSyncNotBlocked(fakeDiscoveryClient, &gc.workerLock)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  6. src/crypto/sha512/sha512_test.go

    	},
    }
    
    func safeSum(h hash.Hash) (sum []byte, err error) {
    	defer func() {
    		if r := recover(); r != nil {
    			err = fmt.Errorf("sum panic: %v", r)
    		}
    	}()
    
    	return h.Sum(nil), nil
    }
    
    func TestLargeHashes(t *testing.T) {
    	for i, test := range largeUnmarshalTests {
    
    		h := New()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:17:08 UTC 2023
    - 105.6K bytes
    - Viewed (0)
  7. cmd/site-replication.go

    		}
    		// In this case, it means at least one cluster was added
    		// successfully, we need to send a response to the client with
    		// some details - FIXME: the disks on this cluster would need to
    		// be cleaned to recover.
    		partial := madmin.ReplicateAddStatus{
    			Status:    madmin.ReplicateAddStatusPartial,
    			ErrDetail: peerAddErr.Error(),
    		}
    
    		return partial, nil
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
  8. pkg/printers/internalversion/printers_test.go

    			}
    			if len(rows) <= 0 {
    				t.Fatalf("expected to have at least one TableRow, but got: %d", len(rows))
    			}
    
    			func() {
    				defer func() {
    					if err := recover(); err != nil {
    						// Same as stdlib http server code. Manually allocate stack
    						// trace buffer size to prevent excessively large logs
    						const size = 64 << 10
    						buf := make([]byte, size)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  9. src/net/http/serve_test.go

    		}
    	}
    }
    
    // Issue 24297
    func TestServeMuxHandleFuncWithNilHandler(t *testing.T) {
    	setParallel(t)
    	defer func() {
    		if err := recover(); err == nil {
    			t.Error("expected call to mux.HandleFunc to panic")
    		}
    	}()
    	mux := NewServeMux()
    	mux.HandleFunc("/", nil)
    }
    
    var serveMuxTests2 = []struct {
    	method  string
    	host    string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  10. src/net/http/transport_test.go

    		t.Errorf("got=%v want=%q", err, want)
    	}
    
    	ln.Close()
    	<-done
    }
    
    func doFetchCheckPanic(tr *Transport, req *Request) (res *Response, err error, panicked bool) {
    	defer func() {
    		if r := recover(); r != nil {
    			panicked = true
    		}
    	}()
    	res, err = tr.RoundTrip(req)
    	return
    }
    
    // Issue 22330: do not allow the response body to be read when the status code
    // forbids a response body.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top