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

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

    XMLWordPrintable

Details

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

    Description

      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";

      Attachments

        Activity

          People

            manik_jira Manik Surtani (Inactive)
            lucker_jira Alexander Gavrilov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: