Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3527

The slave will not notice that a network cable is unplugged and will therefore reject failover/stopSlave commands

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4.1.3, 10.5.1.1
    • Fix Version/s: 10.4.1.3, 10.5.1.1
    • Component/s: Replication
    • Labels:
      None

      Description

      If a network cable between the master and slave is unplugged (or a switch crashes etc), ObjectInputStream#readObject will not get an exception. Neither the socket nor the input stream can be queried for information on whether or not the connection is working. AFAIK, the only way to find out if the network is down is to send a message.

      The slave commands stopSlave and failover are rejected if the network connection is working. To be absolutely sure that the connection is working, we need to ping the master when these commands are requested.

        Attachments

        1. derby-3527-1a.diff
          18 kB
          Jorgen Loland
        2. derby-3527-1a.stat
          0.5 kB
          Jorgen Loland
        3. derby-3527-1b.stat
          0.5 kB
          Jorgen Loland
        4. derby-3527-1b.diff
          24 kB
          Jorgen Loland
        5. derby-3527-1c.diff
          26 kB
          Jorgen Loland
        6. derby-3527-1c.stat
          0.7 kB
          Jorgen Loland
        7. derby-3527-1d.diff
          27 kB
          Jorgen Loland

          Issue Links

            Activity

              People

              • Assignee:
                jorgenlo Jorgen Loland
                Reporter:
                jorgenlo Jorgen Loland
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: