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

Value removed from cache still be visible to putIfAbsent in single transaction scope.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.1.0.BETA2, 4.1.0.Final
    • 4.0.0.Final, 4.1.0.BETA1
    • Core
    • None

      If entry removed from cache new value can't be inserted using putIfAbsent in the same transaction.

      cache.put("k1", "v1");

      tx.start();
      cache.remove("k1");
      ...
      assertNull(cache.putIfAbsent("k1", "v2"));
      tx.commit();

      now cache.putIfAbsent("k1", "v2") returns "v2";

              manik_jira Manik Surtani (Inactive)
              lucker_jira Alexander Gavrilov (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: