jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ankur.ku...@axa.com.au
Subject RE: Bug in Cache Element Removal when its expired
Date Tue, 06 Apr 2004 23:37:10 GMT
I did a diff on your files and stable release of JCS and it seems there 
are lot of changes, almost 91 files.
Is it possible to do another release of it? 
Here is diff results:
Files org/apache/jcs/JCS.java and org1./apache/jcs/JCS.java differ
Files org/apache/jcs/access/CacheAccess.java and 
org1./apache/jcs/access/CacheAccess.java differ
Files org/apache/jcs/access/GroupCacheAccess.java and 
org1./apache/jcs/access/GroupCacheAccess.java differ
Files org/apache/jcs/access/behavior/IGroupCacheAccess.java and 
org1./apache/jcs/access/behavior/IGroupCacheAccess.java differ
Files org/apache/jcs/access/exception/CacheException.java and 
org1./apache/jcs/access/exception/CacheException.java differ
Files org/apache/jcs/access/monitor/MonitorAccess.java and 
org1./apache/jcs/access/monitor/MonitorAccess.java differ
Files org/apache/jcs/access/monitor/MonitorXMLRPCServer.java and 
org1./apache/jcs/access/monitor/MonitorXMLRPCServer.java differ
Files org/apache/jcs/admin/servlet/JCSAdminServlet.java and 
org1./apache/jcs/admin/servlet/JCSAdminServlet.java differ
Files org/apache/jcs/auxiliary/AuxiliaryCache.java and 
org1./apache/jcs/auxiliary/AuxiliaryCache.java differ
Files org/apache/jcs/auxiliary/disk/AbstractDiskCache.java and 
org1./apache/jcs/auxiliary/disk/AbstractDiskCache.java differ
Files org/apache/jcs/auxiliary/disk/PurgatoryElement.java and 
org1./apache/jcs/auxiliary/disk/PurgatoryElement.java differ
Files org/apache/jcs/auxiliary/disk/indexed/IndexedDisk.java and 
org1./apache/jcs/auxiliary/disk/indexed/IndexedDisk.java differ
Files org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java and 
org1./apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java differ
Files org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheManager.java 
and org1./apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheManager.java 
differ
Files org/apache/jcs/auxiliary/lateral/LateralCache.java and 
org1./apache/jcs/auxiliary/lateral/LateralCache.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheAttributes.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheAttributes.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheFactory.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheFactory.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheInfo.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheInfo.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheManager.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheManager.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheMonitor.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheMonitor.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheNoWait.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheNoWait.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheNoWaitFacade.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheNoWaitFacade.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheRestore.java and 
org1./apache/jcs/auxiliary/lateral/LateralCacheRestore.java differ
Files org/apache/jcs/auxiliary/lateral/LateralCacheWatchRepairable.java 
and org1./apache/jcs/auxiliary/lateral/LateralCacheWatchRepairable.java 
differ
Files org/apache/jcs/auxiliary/lateral/LateralElementDescriptor.java and 
org1./apache/jcs/auxiliary/lateral/LateralElementDescriptor.java differ
Files org/apache/jcs/auxiliary/lateral/ZombieLateralCacheService.java and 
org1./apache/jcs/auxiliary/lateral/ZombieLateralCacheService.java differ
Files org/apache/jcs/auxiliary/lateral/ZombieLateralCacheWatch.java and 
org1./apache/jcs/auxiliary/lateral/ZombieLateralCacheWatch.java differ
Files org/apache/jcs/auxiliary/lateral/behavior/ILateralCacheService.java 
and org1./apache/jcs/auxiliary/lateral/behavior/ILateralCacheService.java 
differ
Files org/apache/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java 
and org1./apache/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java 
differ
Files org/apache/jcs/auxiliary/lateral/socket/tcp/LateralTCPSender.java 
and org1./apache/jcs/auxiliary/lateral/socket/tcp/LateralTCPSender.java 
differ
Files org/apache/jcs/auxiliary/lateral/socket/tcp/LateralTCPService.java 
and org1./apache/jcs/auxiliary/lateral/socket/tcp/LateralTCPService.java 
differ
Files org/apache/jcs/auxiliary/lateral/socket/tcp/utils/SocketOpener.java 
and org1./apache/jcs/auxiliary/lateral/socket/tcp/utils/SocketOpener.java 
differ
Files org/apache/jcs/auxiliary/remote/RemoteCache.java and 
org1./apache/jcs/auxiliary/remote/RemoteCache.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheAttributes.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheAttributes.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheFactory.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheFactory.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheFailoverRunner.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheFailoverRunner.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheInfo.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheInfo.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheListener.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheListener.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheManager.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheManager.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheMonitor.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheMonitor.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheNoWait.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheNoWait.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheRestore.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheRestore.java differ
Files org/apache/jcs/auxiliary/remote/RemoteCacheWatchRepairable.java and 
org1./apache/jcs/auxiliary/remote/RemoteCacheWatchRepairable.java differ
Files org/apache/jcs/auxiliary/remote/RemoteUtils.java and 
org1./apache/jcs/auxiliary/remote/RemoteUtils.java differ
Files org/apache/jcs/auxiliary/remote/ZombieRemoteCacheService.java and 
org1./apache/jcs/auxiliary/remote/ZombieRemoteCacheService.java differ
Files org/apache/jcs/auxiliary/remote/ZombieRemoteCacheWatch.java and 
org1./apache/jcs/auxiliary/remote/ZombieRemoteCacheWatch.java differ
Files org/apache/jcs/auxiliary/remote/behavior/IRemoteCacheListener.java 
and org1./apache/jcs/auxiliary/remote/behavior/IRemoteCacheListener.java 
differ
Files org/apache/jcs/auxiliary/remote/behavior/IRemoteCacheService.java 
and org1./apache/jcs/auxiliary/remote/behavior/IRemoteCacheService.java 
differ
Files 
org/apache/jcs/auxiliary/remote/server/RemoteCacheClusterFactory.java and 
org1./apache/jcs/auxiliary/remote/server/RemoteCacheClusterFactory.java 
differ
Files 
org/apache/jcs/auxiliary/remote/server/RemoteCacheClusterManager.java and 
org1./apache/jcs/auxiliary/remote/server/RemoteCacheClusterManager.java 
differ
Files 
org/apache/jcs/auxiliary/remote/server/RemoteCacheClusterMonitor.java and 
org1./apache/jcs/auxiliary/remote/server/RemoteCacheClusterMonitor.java 
differ
Files 
org/apache/jcs/auxiliary/remote/server/RemoteCacheClusterRestore.java and 
org1./apache/jcs/auxiliary/remote/server/RemoteCacheClusterRestore.java 
differ
Files org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java and 
org1./apache/jcs/auxiliary/remote/server/RemoteCacheServer.java differ
Files 
org/apache/jcs/auxiliary/remote/server/RemoteCacheServerAttributes.java 
and 
org1./apache/jcs/auxiliary/remote/server/RemoteCacheServerAttributes.java 
differ
Files org/apache/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java 
and org1./apache/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java 
differ
Files org/apache/jcs/auxiliary/remote/server/RemoteCacheServerInfo.java 
and org1./apache/jcs/auxiliary/remote/server/RemoteCacheServerInfo.java 
differ
Files 
org/apache/jcs/auxiliary/remote/server/RemoteCacheServerListener.java and 
org1./apache/jcs/auxiliary/remote/server/RemoteCacheServerListener.java 
differ
Files org/apache/jcs/config/OptionConverter.java and 
org1./apache/jcs/config/OptionConverter.java differ
Files org/apache/jcs/config/PropertySetter.java and 
org1./apache/jcs/config/PropertySetter.java differ
Files org/apache/jcs/engine/CacheAdaptor.java and 
org1./apache/jcs/engine/CacheAdaptor.java differ
Files org/apache/jcs/engine/CacheConstants.java and 
org1./apache/jcs/engine/CacheConstants.java differ
Files org/apache/jcs/engine/CacheElement.java and 
org1./apache/jcs/engine/CacheElement.java differ
Files org/apache/jcs/engine/CacheEventQueue.java and 
org1./apache/jcs/engine/CacheEventQueue.java differ
Files org/apache/jcs/engine/CacheInfo.java and 
org1./apache/jcs/engine/CacheInfo.java differ
Files org/apache/jcs/engine/CacheWatchRepairable.java and 
org1./apache/jcs/engine/CacheWatchRepairable.java differ
Files org/apache/jcs/engine/CompositeCacheAttributes.java and 
org1./apache/jcs/engine/CompositeCacheAttributes.java differ
Files org/apache/jcs/engine/ElementAttributes.java and 
org1./apache/jcs/engine/ElementAttributes.java differ
Files org/apache/jcs/engine/ZombieCacheService.java and 
org1./apache/jcs/engine/ZombieCacheService.java differ
Files org/apache/jcs/engine/ZombieCacheWatch.java and 
org1./apache/jcs/engine/ZombieCacheWatch.java differ
Files org/apache/jcs/engine/behavior/ICache.java and 
org1./apache/jcs/engine/behavior/ICache.java differ
Files org/apache/jcs/engine/behavior/ICacheElement.java and 
org1./apache/jcs/engine/behavior/ICacheElement.java differ
Files org/apache/jcs/engine/behavior/ICacheEventQueue.java and 
org1./apache/jcs/engine/behavior/ICacheEventQueue.java differ
Files org/apache/jcs/engine/behavior/ICacheListener.java and 
org1./apache/jcs/engine/behavior/ICacheListener.java differ
Files org/apache/jcs/engine/behavior/ICacheObserver.java and 
org1./apache/jcs/engine/behavior/ICacheObserver.java differ
Files org/apache/jcs/engine/behavior/ICacheServiceAdmin.java and 
org1./apache/jcs/engine/behavior/ICacheServiceAdmin.java differ
Files org/apache/jcs/engine/behavior/ICacheType.java and 
org1./apache/jcs/engine/behavior/ICacheType.java differ
Files org/apache/jcs/engine/control/CompositeCache.java and 
org1./apache/jcs/engine/control/CompositeCache.java differ
Files org/apache/jcs/engine/control/CompositeCacheConfigurator.java and 
org1./apache/jcs/engine/control/CompositeCacheConfigurator.java differ
Files org/apache/jcs/engine/control/CompositeCacheManager.java and 
org1./apache/jcs/engine/control/CompositeCacheManager.java differ
Files org/apache/jcs/engine/control/event/ElementEvent.java and 
org1./apache/jcs/engine/control/event/ElementEvent.java differ
Files org/apache/jcs/engine/control/event/ElementEventQueue.java and 
org1./apache/jcs/engine/control/event/ElementEventQueue.java differ
Files org/apache/jcs/engine/control/event/behavior/IElementEventQueue.java 
and org1./apache/jcs/engine/control/event/behavior/IElementEventQueue.java 
differ
Files org/apache/jcs/engine/memory/AbstractMemoryCache.java and 
org1./apache/jcs/engine/memory/AbstractMemoryCache.java differ
Files org/apache/jcs/engine/memory/MemoryCache.java and 
org1./apache/jcs/engine/memory/MemoryCache.java differ
Files org/apache/jcs/engine/memory/behavior/IMemoryCache.java and 
org1./apache/jcs/engine/memory/behavior/IMemoryCache.java differ
Files org/apache/jcs/engine/memory/lru/LRUMemoryCache.java and 
org1./apache/jcs/engine/memory/lru/LRUMemoryCache.java differ
Files org/apache/jcs/engine/memory/shrinking/ShrinkerThread.java and 
org1./apache/jcs/engine/memory/shrinking/ShrinkerThread.java differ
Files org/apache/jcs/utils/data/PropertyGroups.java and 
org1./apache/jcs/utils/data/PropertyGroups.java differ
Files org/apache/jcs/utils/locking/ReadWriteLock.java and 
org1./apache/jcs/utils/locking/ReadWriteLock.java differ
Files org/apache/jcs/utils/locking/RwLockGC.java and 
org1./apache/jcs/utils/locking/RwLockGC.java differ




Travis Savo <tsavo@IFILM.com>
07/04/2004 04:38 AM
Please respond to "Turbine JCS Users List"

 
        To:     'Turbine JCS Users List' <turbine-jcs-user@jakarta.apache.org>
        cc: 
        Subject:        RE: Bug in Cache Element Removal when its expired


For now it's up at http://www.sindome.org/JCS/JCS.zip

This includes the expiration removal patch, the clean shutdown patch, and
the LTCP flush buffer patch, as well as the rest of my changes.

I give fair warning that I still have not had time to clean this up, so
please forgive any extraneous configuration files or bash scripts that 
don't
suit your needs. I will fix this soon.

-Travis Savo

-----Original Message-----
From: Nguyen, Thod [mailto:TNguyen@corp.untd.com]
Sent: Tuesday, April 06, 2004 11:25 AM
To: 'Turbine JCS Users List'
Subject: RE: Bug in Cache Element Removal when its expired


where can we get the latest build for now....

-----Original Message-----
From: Travis Savo [mailto:tsavo@IFILM.com]
Sent: Tuesday, April 06, 2004 11:26 AM
To: 'Turbine JCS Users List'
Subject: RE: Bug in Cache Element Removal when its expired


Absolutely correct.

It's fixed in my latest build, and will go in with the rest of my updates 
to
CompositeCache when I get commit access.

Even more reinforcement of my prior wish list for tests for element
expiration and idling.

-Travis Savo

-----Original Message-----
From: ankur.kumar@axa.com.au [mailto:ankur.kumar@axa.com.au]
Sent: Monday, April 05, 2004 11:14 PM
To: Turbine JCS Users List
Subject: Bug in Cache Element Removal when its expired


When Cache Element is expired in Memory, it should be removed from Map 
object, which contains all cache elements.
But it doesn't happen. and I found the cause of it. Here is the code in 
CompositeCache which tries to remove cache item if
it is expired:

    protected ICacheElement get( Serializable key, boolean localOnly )
    {
.............................................
                if ( isExpired( element ) )
                {
                    if ( log.isDebugEnabled() )
                    {
                        log.debug( cacheName +
                                   " - Memory cache hit, but element 
expired" );
                    }

                    missCountExpired++;

                    remove( element );

                    element = null;
                }
                else
                {
        .......................................
}

remove(element) doens't work as here key needs to be passed not the entire 

element.

Can anybody fix it and release it along with disk caching fixes?





****************************************************************************
*****
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.
****************************************************************************
*****


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org


.

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org





*********************************************************************************
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.
*********************************************************************************


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message