Stale container PUT overwrites object count
Bug #1304656 reported by
David Wagner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned |
Bug Description
Swift 1.13.0:
AccountBroker.
To post a comment you must log in.
I don't think that's there to "prevent a stale delete" - think it's just trying to keep the log up to date - most recent put, most recent delete. Generally speaking I think the account is willing to say the container's updates are authoritative for their bytes used and object counts.
I guess you could *try* to throw out container updates from stale containers...
if (record[put] < row[put] and record[delete] < row[delete]):
continue # nothing new to see here.
But think the current code is banking on the container databases eventually sorting themselves out, any container replication event that changes a container's bytes or object count is going to trigger the container updater to resend it's stats to the account...