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

DataSourceTest.testConnectionErrorEvent() failed with AssertionFailedError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • Test
    • None
    • ibm16, svn # 605788
    • Regression Test Failure

    Description

      Running suites.All with ibm16 on 12/19 I saw the following failure:

      There was 1 failure:
      1) testConnectionErrorEvent(org.apache.derbyTesting.functionTests.tests.jdbc4.DataSourceTest)junit.framework.AssertionFailedError
      at org.apache.derbyTesting.functionTests.tests.jdbc4.DataSourceTest.testConnectionErrorEvent(DataSourceTest.java:208)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:96)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

      The line in DataSourceTest that threw the assertion failure was line 208:

      //Now try to use various apis on the JDBC Connection object created
      //before shutdown and they all should generate connection error event.
      ...
      assertTrue(aes12.didConnectionErrorEventHappen());

      Attachments

        Activity

          People

            mamtas Mamta A. Satoor
            army A B
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: