Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13238

Object returned by HttpSession.getAttribute(...) following a previous setAttribute(...), not mutating correctly on non-primary owner using ATTRIBUTE granularity when cache is non-transactional.

XMLWordPrintable

      Consider the following:

      session.setAttribute("foo", new AtomicInteger(0));
      AtomicInteger value = (AtomicInteger) session.getAttribute("foo");
      value.incrementAndGet();
      

      When request is receive on a non-primary owner, the above code does not correctly replicate the mutated value when using ATTRIBUTE granularity and the backing cache in non-transactional.

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: