New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange, unrepeatable error with dynamic datasource #792
Comments
Looks like mutex was not unlocked last time. Strange thing is that, depending on cache life time, old lock should be removed next time there is time to refresh cache. Can you check if there are lock files left behind after visiting page with a single dynamic data-source? |
I'm having the problem again. It occurs with a dynamic datasource which loads a twitter xml-feed. The cache is set to 5 minutes for this datasource. Could that have something to do with it? Does Mutex have it's own caching time? |
…ta (marked as stale) which can be used instead of displaying an error to the user. RE: #792
What currently happens is that when a Dynamic XML DS goes to fetch a new result, a lock file is created that will live as long as the timeout of the datasource. When the result comes back, the lock is released. The idea behind this is that if multiple requests happen at the same time, they won't all try and fetch the URL and potentially place excessive load on the server. I have pushed a commit that will allow old data to return in the scenario where multiple requests hit the server in succession while a lock is in place. This old data will be marked as stale so that in your XSLT you could alert a user. The error message returned should be Please reopen if you can reproduce your original issue. |
…Update Mutex class to catch Exceptions. Should prevent issues that were randomly occuring with Dynamic XML Datasources. RE: #792
I had a case today where a dynamic datasource didn't show any content, whereas it worked fine yesterday.
After exploring in the debugger to look what the output of the datasource was, It showed the error:
The file existed, but was empty. There was also another hashed
.lock
-file. That file had the contentMUTEX FILE - DO NOT DELETE
, or something like that. Regardless, deleting both files fixed the issue and my dynamic datasource started to work again.Anyone knows what might have caused this problem? Anyone else experienced something like this before?
The text was updated successfully, but these errors were encountered: