- 07 Jul, 2009 9 commits
-
-
Vincent Pelletier authored
Prevent errors from happening in __del__ when instance gets destroyed before connecting. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@814 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@813 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Don't intercept exceptions arising from connection code. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@812 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
nodes during operation state. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@811 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
This allows using introspection to document available commands, so implement that too. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@810 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@809 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Make client asynchronous base handler only attemp to dispatch response packets, and raise if it is not an expected response. Add a method on Packet class to determine if it's a response. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@808 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Make MTClientConnection.ask register message to dispatcher. This makes sure registration happens before the message has a chance of being sent. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@807 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@806 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 06 Jul, 2009 25 commits
-
-
Grégory Wisniewski authored
replication. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@805 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
nodes to other storage nodes (during replications). Move The handler method in the common handler class. Move AskTransactionInformation handler in the same handler for the same reason and clean the same method in the verification handler, where the message can only be sent by the primary master node. Fix a super construtor call. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@804 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Prevent killing the ast connection iterated upon when no connection has been closed (kills primary master node connection when any storage is in a non-running state upon startup...). git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@803 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
decorators. Delete methods that raise UnexpectedPacketError since the default base handler already do this job. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@802 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
way to clean old nodes on non-master nodes. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@801 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
the setClusterState packet with is received from the admin node. If no partition table/IDs were gathered before, wait for at least one storage node and use the first to create the initial partition table. A timeout is left to act as it was done before, to preserve automatic startup in tests, will be removed latter. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@800 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Make handleAnswerPrimaryMaster, handleRequestNodeIdentification and handleAskPrimaryMaster resilient to connection loss. As they are involved in question-response exchanges during election on connections which will get dropped as soon as a master arises, they must check if the connection is still opened before trying to send. Note: the connection might get closed anyway during the actual send, but this is handled separately already. The problem we fix here emerged because of more tedious checkings in Connection's ask & answer methods. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@799 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
consistent with client <> master communication. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@798 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
Don't let polling thread die from any exception. Instead, emit a log with exception traceback and retry polling. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@797 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@796 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@795 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
The recovery stage is used only one time, when switching to primary state. Each time the cluster lost the operational status (a cell has no up to date node), the verification stage restart. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@794 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
storage is gathering the full table. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@793 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@792 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
already known by UUID. This avoid duplicate entries in the node manager. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@791 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
broadcast it as down state. Just broadcast its information and running state. Master don't send the partition table to storage node, they are it from the initialization storage stage. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@790 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@789 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
Move common handlers in handler.py module. Add InitializationHandler, applied on the master connection while retreiving the partition table and node list. Replace a call to (inexistant) method handleUnexpectedPacket with a raise of UnexpectedPacketError exception. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@788 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
- test more steps - fix erroneous assertion - use a local variable to detect that all handler were executed, rather than a class variable git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@787 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@786 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Aurel authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@785 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@784 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
handlers/replication.py in commit #778. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@783 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@782 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Aurel authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@781 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
- 03 Jul, 2009 6 commits
-
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@780 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@779 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@778 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
directory. Replicator's handler is moved into handlers/replication.py. Clean some imports. git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@776 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Grégory Wisniewski authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@775 71dcc9de-d417-0410-9af5-da40c76e7ee4
-
Vincent Pelletier authored
git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@774 71dcc9de-d417-0410-9af5-da40c76e7ee4
-