When the peer got session down, transaction chain
was closed. This caused problems, when the peer
reconnected.
Moved closing of transaction chaining to when the
peer closes.
Change-Id: I7da35d7e0a2238f38b5a549e9848b418d467d27a
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
@Override
public synchronized void close() {
dropConnection();
+ this.chain.close();
// TODO should this perform cleanup ?
}
private synchronized void cleanup() {
// FIXME: BUG-196: support graceful restart
this.ribWriter.cleanTables(this.tables);
- this.chain.close();
this.tables.clear();
}
public void onTransactionChainFailed(final TransactionChain<?, ?> chain, final AsyncTransaction<?, ?> transaction, final Throwable cause) {
LOG.error("Transaction chain failed.", cause);
this.dropConnection();
+ this.chain.close();
this.chain = this.rib.createPeerChain(this);
}