Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][broker][branch-3.0] Backport missed CompactedTopicImpl deadlock fixes #20697 and #20984 to branch 3.0 #24037

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Feb 28, 2025

Fixes #24034

Motivation & Modifications

This backports missed CompactedTopicImpl deadlock fixes #20697 and #20984 to branch 3.0

Open issue

While testing locally, this test fails with the changes:

[ERROR] Tests run: 43, Failures: 1, Errors: 0, Skipped: 38, Time elapsed: 192.271 s <<< FAILURE! - in org.apache.pulsar.compaction.CompactedTopicTest
[ERROR] org.apache.pulsar.compaction.CompactedTopicTest.testCompactionWithTopicUnloading  Time elapsed: 40.658 s  <<< FAILURE!
org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a org.apache.pulsar.compaction.CompactedTopicTest expected [1000] but found [501] within 30 seconds.
        at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
        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:985)
        at org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:769)
        at org.apache.pulsar.compaction.CompactedTopicTest.testCompactionWithTopicUnloading(CompactedTopicTest.java:628)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
        at org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:47)
        at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:76)
        at org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.AssertionError: expected [1000] but found [501]
        at org.testng.Assert.fail(Assert.java:110)
        at org.testng.Assert.failNotEquals(Assert.java:1577)
        at org.testng.Assert.assertEqualsImpl(Assert.java:149)
        at org.testng.Assert.assertEquals(Assert.java:131)
        at org.testng.Assert.assertEquals(Assert.java:979)
        at org.testng.Assert.assertEquals(Assert.java:955)
        at org.testng.Assert.assertEquals(Assert.java:989)
        at org.apache.pulsar.compaction.CompactedTopicTest.lambda$testCompactionWithTopicUnloading$16(CompactedTopicTest.java:631)
        at org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
        at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
        at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
        ... 4 more

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 28, 2025
@lhotari lhotari mentioned this pull request Feb 28, 2025
3 tasks
@lhotari lhotari force-pushed the lh-backport-CompactedTopicImpl-deadlock-fixes-to-branch-3.0 branch from 59dfb1b to 71e7cce Compare February 28, 2025 12:38
@lhotari lhotari marked this pull request as draft February 28, 2025 13:58
@lhotari
Copy link
Member Author

lhotari commented Mar 1, 2025

branch-3.0 is broken, #24038

@lhotari lhotari force-pushed the lh-backport-CompactedTopicImpl-deadlock-fixes-to-branch-3.0 branch from 71e7cce to e882745 Compare March 17, 2025 07:43
@lhotari lhotari marked this pull request as ready for review March 17, 2025 07:44
@lhotari lhotari force-pushed the lh-backport-CompactedTopicImpl-deadlock-fixes-to-branch-3.0 branch from e882745 to 7c6a345 Compare March 20, 2025 08:36
@lhotari lhotari force-pushed the lh-backport-CompactedTopicImpl-deadlock-fixes-to-branch-3.0 branch from 7c6a345 to aa84999 Compare March 26, 2025 09:43
@lhotari
Copy link
Member Author

lhotari commented Mar 26, 2025

Last required fix is #24131

@lhotari lhotari force-pushed the lh-backport-CompactedTopicImpl-deadlock-fixes-to-branch-3.0 branch from aa84999 to 94ecca4 Compare March 26, 2025 16:24
@lhotari lhotari merged commit 94ecca4 into apache:branch-3.0 Mar 26, 2025
42 of 45 checks passed
@lhotari
Copy link
Member Author

lhotari commented Mar 26, 2025

Closing this PR since #20697 and #20984 have been directly backported and cherry-picked to branch 3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs ready-to-test release/3.0.11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants