Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5633

Cellar: cleanup Hazelcast maps when a group is deleted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • cellar-4.0.4, cellar-4.1.1
    • None
    • cellar
    • None

    Description

      When a Cellar group is deleted, the corresponding Hazelcast maps remain there (org.apache.karaf.cellar.bundle.map.<group-name>, org.apache.karaf.cellar.repositories.<group-name>,  org.apache.karaf.cellar.features.<group-name>, etc.).

      In effect, when the group is created again, those maps are taken with "stale" data.

       

      My use case:

      1) Create a new group "temp"

      2) Move one node (node1) to that group "temp" (the node is removed from "default" group)

      3) Deploy some bundles on group "temp"

      4) Remove node1 from group "temp" and bring it back to group "default"

      5) Delete group "temp" (at this point the Hazelcast map date remains for that group)

      6) When I create again the group "temp" and join node1, the cluster state is pulled from the old data and applied to my node1.

      Thank you!

      Attachments

        Activity

          People

            Unassigned Unassigned
            shyrkov Sergiy Shyrkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: