Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for HealBucket (0.08 sec)

  1. cmd/peer-s3-client.go

    func NewS3PeerSys(endpoints EndpointServerPools) *S3PeerSys {
    	return &S3PeerSys{
    		peerClients: newPeerS3Clients(endpoints),
    		poolsCount:  len(endpoints),
    	}
    }
    
    // HealBucket - heals buckets at node level
    func (sys *S3PeerSys) HealBucket(ctx context.Context, bucket string, opts madmin.HealOpts) (madmin.HealResultItem, error) {
    	g := errgroup.WithNErrs(len(sys.peerClients))
    
    	for idx, client := range sys.peerClients {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. cmd/global-heal.go

    	defer func() {
    		tracker.setObject("")
    		tracker.setBucket("")
    		healingLogIf(ctx, tracker.update(ctx))
    	}()
    
    	for _, bucket := range healBuckets {
    		if err := bgSeq.healBucket(objAPI, bucket, true); err != nil {
    			// Log bucket healing error if any, we shall retry again.
    			healingLogIf(ctx, err)
    		}
    	}
    
    	info, err := tracker.disk.DiskInfo(ctx, DiskInfoOptions{})
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. cmd/admin-heal-ops.go

    		return buckets[i].Created.After(buckets[j].Created)
    	})
    
    	for _, bucket := range buckets {
    		if err = h.healBucket(objAPI, bucket.Name, false); err != nil {
    			return err
    		}
    	}
    
    	return nil
    }
    
    // healBucket - traverses and heals given bucket
    func (h *healSequence) healBucket(objAPI ObjectLayer, bucket string, bucketsOnly bool) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  4. cmd/background-heal-ops.go

    			switch task.bucket {
    			case nopHeal:
    				err = errSkipFile
    			case SlashSeparator:
    				res, err = healDiskFormat(ctx, objAPI, task.opts)
    			default:
    				if task.object == "" {
    					res, err = objAPI.HealBucket(ctx, task.bucket, task.opts)
    				} else {
    					res, err = objAPI.HealObject(ctx, task.bucket, task.object, task.versionID, task.opts)
    				}
    			}
    
    			if task.respCh != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. cmd/mrf.go

    			// wait on timer per heal
    			wait := healSleeper.Timer(context.Background())
    
    			scan := madmin.HealNormalScan
    			if u.BitrotScan {
    				scan = madmin.HealDeepScan
    			}
    
    			if u.Object == "" {
    				healBucket(u.Bucket, scan)
    			} else {
    				if len(u.Versions) > 0 {
    					vers := len(u.Versions) / 16
    					if vers > 0 {
    						for i := 0; i < vers; i++ {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. cmd/bucket-metadata-sys.go

    			// Sleep and stagger to avoid blocked CPU and thundering
    			// herd upon start up sequence.
    			time.Sleep(25*time.Millisecond + time.Duration(rand.Int63n(int64(100*time.Millisecond))))
    
    			_, _ = sys.objAPI.HealBucket(ctx, buckets[index], madmin.HealOpts{Recreate: true})
    			meta, err := loadBucketMetadata(ctx, sys.objAPI, buckets[index])
    			if err != nil {
    				return err
    			}
    			bucketMetas[index] = meta
    			return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. cmd/object-api-interface.go

    	SetDriveCounts() []int                              // list of erasure stripe size for each pool in order.
    
    	// Healing operations.
    	HealFormat(ctx context.Context, dryRun bool) (madmin.HealResultItem, error)
    	HealBucket(ctx context.Context, bucket string, opts madmin.HealOpts) (madmin.HealResultItem, error)
    	HealObject(ctx context.Context, bucket, object, versionID string, opts madmin.HealOpts) (madmin.HealResultItem, error)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. cmd/erasure-healing_test.go

    	// created when the disk was down.
    	err = os.RemoveAll(path.Join(fsDirs[0], bucket))
    	if err != nil {
    		t.Fatal(err)
    	}
    	// This would create the bucket.
    	_, err = obj.HealBucket(ctx, bucket, madmin.HealOpts{
    		DryRun: false,
    		Remove: false,
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Stat the bucket to make sure that it was created.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		return r, errNoHealRequired
    	}
    
    	return r, nil
    }
    
    func (z *erasureServerPools) HealBucket(ctx context.Context, bucket string, opts madmin.HealOpts) (madmin.HealResultItem, error) {
    	// .metadata.bin healing is not needed here, it is automatically healed via read() call.
    	return z.s3Peer.HealBucket(ctx, bucket, opts)
    }
    
    // Walk a bucket, optionally prefix recursively, until we have returned
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom.go

    	if z.SinglePool() {
    		return errInvalidArgument
    	}
    
    	decomBuckets, err := z.getBucketsToDecommission(ctx)
    	if err != nil {
    		return err
    	}
    
    	for _, bucket := range decomBuckets {
    		z.HealBucket(ctx, bucket.Name, madmin.HealOpts{})
    	}
    
    	// Create .minio.sys/config, .minio.sys/buckets paths if missing,
    	// this code is present to avoid any missing meta buckets on other
    	// pools.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top