Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for internalLogIf (0.11 sec)

  1. cmd/bucket-metadata-sys.go

    	defer t.Stop()
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-t.C:
    			buckets, err := sys.objAPI.ListBuckets(ctx, BucketOptions{NoMetadata: true})
    			if err != nil {
    				internalLogIf(ctx, err, logger.WarningKind)
    				break
    			}
    
    			// Handle if we have some buckets in-memory those are stale.
    			// first delete them and then replace the newer state()
    			// from disk.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. cmd/bucket-metadata.go

    // If an error is returned the returned metadata will be default initialized.
    func readBucketMetadata(ctx context.Context, api ObjectLayer, name string) (BucketMetadata, error) {
    	if name == "" {
    		internalLogIf(ctx, errors.New("bucket name cannot be empty"), logger.WarningKind)
    		return BucketMetadata{}, errInvalidArgument
    	}
    	b := newBucketMetadata(name)
    	configFile := path.Join(bucketMetaPrefix, name, bucketMetadataFile)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v1.go

    	}
    	c.Algorithm = BitrotAlgorithmFromString(info.Algorithm)
    	c.Hash = sum
    	if _, err = fmt.Sscanf(info.Name, "part.%d", &c.PartNumber); err != nil {
    		return err
    	}
    
    	if !c.Algorithm.Available() {
    		internalLogIf(GlobalContext, errBitrotHashAlgoInvalid)
    		return errBitrotHashAlgoInvalid
    	}
    	return nil
    }
    
    // constant and shouldn't be changed.
    const (
    	legacyDataDir = "legacy"
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. cmd/notification.go

    	// of profiling data of all nodes
    	zipWriter := zip.NewWriter(writer)
    	defer zipWriter.Close()
    
    	// Start by embedding cluster info.
    	if b := getClusterMetaInfo(ctx); len(b) > 0 {
    		internalLogIf(ctx, embedFileInZip(zipWriter, "cluster.info", b, 0o600))
    	}
    
    	// Profiles can be quite big, so we limit to max 16 concurrent downloads.
    	ng := WithNPeersThrottled(len(sys.peerClients), 16)
    	var writeMu sync.Mutex
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  5. cmd/erasure-metadata.go

    		if partOffset < part.Size {
    			return partIndex, partOffset, nil
    		}
    		// Continue to towards the next part.
    		partOffset -= part.Size
    	}
    	internalLogIf(ctx, InvalidRange{})
    	// Offset beyond the size of the object return InvalidRange.
    	return 0, 0, InvalidRange{}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    		if !errors.Is(err, os.ErrNotExist) {
    			internalLogIf(GlobalContext, fmt.Errorf("unable to read %s: %w", healingFile, err))
    		}
    		return nil
    	}
    	if len(b) == 0 {
    		internalLogIf(GlobalContext, fmt.Errorf("%s is empty", healingFile))
    		// 'healing.bin' might be truncated
    		return nil
    	}
    	h := newHealingTracker()
    	_, err = h.UnmarshalMsg(b)
    	internalLogIf(GlobalContext, err)
    	return h
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    	b, err := json.Marshal(info)
    	if err != nil {
    		bugLogIf(ctx, err)
    		return
    	}
    	// Get last healing information
    	err = saveConfig(ctx, objAPI, backgroundHealInfoPath, b)
    	if err != nil {
    		internalLogIf(ctx, err)
    	}
    }
    
    // runDataScanner will start a data scanner.
    // The function will block until the context is canceled.
    // There should only ever be one scanner running per cluster.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    	for idx, part := range partInfoFiles {
    		if part.Error != "" {
    			err = objPartToPartErr(part)
    			bugLogIf(ctx, err)
    			return oi, err
    		}
    
    		if parts[idx].PartNumber != part.Number {
    			internalLogIf(ctx, fmt.Errorf("part.%d.meta has incorrect corresponding part number: expected %d, got %d", parts[idx].PartNumber, parts[idx].PartNumber, part.Number))
    			return oi, InvalidPart{
    				PartNumber: part.Number,
    			}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    		return
    	}
    
    	// check if client is attempting to create more buckets, complain about it.
    	if currBuckets := globalBucketMetadataSys.Count(); currBuckets+1 > maxBuckets {
    		internalLogIf(ctx, fmt.Errorf("Please avoid creating more buckets %d beyond recommended %d", currBuckets+1, maxBuckets), logger.WarningKind)
    	}
    
    	opts := MakeBucketOptions{
    		LockEnabled: objectLockEnabled,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  10. cmd/api-errors.go

    	}
    
    	if apiErr.Code == "InternalError" {
    		// Make sure to log the errors which we cannot translate
    		// to a meaningful S3 API errors. This is added to aid in
    		// debugging unexpected/unhandled errors.
    		internalLogIf(ctx, err)
    	}
    
    	return apiErr
    }
    
    // getAPIError provides API Error for input API error code.
    func getAPIError(code APIErrorCode) APIError {
    	if apiErr, ok := errorCodes[code]; ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top