2 Replies Latest reply on Dec 22, 2011 4:33 AM by Thomas Fromm

    Local cache + FileCacheStore -> many 0-byte Files left behind

    Thomas Fromm Newbie

      ISPN: 5.1.0 CR1

      OS: Linux

       

      My scenario: I create lots of entries and remove them from cache. The key values are very different strings and so the number of left behind 0-byte files increases very fast.

       

       

      Example 1:

              byte[] data = "ABCDEFG".getBytes();
              e05.put("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", data);
              e05.remove("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
              e05.put("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1", data);
              e05.remove("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1");

       

      Two files left behind:

      -rw-r--r-- 1 tf tape0 21. Dez 11:46 1358968832
      -rw-r--r-- 1 tf tape0 21. Dez 11:46 459479040

       

      Example 2:

              byte[] data = "ABCDEFG".getBytes();
              e05.put("A", data);
              e05.remove("A");
              e05.put("B", data);
              e05.remove("B");

       

      Only one file is left behind:

      -rw-r--r-- 1 tf tape0 21. Dez 11:50 0

       

       

      Any ideas how to solve that behaviour?