Team 5: Virtual Casino

FT Test 2: Fault Tolerance with interactive replication manager.

Functionality:
Fault Tolerance
System Elements:
Use Case:
Test distribution:
Setting up the System
Running the Test
  1. At the Player Application Prompt " Q--Please enter your Player name: ", enter your name and you will see output like this:

     Q--Please enter your Player name:
    GeneW
     ---Contacting the Casino Floor...
     ---Found the naming service
     ---Found the Floor interface
     -->Registering the Player with the Floor...
     ---Player is registered with the Floor with playerID = 1
     -->Registered the Player with the Naming Service as: 1
     ---Found the Bank interface
     ---Found the Tables interface
    ...Buy chips from the Bank
     Q--How many chips do you want to buy?

  2. At this prompt, stop.
  3. At the replication manager shell, type "KIll Primary".  You will see something similar to this:

    Enter command > kill primary
    ---Killing replica on trouble
    ---Execing ssh trouble killall -9 java >/dev/null 2>/dev/null 
    ---ExitValue: 0
    Replica on trouble has been killed
    Enter command > ---ExitValue(2): -119
    Info: Failed to ping replica #2
    Info: Floor1 is the new primary
    ---Unbinding 'Floor2'
    Floor1.out>There are 0 players in bank DB.
    ---Killing replica on trouble
    ---Killing replica on trouble
    ---Execing ssh trouble killall -9 java >/dev/null 2>/dev/null 
    ---ExitValue: 1
    Info: Nothing to kill
    Exit value: 1
    ---Execing ssh trouble cd ~/app; ./startServer.sh -v -p server.props.etwilson -n 2 
    Floor2.out>Running server on trouble with PID: 30479
    ---try to find new replica
    ---not yet available
    Floor2.out>Info: Setting Verbose Mode
    Floor2.out>---Loading properties file: server.props.etwilson
    Floor2.out>
    Floor2.out>***********************************
    Floor2.out>* Virtual Casino Blackjack Server *
    Floor2.out>***********************************
    Floor2.out>
    Floor2.out>---Created ORB instance.
    Floor2.out>---Using database username of gene
    Floor2.out>---Using database pasword of philISGR8!
    ---try to find new replica
    ---not yet available
    ---try to find new replica
    ---not yet available
    ---try to find new replica
    ---not yet available
    Floor2.out>---Created Floor db object.
    Floor2.out>---Created Player db object.
    Floor2.out>---Created Bank db object.
    Floor2.out>---Created Table db object.
    Floor2.out>---Looking for naming service on roborally:6505
    Floor2.out>---Resolved NameService.
    Floor2.out>---Created Bank object.
    Floor2.out>---Created Tables object.
    Floor2.out>---Added name Floor2.
    Floor2.out>Info: Server ready and running .....
    ---try to find new replica
    ---new replica is OK
    ---New replica started on trouble
    Floor1.out>Floor: Added player Gebne to database assigning player #:1

  4. Now type the number of chips that you want to buy into the Player Application prompt. The Player Application should not indicate that there is anything wrong as it will transparently binds to the new replica.
Limitations
Last modified: Fri Mar 14 15:52:03 EST 2003