[MAGNOLIA-1446] Cache issue ? Created: 13/Nov/06  Updated: 23/Jan/13  Resolved: 17/Apr/07

Status: Closed
Project: Magnolia
Component/s: cache
Affects Version/s: 3.0.2
Fix Version/s: 3.1 M1

Type: Bug Priority: Minor
Reporter: Magnolia International Assignee: Sameer Charles
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

It seems I always get the following exception when first using a fresh enterprise instance. It doesn't seem to affect the system and only happens once.

ERROR info.magnolia.cms.cache.simple.CacheImpl CacheImpl.java(cacheRequest:88) 13.11.2006 12:39:33 Failed to cache /.resources/enterprise-css/registration.css
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at info.magnolia.cms.cache.simple.CacheImpl.cacheRequest(CacheImpl.java:82)
at info.magnolia.cms.cache.DefaultCacheManager.cacheRequest(DefaultCacheManager.java:66)
at info.magnolia.cms.cache.ManageableCacheManager.cacheRequest(ManageableCacheManager.java:43)
at info.magnolia.cms.cache.CacheFilter.doFilter(CacheFilter.java:80)
at info.magnolia.cms.filters.MagnoliaManagedFilter$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)



 Comments   
Comment by Magnolia International [ 06/Dec/06 ]

This seems to be related to a somewhat delayed creation of the cache directories (might be os-dependent ?)
Need to investigate and see if there's a proper solution for this.
Problem also reported by 3rd parties.

Comment by Fabrizio Giustina [ 02/Apr/07 ]

I frequenlty get this error, both on windows and linux (it seems to be also more frequent when using jdk6) and I did some investigation...
It's a know multithread issue in File.mkdirs() which sometime returns without creating the full directory tree, see bug 6522814 and related:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6522814

the only fix could be to manually create each dir using mkdir() or to retry mkdirs() multiple times (note that it returns true also when directories are not properly created)

Comment by Magnolia International [ 02/Apr/07 ]

I assume you get that with other documents that the one mentionned in my stacktrace ?

Comment by Sameer Charles [ 17/Apr/07 ]

After investigating a bit, I believe it would be best to go back to the previous implemementation (magnolia 2.0) where we created
directory structure "manually" - like Fabrizio said!

Comment by Sameer Charles [ 17/Apr/07 ]

on svn

Generated at Mon Feb 12 03:27:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.