Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for transitionComplete (0.27 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    	errLifecycleBucketLocked = Errorf("ExpiredObjectAllVersions element and DelMarkerExpiration action cannot be used on an object locked bucket")
    )
    
    const (
    	// TransitionComplete marks completed transition
    	TransitionComplete = "complete"
    	// TransitionPending - transition is yet to be attempted
    	TransitionPending = "pending"
    )
    
    // Action represents a delete action or other transition
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. cmd/xl-storage-free-version_test.go

    	fatalErr(xl.AddVersion(fi))
    	report()
    
    	// Add null version with tiered content
    	tierfi := fi
    	tierfi.VersionID = ""
    	fatalErr(xl.AddVersion(tierfi))
    	report()
    	tierfi.TransitionStatus = lifecycle.TransitionComplete
    	tierfi.TransitionedObjName = mustGetUUID()
    	tierfi.TransitionTier = "MINIOTIER-1"
    	var err error
    	_, err = xl.DeleteVersion(tierfi)
    	fatalErr(err)
    	report()
    
    	fvIDs := []string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-utils_test.go

    			t.Fatalf("%d: Failed to add version %v", i+1, err)
    		}
    
    		if i > 3 {
    			// Simulate transition of a version
    			transfi := fi
    			transfi.TransitionStatus = lifecycle.TransitionComplete
    			transfi.TransitionTier = "MINIO-TIER"
    			transfi.TransitionedObjName = mustGetUUID()
    			xl.DeleteVersion(transfi)
    
    			fi.SetTierFreeVersionID(mustGetUUID())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. cmd/xl-storage-free-version.go

    	if fi.SkipTierFreeVersion() {
    		return xlMetaV2Version{}, false
    	}
    	if status, ok := j.MetaSys[ReservedMetadataPrefixLower+TransitionStatus]; ok && bytes.Equal(status, []byte(lifecycle.TransitionComplete)) {
    		vID, err := uuid.Parse(fi.TierFreeVersionID())
    		if err != nil {
    			panic(fmt.Errorf("Invalid Tier Object delete marker versionId %s %v", fi.TierFreeVersionID(), err))
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. cmd/tier-sweeper.go

    // corresponding tier deletion journal entry and true. Otherwise returns empty
    // jentry value and false.
    func (os *objSweeper) shouldRemoveRemoteObject() (jentry, bool) {
    	if os.TransitionStatus != lifecycle.TransitionComplete {
    		return jentry{}, false
    	}
    
    	// 1. If bucket versioning is disabled, remove the remote object.
    	// 2. If bucket versioning is suspended and
    	//    a. version id is specified, remove its remote object.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Apr 17 05:09:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. cmd/bucket-lifecycle_test.go

    		{
    			// restore never initiated
    			meta:   map[string]string{},
    			remote: true,
    		},
    	}
    	for i, tc := range testCases {
    		// Set transition status to complete
    		fi.TransitionStatus = lifecycle.TransitionComplete
    		fi.Metadata = tc.meta
    		if got := fi.IsRemote(); got != tc.remote {
    			t.Fatalf("Test %d.a: expected %v got %v", i+1, tc.remote, got)
    		}
    		oi := fi.ToObjectInfo("bucket", "object", false)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2_test.go

    			dataDir:          d2,
    			shares:           3,
    			transitionStatus: lifecycle.TransitionComplete,
    		},
    		{ // transitioned object version with an ongoing restore-object request.
    			versionID:        mustGetUUID(),
    			dataDir:          d2,
    			shares:           3,
    			transitionStatus: lifecycle.TransitionComplete,
    			restoreObjStatus: ongoingRestoreObj().String(),
    		},
    		// The following versions are on-disk.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. cmd/bucket-lifecycle.go

    func (fi FileInfo) IsRemote() bool {
    	if fi.TransitionStatus != lifecycle.TransitionComplete {
    		return false
    	}
    	return !isRestoredObjectOnDisk(fi.Metadata)
    }
    
    // IsRemote returns true if this object version's contents are in its remote
    // tier.
    func (oi ObjectInfo) IsRemote() bool {
    	if oi.TransitionedObject.Status != lifecycle.TransitionComplete {
    		return false
    	}
    	return !isRestoredObjectOnDisk(oi.UserDefined)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  9. cmd/erasure-metadata.go

    		//nolint:gocritic
    		// Delete marker or zero byte objects take highest parity.
    		if metadata.Deleted || metadata.Size == 0 {
    			parities[index] = totalShards / 2
    		} else if metadata.TransitionStatus == lifecycle.TransitionComplete {
    			// For tiered objects, read quorum is N/2+1 to ensure simple majority on xl.meta.
    			// It is not equal to EcM because the data integrity is entrusted with the warm tier.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2.go

    // its contents and false otherwise.
    func (j xlMetaV2Object) UsesDataDir() bool {
    	// Skip if this version is not transitioned, i.e it uses its data directory.
    	if !bytes.Equal(j.MetaSys[metaTierStatus], []byte(lifecycle.TransitionComplete)) {
    		return true
    	}
    
    	// Check if this transitioned object has been restored on disk.
    	return isRestoredObjectOnDisk(j.MetaUser)
    }
    
    // InlineData returns whether inline data has been set.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top