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 02:11:46 UTC

[GitHub] [pinot] tt0suzy opened a new issue, #9926: [Flaky-test] org.apache.pinot.common.utils.URIUtilsTest.testBuildURI

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

   `org.apache.pinot.common.utils.URIUtilsTest.testBuildURI`
   
   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.common.utils.URIUtilsTest
   -------------------------------------------------------------------------------
   Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.384 s <<< FAILURE! - in org.apache.pinot.common.utils.URIUtilsTest
   org.apache.pinot.common.utils.URIUtilsTest.testBuildURI  Time elapsed: 0.017 s  <<< FAILURE!
   java.lang.AssertionError: expected [http://foo/bar?stringParam=aString&stringParamNeedsEncoding=%7B%22format%22%3A%22JSON%22%2C%22timeout%22%3A1000%7D] but found [http://foo/bar?stringParamNeedsEncoding=%7B%22format%22%3A%22JSON%22%2C%22timeout%22%3A1000%7D&stringParam=aString]
   	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:115)
   	at org.testng.Assert.assertEquals(Assert.java:189)
   	at org.testng.Assert.assertEquals(Assert.java:199)
   	at org.apache.pinot.common.utils.URIUtilsTest.testBuildURI(URIUtilsTest.java:89)
   	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-common -am -DskipTests`
   2. Then run the test using NonDex
   `mvn -pl pinot-common edu.illinois:nondex-maven-plugin:2.1:nondex -Dtest=org.apache.pinot.common.utils.URIUtilsTest#testBuildURI`
   
   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 #9926: [Flaky-test] org.apache.pinot.common.utils.URIUtilsTest.testBuildURI

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang closed issue #9926: [Flaky-test] org.apache.pinot.common.utils.URIUtilsTest.testBuildURI
URL: https://github.com/apache/pinot/issues/9926


-- 
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