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

File handle is leaked when a Slave replication is shutdown with failover=true

    XMLWordPrintableJSON

Details

    • Normal
    • Seen in production

    Description

      As part of our use of derby replication, we shut the slave down if we detect reachability issues with the master. Normally we shut it down, and bring it back up as a regular database in read-only mode. Then when the master can, it tries to push a fresh copy back to the slave system. However, during the failover=true shutdown on the slave, the log file ".../name/log/log1.dat" is still open.

      Because of this open file, at least on Windows, it's impossible to move the database file out of the way, and to install a fresh copy from the master.

      Attachments

        1. backport-10.8.diff
          6 kB
          Knut Anders Hatlen
        2. backport-10.9.diff
          10 kB
          Knut Anders Hatlen
        3. d5937-3a-test-datasource.diff
          8 kB
          Knut Anders Hatlen
        4. d5937-2a-close.diff
          2 kB
          Knut Anders Hatlen
        5. d5937-1a-test.diff
          12 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            glennmcg Glenn McGregor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: