Skip to content

Object header is not accounted for when evaluating container size #3608

@roman-khimov

Description

@roman-khimov

Expected Behavior

Object has full size, header+payload, that's what we store and that's the disk space used by this object.

Current Behavior

Only payload size is counted for container size metrics and submissions.

err = changeContainerInfo(tx, obj.GetContainerID(), int(obj.PayloadSize()), 1)

Possible Solution

Count headers as well.

Think of counting temporary objects like locks and tombstones, they do require space and it's a vector for DoS.

Context

#3519, basic income.

Regression

No. It was always like that since 4157800.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I4No visible changesS3Minimally significantU3RegularbugSomething isn't workingneofs-storageStorage node application issuessecurityAffects security

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions