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

Pool is still writing transactions when more than F nodes are stopped

    XMLWordPrintable

Details

    • Bug
    • Status: Complete
    • High
    • Resolution: Done
    • None
    • None
    • None
    • 12

    Description

      Steps to Reproduce:
      1. Set up pool of 4 nodes. (f=1)
      2. Add 2 more nodes to the pool. (n=6, f=1)
      3. Send transactions to make sure that pool works.
      4. Stop services on Node 6, send transaction.
      => transaction is written, it is ok.
      5. Stop services on Node 5, send transaction.
      => transaction is written, but is should not (because there are less than n-f nodes are in pool).
      6. Stop services on Node 4, send transaction.
      => transaction is written, but is should not.
      7. Stop services on Node 3, send transaction.
      => transaction is not written.

      Actual Results:
      Pool is still writing transactions when more than F nodes are stopped.

      Expected Results:
      Pool should stop writing transactions after step 5.

      Additional Information:
      After promotion of all nodes pool is working. The problem doesn't reproduce on the same pool after starting of stopped nodes.

      Here is output of CLI:

      sovrin@test> new key with seed 000000000000000000000000Trustee1
      Key created in wallet Default
      DID for key is V4SGRU86Z58d6TV7PBUe6f
      Verification key is ~CoRER63DVYnWZtK8uAzNbx
      Current DID set to V4SGRU86Z58d6TV7PBUe6f
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBUe11
      Adding nym V4SGRU86Z58d6TV7PBUe11
      Nym V4SGRU86Z58d6TV7PBUe11 added
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV disconnected from Node5C
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBUe12
      Adding nym V4SGRU86Z58d6TV7PBUe12
      Nym V4SGRU86Z58d6TV7PBUe12 added
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV disconnected from Node6C
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBUe13
      Adding nym V4SGRU86Z58d6TV7PBUe13
      Nym V4SGRU86Z58d6TV7PBUe13 added
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBUe13
      Adding nym V4SGRU86Z58d6TV7PBUe13
      Nym V4SGRU86Z58d6TV7PBUe13 added
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBUe14
      Adding nym V4SGRU86Z58d6TV7PBUe14
      Nym V4SGRU86Z58d6TV7PBUe14 added
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV disconnected from Node4C
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBUe15
      Adding nym V4SGRU86Z58d6TV7PBUe15
      Nym V4SGRU86Z58d6TV7PBUe15 added
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBUe25
      Adding nym V4SGRU86Z58d6TV7PBUe25
      Nym V4SGRU86Z58d6TV7PBUe25 added
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBU123
      Adding nym V4SGRU86Z58d6TV7PBU123
      Nym V4SGRU86Z58d6TV7PBU123 added
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV disconnected from Node3C
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBU124
      Adding nym V4SGRU86Z58d6TV7PBU124
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV now connected to Node3C
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBU125
      Adding nym V4SGRU86Z58d6TV7PBU125
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBU125
      Adding nym V4SGRU86Z58d6TV7PBU125
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV now connected to Node4C
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBU125
      Adding nym V4SGRU86Z58d6TV7PBU125
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV now connected to Node5C
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBU126
      Adding nym V4SGRU86Z58d6TV7PBU126
      sovrin@test> send NYM dest=V4SGRU86Z58d6TV7PBU127
      Adding nym V4SGRU86Z58d6TV7PBU127
      CONNECTION: EkUTN5MQk7HKy6YNZfDAAD7iP3b5bb72XUd1YkJYmSUV now connected to Node6C
      Nym V4SGRU86Z58d6TV7PBU126 added
      Nym V4SGRU86Z58d6TV7PBU124 added
      Nym V4SGRU86Z58d6TV7PBU127 added
      Nym V4SGRU86Z58d6TV7PBU125 added
      Nym V4SGRU86Z58d6TV7PBU125 added
      Nym V4SGRU86Z58d6TV7PBU125 added

      Attachments

        1. Node1.log
          5.26 MB
        2. Node2.log
          5.25 MB
        3. Node3.log
          4.79 MB
        4. Node4.log
          5.09 MB
        5. Node5.log
          3.51 MB
        6. Node6.log
          2.99 MB

        Issue Links

          Activity

            People

              danielhardman Daniel Hardman
              ozheregelya Olga Zheregelya
              Andrey Goncharov, Olga Zheregelya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: