Skip to content

Conversation

@kirklund
Copy link
Contributor

In-progress changes for Partitioned Region Clear feature branch.

* Chain constructors to only one constructor that calls super
* Expose all arguments for dependency injection
* Provide type to recipients
* Use descriptive names for variables and methods
* Use Objects.requireNonNull instead of Assert.assertTrue
* Remove unnecessary uses of final, this, and super
* Use static logger
* Reformat some lines with weird formatting
* Generate serialVersionUID
* Use full words for parameter names
@kirklund
Copy link
Contributor Author

DistributedTestOpen failed with:

> Task :geode-wan:distributedTest

org.apache.geode.internal.cache.wan.parallel.ParallelWANStatsDUnitTest > testPRParallelPropagationWithGroupTransactionEventsDoesNotSendBatchesWithIncompleteTransactionsIfGatewaySenderIsStoppedWhileReceivingTrafficAndLaterStarted FAILED
    java.lang.AssertionError: expected:<0> but was:<1>
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:633)
        at org.apache.geode.internal.cache.wan.parallel.ParallelWANStatsDUnitTest.checkOnlyCompleteTransactionsAreReplicatedAfterSenderStopped(ParallelWANStatsDUnitTest.java:612)
        at org.apache.geode.internal.cache.wan.parallel.ParallelWANStatsDUnitTest.testPRParallelPropagationWithGroupTransactionEventsDoesNotSendBatchesWithIncompleteTransactionsIfGatewaySenderIsStoppedWhileReceivingTrafficAndLaterStarted(ParallelWANStatsDUnitTest.java:520)

And:

> Task :geode-core:distributedTest

org.apache.geode.management.MemberMXBeanDistributedTest > testBucketCount FAILED
    org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a lambda expression in org.apache.geode.management.MemberMXBeanDistributedTest expected:<[400]0> but was:<[375]0> within 5 minutes.
        at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:165)
        at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
        at org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
        at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:895)
        at org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:679)
        at org.apache.geode.management.MemberMXBeanDistributedTest.testBucketCount(MemberMXBeanDistributedTest.java:108)

        Caused by:
        java.util.concurrent.TimeoutException
            at java.util.concurrent.FutureTask.get(FutureTask.java:204)
            at org.awaitility.core.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:101)
            at org.awaitility.core.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:81)
            at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:101)
            ... 5 more

@kirklund kirklund force-pushed the GEODE-9132-PR-clear-locking-cleanup-03 branch from fe94c92 to 33b3293 Compare April 20, 2021 17:08
@kirklund
Copy link
Contributor Author

UnitTestOpenJDK8 and UnitTestOpenJDK11 both failed in an unrelated unit test:

> Task :geode-core:test

org.apache.geode.internal.classloader.ClassPathLoaderTest > testZeroLengthFile FAILED
    java.lang.AssertionError: 
    Expecting actual throwable to be an instance of:
      java.lang.IllegalArgumentException
    but was:
      java.lang.NullPointerException
    	at java.base/java.io.File.<init>(File.java:364)
    	at org.apache.geode.deployment.internal.JarDeployer.getNextVersionedJarFile(JarDeployer.java:101)
    	at org.apache.geode.deployment.internal.JarDeployer.deployWithoutRegistering(JarDeployer.java:84)
    	...(59 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed)
        at org.apache.geode.internal.classloader.ClassPathLoaderTest.testZeroLengthFile(ClassPathLoaderTest.java:109)

@kirklund
Copy link
Contributor Author

IntegrationTestOpen timeout exceeded.

Both UnitTestOpen jobs fail with unrelated failure:

org.apache.geode.internal.classloader.ClassPathLoaderTest > testZeroLengthFile FAILED
    java.lang.AssertionError: 
    Expecting actual throwable to be an instance of:
      java.lang.IllegalArgumentException
    but was:
      java.lang.NullPointerException
    	at java.base/java.io.File.<init>(File.java:364)
    	at org.apache.geode.deployment.internal.JarDeployer.getNextVersionedJarFile(JarDeployer.java:101)
    	at org.apache.geode.deployment.internal.JarDeployer.deployWithoutRegistering(JarDeployer.java:84)
    	...(59 remaining lines not displayed - this can be changed with Assertions.setMaxStackTraceElementsDisplayed)
        at org.apache.geode.internal.classloader.ClassPathLoaderTest.testZeroLengthFile(ClassPathLoaderTest.java:109)

@kirklund kirklund merged commit a8d9e52 into apache:feature/GEODE-7665 Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant