You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/12/07 01:06:53 UTC

[GitHub] [pinot] tt0suzy opened a new issue, #9924: [Flaky-test] PluginManagerTest.testGetPluginsToLoad

tt0suzy opened a new issue, #9924:
URL: https://github.com/apache/pinot/issues/9924

   `org.apache.pinot.spi.plugin.PluginManagerTest.testGetPluginsToLoad`
   
   This is a flaky test, it can pass mvn test but when run using the tool [NonDex](https://github.com/TestingResearchIllinois/NonDex), it fails. NonDex is a tool that will introduce non-determinism in certain java collections. The test shows below:
   
   ```
   -------------------------------------------------------------------------------
   Test set: org.apache.pinot.spi.plugin.PluginManagerTest
   -------------------------------------------------------------------------------
   Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.061 s <<< FAILURE! - in org.apache.pinot.spi.plugin.PluginManagerTest
   org.apache.pinot.spi.plugin.PluginManagerTest.testGetPluginsToLoad  Time elapsed: 0.732 s  <<< FAILURE!
   java.lang.AssertionError: Lists differ at element [0]: p1 != p2 expected [p1] but found [p2]
   	at org.testng.Assert.fail(Assert.java:93)
   	at org.testng.Assert.failNotEquals(Assert.java:512)
   	at org.testng.Assert.assertEqualsImpl(Assert.java:134)
   	at org.testng.Assert.assertEquals(Assert.java:567)
   	at org.testng.Assert.assertEquals(Assert.java:532)
   	at org.apache.pinot.spi.plugin.PluginManagerTest.testGetPluginsToLoad(PluginManagerTest.java:116)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
   	at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
   	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
   	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
   	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
   	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
   	at org.testng.TestRunner.privateRun(TestRunner.java:744)
   	at org.testng.TestRunner.run(TestRunner.java:602)
   	at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
   	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
   	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
   	at org.testng.SuiteRunner.run(SuiteRunner.java:289)
   	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
   	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
   	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
   	at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
   	at org.testng.TestNG.runSuites(TestNG.java:1144)
   	at org.testng.TestNG.run(TestNG.java:1115)
   	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:136)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)
   	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
   	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:145)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
   	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
   ```
   Steps to reproduce the failure:
   
   Run the following command in pinot:
    
   1. First, build the module: 
   `mvn -pl pinot-spi -am -DskipTests`
   2. Then run the test using NonDex 
     `mvn -pl pinot-spi edu.illinois:nondex-maven-plugin:2.1:nondex -Dtest=org.apache.pinot.spi.plugin.PluginManagerTest#testGetPluginsToLoad`
   
   The result will be saved under the module folder in .nondex
   
   
   


-- 
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@pinot.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang closed issue #9924: [Flaky-test] PluginManagerTest.testGetPluginsToLoad

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang closed issue #9924: [Flaky-test] PluginManagerTest.testGetPluginsToLoad
URL: https://github.com/apache/pinot/issues/9924


-- 
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@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org