Skip to content

Conversation

@AnonHxy
Copy link
Contributor

@AnonHxy AnonHxy commented Feb 28, 2023

Motivation

An minor improvement by replacing ScheduledExecutorService to ExecutorService in ModularLoadManagerImpl

Modifications

Replace ScheduledExecutorService to ExecutorService in ModularLoadManagerImpl

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

Verifying this change

  • Make sure that the change passes the CI checks.

Matching PR in forked repository

AnonHxy#30

@github-actions
Copy link

github-actions bot commented Feb 28, 2023

@AnonHxy Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

@315157973
Copy link
Contributor

/pulsarbot run-failure-checks

@AnonHxy AnonHxy added this to the 3.0.0 milestone Mar 1, 2023
@AnonHxy AnonHxy merged commit 145e985 into apache:master Mar 1, 2023
@heesung-sohn
Copy link
Contributor

heesung-sohn commented Mar 4, 2023

@AnonHxy

The PR is causing a test failure.

 Check failure on line 785 in pulsar-broker/src/test/java/org/apache/pulsar/broker/namespace/NamespaceServiceTest.java

GitHub Actions
/ Flaky tests suite
NamespaceServiceTest.testModularLoadManagerRemoveBundleAndLoad
Cannot locate field scheduler on class org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerImpl

#17487 (comment)

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Mar 4, 2023

@AnonHxy

The PR is causing a test failure.

Thanks for your reminder. Fix it in this PR #19710 . PTAL

shibd pushed a commit to shibd/pulsar that referenced this pull request Oct 24, 2023
… in ModularLoadManagerImpl (apache#19656)

(cherry picked from commit 145e985)
shibd pushed a commit to shibd/pulsar that referenced this pull request Oct 24, 2023
… in ModularLoadManagerImpl (apache#19656)

(cherry picked from commit 145e985)
@lhotari
Copy link
Member

lhotari commented Mar 5, 2024

Why was this cherry-picked to branch-2.11? The tests are broken in branch-2.11

  Error:  Tests run: 42, Failures: 1, Errors: 0, Skipped: 36, Time elapsed: 21.939 s <<< FAILURE! - in org.apache.pulsar.broker.namespace.NamespaceServiceTest
  Error:  testModularLoadManagerRemoveBundleAndLoad(org.apache.pulsar.broker.namespace.NamespaceServiceTest)  Time elapsed: 2.615 s  <<< FAILURE!
  org.powermock.reflect.exceptions.FieldNotFoundException: No instance field named "scheduler" could be found in the class hierarchy of org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerImpl.
  	at org.powermock.reflect.internal.matcherstrategies.FieldNameMatcherStrategy.notFound(FieldNameMatcherStrategy.java:40)
  	at org.powermock.reflect.internal.WhiteboxImpl.findSingleFieldUsingStrategy(WhiteboxImpl.java:502)
  	at org.powermock.reflect.internal.WhiteboxImpl.findFieldInHierarchy(WhiteboxImpl.java:455)
  	at org.powermock.reflect.internal.WhiteboxImpl.findFieldInHierarchy(WhiteboxImpl.java:443)
  	at org.powermock.reflect.internal.WhiteboxImpl.getInternalState(WhiteboxImpl.java:427)
  	at org.powermock.reflect.Whitebox.getInternalState(Whitebox.java:292)
  	at org.apache.pulsar.broker.namespace.NamespaceServiceTest.waitResourceDataUpdateToZK(NamespaceServiceTest.java:830)
  	at org.apache.pulsar.broker.namespace.NamespaceServiceTest.testModularLoadManagerRemoveBundleAndLoad(NamespaceServiceTest.java:789)
  	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:568)
  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
  	at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
  	at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
  	at org.testng.internal.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)

@lhotari
Copy link
Member

lhotari commented Mar 5, 2024

Nevermind, cherry-picking and backporting #19710 to fix the issue in branch-2.11.

nodece pushed a commit to nodece/pulsar that referenced this pull request Jul 23, 2024
… in ModularLoadManagerImpl (apache#19656)

(cherry picked from commit 145e985)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Jul 24, 2024
… in ModularLoadManagerImpl (apache#19656)

(cherry picked from commit 145e985)
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants