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

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

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)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: