Derby
  1. Derby
  2. DERBY-3812

failure in testAttributeDrdaStreamOutBufferSize(org.apache.derbyTesting.functionTests.tests.management.NetworkServerMBeanTest)junit.framework.AssertionFailedError: expected:<0> but was:<131072>

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.5.1.1
    • Component/s: Test
    • Labels:
      None
    • Bug behavior facts:
      Regression Test Failure

      Description

      1) testAttributeDrdaStreamOutBufferSize(org.apache.derbyTesting.functionTests.tests.management.NetworkServerMBeanTest)junit.framework.AssertionFailedError: expected:<0> but was:<131072>
      at org.apache.derbyTesting.functionTests.tests.management.MBeanTest.assertIntAttribute(MBeanTest.java:401)
      at org.apache.derbyTesting.functionTests.tests.management.NetworkServerMBeanTest.testAttributeDrdaStreamOutBufferSize(NetworkServerMBeanTest.java:226)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:104)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

      FAILURES!!!

      1. Derby-3812_1.diff
        2 kB
        Erlend Birkenes

        Activity

        Hide
        Kathey Marsden added a comment -

        I think this is related to running the new OutBufferedStreamTest before this test and the property derby.drda.streamOutBufferSize is left set. Perhaps the test could use SystemPropertiesTestSetup instead of:

        Properties sysprops = System.getProperties();
        sysprops.put("derby.drda.streamOutBufferSize", "131072");

        so the property will get reset after the test runs.

        Show
        Kathey Marsden added a comment - I think this is related to running the new OutBufferedStreamTest before this test and the property derby.drda.streamOutBufferSize is left set. Perhaps the test could use SystemPropertiesTestSetup instead of: Properties sysprops = System.getProperties(); sysprops.put("derby.drda.streamOutBufferSize", "131072"); so the property will get reset after the test runs.
        Hide
        Erlend Birkenes added a comment -

        This should do it.Changed to SystemPropertyTestSetup as Kathey suggested.
        Thanks for the tip

        -Erlend

        Show
        Erlend Birkenes added a comment - This should do it.Changed to SystemPropertyTestSetup as Kathey suggested. Thanks for the tip -Erlend
        Hide
        Myrna van Lunteren added a comment -

        I committed patch Derby-3812_1.diff with revision 682531.
        (suites.All only had 1 failure which I get intermittently on my machine, with signature of DERBY-3561).

        Show
        Myrna van Lunteren added a comment - I committed patch Derby-3812_1.diff with revision 682531. (suites.All only had 1 failure which I get intermittently on my machine, with signature of DERBY-3561 ).

          People

          • Assignee:
            Erlend Birkenes
            Reporter:
            Kathey Marsden
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development