Closed
Bug 589034
Opened 15 years ago
Closed 15 years ago
Hera crashes on a new object with slave lag
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
5.11.8
People
(Reporter: jbalogh, Assigned: jbalogh)
References
Details
(Whiteboard: [z])
Someone forked multidb router to send all queries after a db write to the master. We might want that.
File "/data/amo_python/www/preview/zamboni/apps/amo/signals.py", line 9, in flush_front_end_cache
urls = furls() if hasattr(furls, '__call__') else furls
File "/data/amo_python/www/preview/zamboni/apps/bandwagon/models.py", line 317, in flush_urls
'*%s' % self.collection.get_url_path()]
File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/db/models/fields/related.py", line 300, in __get__
rel_obj = rel_mgr.using(db).get(**params)
File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/db/models/query.py", line 341, in get
% self.model._meta.object_name)
DoesNotExist: Collection matching query does not exist.
Comment 2•15 years ago
|
||
What's this have to do with hera?
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> What's this have to do with hera?
Oh right, it's not actually in hera. The crash happens in the flush_frontend signal handler.
| Assignee | ||
Comment 4•15 years ago
|
||
This is only happening in CollectionAddon right now.
def flush_urls(self):
urls = ['*/addon/%d/' % self.addon_id,
'*%s' % self.collection.get_url_path()]
return urls
I don't think we should be flushing add-on pages every time one gets added to a collection.
When we change a collection's add-ons we also .save() the collection to make sure it gets invalidated, so we don't need to flush the collection in here either.
I vote for deleting this flush_urls altogether and waiting to get a real fix (forcing master in flush_urls) if we really need it.
| Assignee | ||
Comment 5•15 years ago
|
||
Assignee: nobody → jbalogh
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 6•15 years ago
|
||
Based on the STR provided in the dupe,I cannot reproduce this traceback anymore.
calling this verified FIXED.
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•