Apache Mod-Python - Created: (MODPYTHON-219) New importer redundantly reloading

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > May 2007 > Created: (MODPYTHON-219) New importer redundantly reloading





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Created: (MODPYTHON-219) New importer redundantly reloading
Graham Dumpleton (JIRA)

2007-05-11, 1:12 am

New importer redundantly reloading modules.
-------------------------------------------

Key: MODPYTHON-219
URL: https://issues.apache.org/jira/browse/MODPYTHON-219
Project: mod_python
Issue Type: Bug
Components: importer
Affects Versions: 3.3.1
Reporter: Graham Dumpleton
Fix For: 3.3.x


Although the new module importer prevents two threads trying to load a module at the same time, the transition from checking to see if a module requires (re)loading to the actual loading isn't properly thread protected and as a result a second thread, alt
hough it may decide a module needs (re)loading, isn't simply waiting for the first thread to finish the loading and use the result of that and is instead loading the module again even though no change has been made.

This issue was highlighted in following mailing list posts:

http://www.modpython.org/pipermail/...May/023583.html
http://www.modpython.org/pipermail/...May/023586.html

Further discussion can be found in the associated posts for that thread in the archives.

Note that this only affects multithreaded Apache MPMs and the window for this to happen is very small and is only going to occur under heavy load from multiple clients or in web pages where multiple requests may be made from a page to a resource requiring
the same code module be loaded.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com