Skip to content

Commit

Permalink
debug: Add debugging to track down buildbot failures.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Jul 29, 2010
1 parent 729d52b commit 3ff9ae7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
6 changes: 6 additions & 0 deletions xorp/bgp/bgp.cc
Expand Up @@ -160,7 +160,13 @@ BGPMain::~BGPMain()
#endif
) {
eventloop().run();
if (_peerlist->not_all_idle()) {
// Kick them again
XLOG_WARNING("Stopping all peers in ~BGPMain cleanup loop.\n");
_peerlist->all_stop();
}
}

/*
** NOTE: We expect one timer to be pending. The timer is in the xrl_router.
*/
Expand Down
5 changes: 3 additions & 2 deletions xorp/bgp/harness/peer.cc
Expand Up @@ -1468,8 +1468,9 @@ Peer::xrl_callback(const XrlError& error, const char *comment)
void
Peer::xrl_callback_connected(const XrlError& error, const char *comment)
{
debug_msg("callback_connected %s %s\n", comment, error.str().c_str());
if(XrlError::OKAY() == error) {
XLOG_INFO("%s: callback_connected, OK: %i %s %s\n",
_peername.c_str(), (int)(error.isOK()), comment, error.str().c_str());
if (error.isOK()) {
_connected = true;
} else {
_connected = false;
Expand Down
4 changes: 2 additions & 2 deletions xorp/bgp/peer.cc
Expand Up @@ -606,7 +606,7 @@ BGPPeer::event_start() // EVENTBGPSTART
*/
void
BGPPeer::event_stop(bool restart, bool automatic) // EVENTBGPSTOP
{
{
TIMESPENT();

switch(_state) {
Expand Down Expand Up @@ -2046,7 +2046,7 @@ BGPPeer::set_state(FSMState s, bool restart, bool automatic)
{
TIMESPENT();

debug_msg("Peer %s: Previous state: %s Current state: %s\n",
XLOG_INFO("Peer %s: Previous state: %s Current state: %s\n",
peerdata()->iptuple().str().c_str(),
pretty_print_state(_state),
pretty_print_state(s));
Expand Down
11 changes: 11 additions & 0 deletions xorp/cleanup_xorp.bash
@@ -0,0 +1,11 @@
#!/bin/bash

# Try to initialize the system before we start doing xorp tests.

# Kill all existing xorp processes
killall -9 -r xorp

# Remove tmp files
rm -fr /var/tmp/xrl.* || exit 1

exit 0

0 comments on commit 3ff9ae7

Please sign in to comment.