Closed Bug 667598 Opened 13 years ago Closed 13 years ago

memcached size bad resync

Categories

(Cloud Services Graveyard :: Server: Sync, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tarek, Assigned: tarek)

Details

Attachments

(1 file, 3 obsolete files)

Syncing + restart memcached + add tab => quota exceeds.

That happens because the payload total size grabbed from sql is * by KB twice.
Attached patch don't *KB twice (obsolete) — Splinter Review
test coming next
Attachment #542258 - Flags: review?(telliott)
Attachment #542258 - Flags: feedback?
Comment on attachment 542258 [details] [diff] [review]
don't *KB twice

This is fine, but we shouldn't be trying to push it today
Attachment #542258 - Flags: review?(telliott) → review+
yes, agreed
Fixes the issue, and also splits the cache manager on its own module for clarity
Attachment #542258 - Attachment is obsolete: true
Attachment #542431 - Flags: review?(telliott)
Attachment #542258 - Flags: feedback?
Attachment #542431 - Attachment is obsolete: true
Attachment #542433 - Flags: review?(telliott)
Attachment #542431 - Flags: review?(telliott)
2 things here:

1) I don't see the new Cachemanager as part of the diff

2) When we're scrambling to throw things onto a short-run train, I'm not sure that we should be making wholesale changes. I'd hold off checking this one in until after the push.
1) forgot to add the file, adding it

2) the cache manager is being moved to its own file for clarity, so there's no wholesale change here, beside the cleanups of the memcached <> db sync.
Attachment #542433 - Attachment is obsolete: true
Attachment #542505 - Flags: review?(telliott)
Attachment #542433 - Flags: review?(telliott)
Comment on attachment 542505 [details] [diff] [review]
fix the KB issue + split the cache manager (v3)

This is ok, though it still seems a bad idea to be introducing new code at this time. _KB shouldn't be defined in a sql library (though we can leave it for now).
Attachment #542505 - Flags: review?(telliott) → review+
Yes KB could leave in services.util eventually. It's defined there because it's used only there, but there should be a couple of apps that can use it now
https://hg.mozilla.org/services/server-storage/rev/1eb1ca91de5a
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: