You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to determine whether ckanext-pages is responsible for a race condition that brought down our application last night. I'm wondering if you can help me figure out how to interpret the context['model'] object to see if it's possible that it could have been shared between two threads. Specifically, I'm interested in this code block:
What would you expect context['model'] to represent in this case? It looks like db.py modifies in a number of different ways, including setting table mappings:
This was the block of code that caused my errors in question, so any guidance you might have to shed light on what's supposed to happen with the model object would be helpful. If you're interested in deeper context, you can see a more detailed investigation into our outage here: opendataphilly/opendataphilly-ckan#92 (comment)
The text was updated successfully, but these errors were encountered:
I'm trying to determine whether
ckanext-pages
is responsible for a race condition that brought down our application last night. I'm wondering if you can help me figure out how to interpret thecontext['model']
object to see if it's possible that it could have been shared between two threads. Specifically, I'm interested in this code block:ckanext-pages/ckanext/pages/actions.py
Lines 78 to 81 in 06d8ef5
What would you expect
context['model']
to represent in this case? It looks likedb.py
modifies in a number of different ways, including setting table mappings:ckanext-pages/ckanext/pages/db.py
Lines 97 to 119 in 06d8ef5
This was the block of code that caused my errors in question, so any guidance you might have to shed light on what's supposed to happen with the
model
object would be helpful. If you're interested in deeper context, you can see a more detailed investigation into our outage here: opendataphilly/opendataphilly-ckan#92 (comment)The text was updated successfully, but these errors were encountered: