Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3541

Common store attributes(e.g. purge) are ignored for non-generic stores (file-store, remote etc)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.Final
    • 6.0.0.Final
    • None
    • None

      When using this configuration (notice the purge=true)

      <local-cache name="default" start="EAGER" batching="false">
          <file-store name="hello"
                      passivation="true"
                      relative-to="temp"
                      path="${cachestore.name}"
                      purge="true"/>
      </local-cache>
      

      and running this test

              for (int i = 0; i < 3; i++) {
                  cache.put("k" + i, i);
              }
              controller.stop(CONTAINER); // stops the server
              controller.start(CONTAINER);
              for (int i = 0; i < 3; i++) {
                  System.out.println("k" + i + ": " + cache.get("k" + i));
              }
      

      the entries can be read even after server restart:

      k0: 0 // expecting null here
      k1: 1 // expecting null here
      k2: 2 // expecting null here

      Worked fine with DR4, not with ER1.

            mircea.markus Mircea Markus (Inactive)
            jmarkos Jakub Markos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: