Commit eefb4520 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Clear transaction informations by master notification only.

git-svn-id: 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 97824328
......@@ -21,7 +21,7 @@ from neo.handler import EventHandler
from neo import protocol
from neo.util import dump
from neo.exception import PrimaryFailure, OperationFailure
from neo.protocol import NodeStates, Packets, Errors
from neo.protocol import NodeStates, NodeTypes, Packets, Errors
class BaseMasterHandler(EventHandler):
......@@ -57,6 +57,10 @@ class BaseMasterHandler(EventHandler):
elif state == NodeStates.HIDDEN:
raise OperationFailure
elif node_type == NodeTypes.CLIENT and state != NodeStates.RUNNING:'Notified of non-running client, abort (%r)',
class BaseClientAndStorageOperationHandler(EventHandler):
......@@ -32,7 +32,6 @@ class ClientOperationHandler(BaseClientAndStorageOperationHandler):
def connectionLost(self, conn, new_state):
uuid = conn.getUUID()
node =
assert node is not None, conn
......@@ -70,7 +70,6 @@ class StorageClientHandlerTests(NeoTestBase):
conn = self._getConnection(uuid=uuid)
def test_18_askTransactionInformation1(self):
# transaction does not exists
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment