Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-794

Primary selection possibly failure cases

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Complete
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      During work on INDY-463 new more possible failure cases were found. They haven't been reproduced yet but at least they should be checked (seems some of them could be checked only in scope of integration auto-tests in indy-plenum) and then fixed if necessary.

      Cases:

      1. demote one node when primary is NodeX - make several view changes so the primary is NodeX again - promote demoted node - check that it accepts current primary
        (expect failure cause currently nodes discards previous primary without checking difference between view numbers)
      2. the same as previous but restart instead of re-promotion
      3. do view change(s) - demote one node - restart remaining pool - do some txns - promote previously demoted node - check how it does catch-up: it has viewNo than restarted remaining pool but less txns in ledger
      4. the same as previous but restart instead of re-promotion
      5. do 4 view changes for 4-nodes pool - add new validator - do one more view change #5: expect primary of the view change #5 will be discarded and one more view change #6 happens cause according to formula primary(viewNo=4, totalNodes=4) = primary(viewNo=5, totalNode=5)
      6. disconnect node from 4-nodes pool - do several view changes until next primary for backup instance points to disconnected node - check what happens: it seems we will get non-functional backup instance for long cause according to current code in plenum that nodes don't ensure VIEW_CHANGE_DONE from next backup instance primary and won't receive primary disconnected event as it will has already happened and it is monitored for master instance only

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              andkononykhin Andrey Kononykhin
              Watchers:
              Andrey Kononykhin, Kelly Wilson, NIkita Zhigunenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: