1. 25 Jul, 2014 2 commits
  2. 20 Jun, 2014 1 commit
    • Julien Muchembled's avatar
      client: clean up import/export code · d562bf8f
      Julien Muchembled authored
      - Remove leftover warning about a bug that was fixed in
        commit e76af297
      - In neomigrate script, open NEO storage read-only.
      - IStorageIteration is already implemented.
      - Review comments.
      - In neomigrate script, warn that IStorageRestoreable is not implemented.
      - Do not call 'close' method on source iterator. BaseStorage does not do it and
        this is not part of ZODB API. In the case of FileStorage, resource are freed
        automatically during garbage collection.
  3. 03 Jun, 2014 1 commit
  4. 29 May, 2014 1 commit
  5. 07 Jan, 2014 1 commit
    • Julien Muchembled's avatar
      Add test showing that clients may be stuck on an old snapshot in case of failure during tpc_finish · fd4cfaa9
      Julien Muchembled authored
      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
      -            self.runManager(RecoveryManager)
                   while True:
      +                self.runManager(RecoveryManager)
                           if self.backup_tid:
      @@ -338,10 +338,6 @@ def playPrimaryRole(self):
                                   raise RuntimeError("No upstream cluster to backup"
                                                      " defined in configuration")
      -                        # 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)
                       except OperationFailure:
  6. 23 Aug, 2012 1 commit
  7. 20 Aug, 2012 2 commits
    • Julien Muchembled's avatar
      Comment about backup limitations · dd556379
      Julien Muchembled authored
    • Julien Muchembled's avatar
      More bugfixes to backup mode · 08742377
      Julien Muchembled authored
      - catch OperationFailure
      - reset transaction manager when leaving backup mode
      - send appropriate target tid to a storage that updates a outdated cell
      - clean up partition table when leaving BACKINGUP state unexpectedly
      - make sure all readable cells of a partition have the same 'backup_tid'
        if they have the same data, so that we know when internal replication is
        finished when leaving backup mode
      - fix storage not finished internal replication when leaving backup mode
  8. 16 Aug, 2012 1 commit
  9. 15 Aug, 2012 1 commit
  10. 10 Aug, 2012 1 commit
    • Julien Muchembled's avatar
      Start renaming UUID into NID, because node IDs are not 128 bits length anymore · b81ae60a
      Julien Muchembled authored
      SQL tables can be upgraded using:
        UPDATE config SET name = 'nid' WHERE name = 'uuid';
      then for MySQL:
        ALTER TABLE pt CHANGE uuid nid INT NOT NULL;
      or SQLite:
        ALTER TABLE pt RENAME TO old_pt;
        INSERT INTO pt SELECT * from old_pt;
        DROP TABLE old_pt;
  11. 23 Jul, 2012 2 commits
  12. 13 Jul, 2012 1 commit
  13. 06 Jul, 2012 1 commit
  14. 05 Jul, 2012 1 commit
  15. 23 Apr, 2012 1 commit
    • Vincent Pelletier's avatar
      Document an RC bug on tpc_finish. · 6c500078
      Vincent Pelletier authored
      Also, change the way TTIDs are generated in preparation for that bug's fix:
      we will need TTID to be monotonous across master restarts and TID generator
      provides this feature.
  16. 12 Mar, 2012 2 commits
  17. 24 Feb, 2012 1 commit
    • Julien Muchembled's avatar
      Implements backup using specialised storage nodes and relying on replication · 8e3c7b01
      Julien Muchembled authored
      Replication is also fully reimplemented:
      - It is not done anymore on whole partitions.
      - It runs at lowest priority not to degrades performance for client nodes.
      Schema of MySQL table is changed to optimize storage layout: rows are now
      grouped by age, for good partial replication performance.
      This certainly also speeds up simple loads/stores.
  18. 29 Sep, 2011 1 commit
  19. 09 Sep, 2011 1 commit
  20. 03 Sep, 2011 1 commit
  21. 10 Jun, 2011 1 commit
    • Julien Muchembled's avatar
      Introduce light functional tests, using threads and serialized processing · 1ef149c2
      Julien Muchembled authored
      This allows to setup an almost fully functional cluster without additional
      processes. Threads are scheduled so that they never run simultaneously,
      eliminating most random.
      There's still much improvement possible like controlled randomization,
      or easier debugging when switching from one thread to another.
      As mock objects are not usable in such tests, an API should be implemented to
      trace/count any method call we'd like to check.
      This fixes test_notifyNodeInformation_checkUnregisterStorage
      git-svn-id: https://svn.erp5.org/repos/neo/trunk@2775 71dcc9de-d417-0410-9af5-da40c76e7ee4
  22. 27 May, 2011 1 commit
    • Julien Muchembled's avatar
      connection: reimplement timeout logic and redefine pings as a keep-alive feature · 737e227a
      Julien Muchembled authored
      - Previous implementation was not able to import transactions with many small
        objects, the client for faster to send a store request than to process its
        answer. If X is the difference of time for these 2 operations, the maximum
        number of objects a transaction could contain was CRITICAL_TIMEOUT / X.
        And HasLock feature can't act as a workaround because it is not working yet.
      - Change API of 'on_timeout', which currently only used by HasLock.
      - Stop pinging when we wait for an answer. This wastes resources and would
        never recover any bad state.
      - Make client connections send pings when they are idle instead.
        This implements keep-alive feature for high availability.
        Start with an non-configurable period of 60 seconds.
      - Move processing of ping/pong to handlers.
      git-svn-id: https://svn.erp5.org/repos/neo/trunk@2762 71dcc9de-d417-0410-9af5-da40c76e7ee4
  23. 02 May, 2011 1 commit
  24. 10 Jan, 2011 1 commit
  25. 16 Dec, 2010 1 commit
  26. 15 Dec, 2010 7 commits
  27. 08 Nov, 2010 1 commit
  28. 27 Oct, 2010 1 commit
  29. 01 Oct, 2010 2 commits