1. 30 Jul, 2014 4 commits
  2. 25 Jul, 2014 2 commits
  3. 24 Jul, 2014 4 commits
  4. 22 Jul, 2014 1 commit
  5. 08 Jul, 2014 4 commits
  6. 04 Jul, 2014 5 commits
  7. 26 Jun, 2014 1 commit
  8. 24 Jun, 2014 2 commits
  9. 20 Jun, 2014 3 commits
  10. 19 Jun, 2014 4 commits
  11. 05 Jun, 2014 1 commit
  12. 04 Jun, 2014 2 commits
  13. 03 Jun, 2014 3 commits
  14. 29 May, 2014 1 commit
  15. 08 Jan, 2014 1 commit
  16. 07 Jan, 2014 2 commits
    • NEO 1.1 · d4ed0828
      Julien Muchembled committed
    • Add test showing that clients may be stuck on an old snapshot in case of failure during tpc_finish · fd4cfaa9
      If anything wrong happens after a transaction is locked and before the end of
      onTransactionCommitted, recovery phase should be run again, so that the master
      gets correct last tid.
      
      Following patch by Vincent is an attempt to fix this:
      
      --- a/neo/master/app.py
      +++ b/neo/master/app.py
      @@ -329,8 +329,8 @@ def playPrimaryRole(self):
      
               # recover the cluster status at startup
               try:
      -            self.runManager(RecoveryManager)
                   while True:
      +                self.runManager(RecoveryManager)
                       self.runManager(VerificationManager)
                       try:
                           if self.backup_tid:
      @@ -338,10 +338,6 @@ def playPrimaryRole(self):
                                   raise RuntimeError("No upstream cluster to backup"
                                                      " defined in configuration")
                               self.backup_app.provideService()
      -                        # Reset connection with storages (and go through a
      -                        # recovery phase) when leaving backup mode in order
      -                        # to get correct last oid/tid.
      -                        self.runManager(RecoveryManager)
                               continue
                           self.provideService()
                       except OperationFailure:
      Julien Muchembled committed