[jira] Updated: (JCS-25) problem with optimizeFile()

"Thomas Vandahl (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.jcs.devel
Message-ID <441619.1181585969287.JavaMail.jira@brutus>
     [ https://issues.apache.org/jira/browse/JCS-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Vandahl updated JCS-25:
------------------------------

        Fix Version/s: jcs-1.4-dev
    Affects Version/s:     (was: jcs-1.2.7.9.2)
                       jcs-1.3

> problem with optimizeFile()
> ---------------------------
>
>                 Key: JCS-25
>                 URL: https://issues.apache.org/jira/browse/JCS-25
>             Project: JCS
>          Issue Type: Bug
>          Components: Indexed Disk Cache
>    Affects Versions: jcs-1.3
>         Environment: Linux 
>            Reporter: Jan-Philipp Bolle
>            Assignee: Aaron Smuts
>             Fix For: jcs-1.4-dev
>
>
> Its two month ago then I posted my question to jcs user:
> We have the problem that our indexed disk is growing over the day. Is it possible to start
> the optimization by API?
> The situation is still the same. I am sure that the index optimization is not working in Version
> jcs 1.2.7.9.2. . I had written a dirty program to optimize the index:
> 	public static void main(String[] args) throws IOException {
>         IndexedDiskCacheAttributes cattr = new IndexedDiskCacheAttributes();
>         cattr.setCacheName( "articleBase" );
>         cattr.setMaxKeySize( -1 );
>         cattr.setDiskPath( "D:\\temp\\bug5464\\systems" );
>         IndexedDiskCache disk = new IndexedDiskCache( cattr );
>         disk.optimizeFile();
>         System.out.println(disk.getSize());
>       }
> With the help of my program the size of the index changed from 3,30 GB to 619 MB. But I can�t
> use the program in production.
> I expect that the function optimizeFile() will be executed after shutdown. But in JCS Version
> jcs 1.2.7.9.2 in IndexedDiskCache in Line 888 the function this.getBytesFree() returns always
> 0.
> Any idea way the value is always 0?
> Why I can optimize the index with my dirty program but not with the default behaviour?
> In my point of view this is a bug in JCS.
> How can I support you to fix that problem?
> Regards Philipp

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.