Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 251 for catch (0.15 sec)

  1. docs/bucket/versioning/versioning-tests.sh

    	set -x
    fi
    
    trap 'catch $LINENO' ERR
    
    # shellcheck disable=SC2120
    catch() {
    	if [ $# -ne 0 ]; then
    		echo "error on line $1"
    		echo "server logs ========="
    		cat "/tmp/sitea_1.log"
    		echo "==========================="
    		cat "/tmp/sitea_2.log"
    	fi
    
    	echo "Cleaning up instances of MinIO"
    	pkill minio
    	pkill -9 minio
    	rm -rf /tmp/multisitea
    }
    
    catch
    
    set -e
    export MINIO_CI_CD=1
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 09:50:52 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  2. cmd/routers.go

    var globalMiddlewares = []mux.MiddlewareFunc{
    	// set x-amz-request-id header and others
    	addCustomHeadersMiddleware,
    	// The generic tracer needs to be the first middleware to catch all requests
    	// returned early by any other middleware (but after the middleware that
    	// sets the amz request id).
    	httpTracerMiddleware,
    	// Auth middleware verifies incoming authorization headers and routes them
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  3. docs/bucket/replication/delete-replication.sh

    	set -x
    fi
    
    trap 'catch $LINENO' ERR
    
    # shellcheck disable=SC2120
    catch() {
    	if [ $# -ne 0 ]; then
    		echo "error on line $1"
    		echo "dc1 server logs ========="
    		cat /tmp/dc1.log
    		echo "dc2 server logs ========="
    		cat /tmp/dc2.log
    	fi
    
    	echo "Cleaning up instances of MinIO"
    	set +e
    	pkill minio
    	pkill mc
    	rm -rf /tmp/xl/
    }
    
    catch
    
    set -e
    export MINIO_CI_CD=1
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  4. cmd/sftp-server-driver.go

    	if err != nil {
    		return nil, err
    	}
    
    	_, err = obj.Stat()
    	if err != nil {
    		return nil, err
    	}
    
    	return obj, nil
    }
    
    // TransferError will catch network errors during transfer.
    // When TransferError() is called Close() will also
    // be called, so we do not need to Wait() here.
    func (w *writerAt) TransferError(err error) {
    	_ = w.w.CloseWithError(err)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  5. docs/bucket/versioning/README.md

          minioClient.enableVersioning(EnableVersioningArgs.builder().bucket("my-bucketname").build());
    
          System.out.println("Bucket versioning is enabled successfully");
    
        } catch (MinioException e) {
          System.out.println("Error occurred: " + e);
        }
      }
    }
    ```
    
    ### isVersioningEnabled() API
    
    ```
    public class IsVersioningEnabled {
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu May 04 21:43:52 GMT 2023
    - 11.9K bytes
    - Viewed (1)
  6. internal/http/dial_linux.go

    			if opts.Interface != "" {
    				if h, _, err := net.SplitHostPort(address); err == nil {
    					address = h
    				}
    				// Create socket on specific vrf device.
    				// To catch all kinds of special cases this filters specifically for loopback networks.
    				if ip := net.ParseIP(address); ip != nil && !ip.IsLoopback() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Jun 07 16:53:05 GMT 2023
    - 4.4K bytes
    - Viewed (3)
  7. cmd/batch-handlers.go

    					continue
    				}
    
    				batch = append(batch, obj)
    
    				if len(batch) < *r.Source.Snowball.Batch {
    					continue
    				}
    				writeFn(batch)
    				batch = batch[:0]
    			}
    			writeFn(batch)
    			xioutil.SafeClose(slowCh)
    		}()
    	} else {
    		slowCh = walkCh
    	}
    
    	workerSize, err := strconv.Atoi(env.Get("_MINIO_BATCH_REPLICATION_WORKERS", strconv.Itoa(runtime.GOMAXPROCS(0)/2)))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 14:11:38 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  8. cmd/erasure-coding.go

    // erasureSelfTest performs a self-test to ensure that erasure
    // algorithms compute expected erasure codes. If any algorithm
    // produces an incorrect value it fails with a hard error.
    //
    // erasureSelfTest tries to catch any issue in the erasure implementation
    // early instead of silently corrupting data.
    func erasureSelfTest() {
    	// Approx runtime ~1ms
    	var testConfigs [][2]uint8
    	for total := uint8(4); total < 16; total++ {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  9. internal/store/batch_test.go

    	}
    	if !batch.IsFull() {
    		t.Fatal("Expected batch.IsFull to be true but got false")
    	}
    	batchLen := batch.Len()
    	if batchLen != int(limit) {
    		t.Fatalf("expected batch length to be %v but got %v", limit, batchLen)
    	}
    	keys, items, err := batch.GetAll()
    	if err != nil {
    		t.Fatalf("unable to get the items from the batch; %v", err)
    	}
    	if len(items) != int(limit) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  10. cmd/batch-replicate.go

    	return t == BatchJobReplicateResourceMinIO
    }
    
    // Different types of batch jobs..
    const (
    	BatchJobReplicateResourceMinIO BatchJobReplicateResourceType = "minio"
    	BatchJobReplicateResourceS3    BatchJobReplicateResourceType = "s3"
    
    	// add future targets
    )
    
    // BatchJobReplicateCredentials access credentials for batch replication it may
    // be either for target or source.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Nov 22 18:51:46 GMT 2023
    - 6.3K bytes
    - Viewed (0)
Back to top