You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "niharrathod (via GitHub)" <gi...@apache.org> on 2023/03/16 11:10:59 UTC

[GitHub] [pulsar] niharrathod opened a new issue, #19838: Flaky-test: PulsarStandaloneTest.testMetadataInitialization

niharrathod opened a new issue, #19838:
URL: https://github.com/apache/pulsar/issues/19838

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Example failure
   
   <No failure observed running with Pulsar CI Github action>
   
   ### Exception stacktrace
   
   **Issue:**
    
   - Running test-case locally failed with below stack-trace.
   
   ```
   org.apache.pulsar.broker.PulsarServerException: java.lang.IllegalStateException: Unable to read VM NIC speed. You must set [loadBalancerOverrideBrokerNicSpeedGbps] to override it when load balancer is enabled.
   
   	at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:919)
   	at org.apache.pulsar.PulsarStandalone.start(PulsarStandalone.java:349)
   	at org.apache.pulsar.PulsarStandaloneTest.testMetadataInitialization(PulsarStandaloneTest.java:94)
   	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.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
   	at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:677)
   	at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221)
   	at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50)
   	at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969)
   	at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194)
   	at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148)
   	at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128)
   	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
   	at org.testng.TestRunner.privateRun(TestRunner.java:829)
   	at org.testng.TestRunner.run(TestRunner.java:602)
   	at org.testng.SuiteRunner.runTest(SuiteRunner.java:437)
   	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:431)
   	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:391)
   	at org.testng.SuiteRunner.run(SuiteRunner.java:330)
   	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
   	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
   	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1256)
   	at org.testng.TestNG.runSuitesLocally(TestNG.java:1176)
   	at org.testng.TestNG.runSuites(TestNG.java:1099)
   	at org.testng.TestNG.run(TestNG.java:1067)
   	at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
   	at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)
   Caused by: java.lang.IllegalStateException: Unable to read VM NIC speed. You must set [loadBalancerOverrideBrokerNicSpeedGbps] to override it when load balancer is enabled.
   	at org.apache.pulsar.broker.PulsarService.start(PulsarService.java:724)
   ```
   
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] tisonkun closed issue #19838: Flaky-test: PulsarStandaloneTest.testMetadataInitialization

Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun closed issue #19838: Flaky-test: PulsarStandaloneTest.testMetadataInitialization
URL: https://github.com/apache/pulsar/issues/19838


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] niharrathod commented on issue #19838: Flaky-test: PulsarStandaloneTest.testMetadataInitialization

Posted by "niharrathod (via GitHub)" <gi...@apache.org>.
niharrathod commented on issue #19838:
URL: https://github.com/apache/pulsar/issues/19838#issuecomment-1471758476

   
   While debugging: 
   
   - As part of PulsarService start, it fails while reading nic speed ("/sys/class/net/<nic>/speed") with "java.io.IOException: Invalid argument" exception. 
   
   - cat on same nic path fails for me. (my Wifi nic speed do not have specific value)
   ![image](https://user-images.githubusercontent.com/7273550/225599668-07923504-63c0-4002-ba9e-af737cd846a2.png)
   
   
   I believe Pulsar CI Github action is running on VM where nic speed is set and test run is able to read nic speed of a VM where test-suite is running. This failure can only be observed if test is running on machine/VM where nic speed is not set.
   
   Possible fix : 
   	
   - Since, The test is asserting on metadata values such as Topic, Tenant, Namespace and nothing related to underlying machine resource limits  so, setting "loadBalancerOverrideBrokerNicSpeedGbps=2" as part of broker test config (standalone_no_client_auth.conf) would fix this.
   
   
   I am new to this project. So, can someone confirm the same? Happy to know if I have missed something. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org