Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1840

Sqoop2: Guard test DerbyProvider from infinite waits in Derby implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.4
    • 1.99.5
    • None
    • None

    Description

      This is pretty much follow up on SQOOP-1816 where I was facing situation that calling DriverManager.getConnection() for DerbyProvider would wait forever in case that Derby server failed to start. I've solved that in SQOOP-1816 by adding explicit call to ping() method that is suppose to throw an exception in case that the server is not available. At that time it solved my issue, but now the problem is back and I'm observing similar infinite wait inside the ping() call itself.

      I'm not sure what exactly is going wrong with on machine, but it's making the tests very unreliable. I've tried to google about the problem, but without much luck and hence I would like to propose to make the DerbyProvider smarter and prevent the infinite wait by calling certain "dangerous" methods with explicit timeout.

      Attachments

        1. SQOOP-1840.patch
          2 kB
          Jarek Jarcec Cecho
        2. SQOOP-1840.patch
          2 kB
          Jarek Jarcec Cecho
        3. SQOOP-1840.patch
          3 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: