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

State after cluster shutdown should be cleared by CLI/REST/JMX command

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 11.0.3.Final, 12.0.0.Final
    • None
    • Documentation (Ref Guide, User Guide, etc.), User Experience

      After a cluster is brought down with "shutdown cluster" command the restart need to have all the known nodes back to prevent from any data lost.

      If there is an issue bringing the nodes back it should be possible to trigger the state-transfer and bring the cluster back online.
      It should have two options

      • keep the data
      • clear the cache and start empty

      This would cause a loss of data if not all segments are available for a cache.
      In this case a WARN message should be logged to notify the user that data is lost.

      It will be possible to reset the state by removing the data/*.state files, but in this case another restart is needed and more data is lost as the first node will use the (incomplete) store and other local stores are not used to recover.
      Reset the state when having all remaining nodes up will keep more data as some segments are still complete or have at least the primary or one backup owner.
      Best case if if less nodes than numOwner are missed, in that case the data is completely available and con be sucessfully rebalanced.
       
       

            Unassigned Unassigned
            rhn-support-wfink Wolf Fink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: