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

Attempt to remove cache container with default-cache defined throws NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 11.0.0.Alpha1
    • 10.1.0.Final
    • Clustering
    • None
    • Hide
      1. /subsystem=infinispan/cache-container=foo:add()
      2. /subsystem=infinispan/cache-container=foo/local-cache=bar:add()
      3. /subsystem=infinispan/cache-container=foo:write-attribute(name=default-cache, value=bar)
      4. reload
      5. /subsystem=infinispan/cache-container=foo:remove
      6. [standalone@localhost:9990 /] /subsystem=infinispan/cache-container=foo:remove
        {
            "outcome" => "failed",
            "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException",
            "rolled-back" => true
        }
        
      Show
      /subsystem=infinispan/cache-container=foo:add() /subsystem=infinispan/cache-container=foo/local-cache=bar:add() /subsystem=infinispan/cache-container=foo:write-attribute(name=default-cache, value=bar) reload /subsystem=infinispan/cache-container=foo:remove [standalone@localhost:9990 /] /subsystem=infinispan/cache-container=foo:remove { "outcome" => "failed" , "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException" , "rolled-back" => true }
    • User Experience
    • Workaround Exists
    • Hide
      1. /subsystem=infinispan/cache-container=foo:undefine-attribute(name=default-cache)
      2. reload
      3. /subsystem=infinispan/cache-container=foo/local-cache=bar:remove()
      4. /subsystem=infinispan/cache-container=foo:remove
      Show
      /subsystem=infinispan/cache-container=foo:undefine-attribute(name=default-cache) reload /subsystem=infinispan/cache-container=foo/local-cache=bar:remove() /subsystem=infinispan/cache-container=foo:remove

    Description

      When I create a local cache as a child of some cache container and then set it to that cache container as its default cache, it is impossible to remove that cache container.

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: WFLY

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: