• Julien Muchembled's avatar
    storage: fix possible crash when delaying replication requests · d3c22487
    Julien Muchembled authored
    Traceback (most recent call last):
      [...]
      File "neo/storage/handlers/client.py", line 115, in askStoreObject
        *e.args)
      File "neo/lib/handler.py", line 333, in queueEvent
        self.sortQueuedEvents()
      File "neo/lib/handler.py", line 326, in <lambda>
        self._event_queue.sort(key=key))()
      File "neo/storage/transactions.py", line 67, in __lt__
        return self.locking_tid < other.locking_tid
    AttributeError: 'NoneType' object has no attribute 'locking_tid'
    
    Pending events:
      (None, <askFetchTransactions: ...>)
      (<Transaction(C13, locking_tid=03c266508a058388, tid=None, age=0.21s) at 0x7f086bbc3d50>, <_askStoreObject: ...>)
    d3c22487
testReplication.py 33 KB