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

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.0.Beta2
    • 6.0.0.Beta1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: