You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "liuxiaocs7 (via GitHub)" <gi...@apache.org> on 2023/03/20 16:31:54 UTC

[GitHub] [shardingsphere] liuxiaocs7 opened a new issue, #24697: build fails on windows

liuxiaocs7 opened a new issue, #24697:
URL: https://github.com/apache/shardingsphere/issues/24697

   ## Question
   
   build fails on windows in `assertDecodeWriteRowEvent()` method.
   
   ```shell
   [INFO] 
   [INFO] --- maven-surefire-plugin:3.0.0-M7:test (default-test) @ shardingsphere-data-pipeline-postgresql ---
   [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
   [INFO] 
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.check.datasource.PostgreSQLDataSourceCheckerTest
   [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.559 s - in org.apache.shardingsphere.data.pipeline.postgresql.check.datasource.PostgreSQLDataSourceCheckerTest
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.datasource.PostgreSQLJdbcQueryPropertiesExtensionTest
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 s - in org.apache.shardingsphere.data.pipeline.postgresql.datasource.PostgreSQLJdbcQueryPropertiesExtensionTest
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.ingest.PostgreSQLPositionInitializerTest
   [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 s - in org.apache.shardingsphere.data.pipeline.postgresql.ingest.PostgreSQLPositionInitializerTest
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.ingest.PostgreSQLWALDumperTest
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.55 s - in org.apache.shardingsphere.data.pipeline.postgresql.ingest.PostgreSQLWALDumperTest
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.decode.TestDecodingPluginTest
   [ERROR] Tests run: 9, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.157 s <<< FAILURE! - in org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.decode.TestDecodingPluginTest
   [ERROR] org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.decode.TestDecodingPluginTest.assertDecodeUpdateRowEvent  Time elapsed: 0.004 s  <<< FAILURE!
   java.lang.AssertionError: 
   Expected: is " 1 2 3' 😊中 "
        but: was " 1 2 3' ?中 "
   	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
   	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
   	at org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.decode.TestDecodingPluginTest.assertDecodeUpdateRowEvent(TestDecodingPluginTest.java:67)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
   	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at java.util.ArrayList.forEach(ArrayList.java:1259)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at java.util.ArrayList.forEach(ArrayList.java:1259)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
   	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
   	at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:55)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:223)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:175)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:139)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
   	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
   [ERROR] org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.decode.TestDecodingPluginTest.assertDecodeWriteRowEvent  Time elapsed: 0.001 s  <<< FAILURE!
   java.lang.AssertionError: 
   Expected: is " 1 2 3' 😊中"
        but: was " 1 2 3' ?中"
   	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
   	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
   	at org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.decode.TestDecodingPluginTest.assertDecodeWriteRowEvent(TestDecodingPluginTest.java:55)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
   	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
   	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
   	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
   	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
   	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at java.util.ArrayList.forEach(ArrayList.java:1259)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at java.util.ArrayList.forEach(ArrayList.java:1259)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
   	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
   	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
   	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
   	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
   	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
   	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
   	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
   	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
   	at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:55)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:223)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:175)
   	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:139)
   	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
   	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
   	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
   	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.PostgreSQLLogicalReplicationTest
   [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.238 s - in org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.PostgreSQLLogicalReplicationTest
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.WALEventConverterTest
   [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.12 s - in org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.WALEventConverterTest
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.WALPositionTest
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.apache.shardingsphere.data.pipeline.postgresql.ingest.wal.WALPositionTest
   [INFO] Running org.apache.shardingsphere.data.pipeline.postgresql.sqlbuilder.PostgreSQLPipelineSQLBuilderTest
   [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s - in org.apache.shardingsphere.data.pipeline.postgresql.sqlbuilder.PostgreSQLPipelineSQLBuilderTest
   [INFO] 
   [INFO] Results:
   [INFO] 
   [ERROR] Failures: 
   [ERROR]   TestDecodingPluginTest.assertDecodeUpdateRowEvent:67 
   Expected: is " 1 2 3' 😊中 "
        but: was " 1 2 3' ?中 "
   [ERROR]   TestDecodingPluginTest.assertDecodeWriteRowEvent:55 
   Expected: is " 1 2 3' 😊中"
        but: was " 1 2 3' ?中"
   [INFO] 
   [ERROR] Tests run: 37, Failures: 2, Errors: 0, Skipped: 0
   [INFO] 
   ```
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

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


[GitHub] [shardingsphere] twitchob commented on issue #24697: build fails on windows

Posted by "twitchob (via GitHub)" <gi...@apache.org>.
twitchob commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1486108136

   > 
   This is because of jdk version issue.Upgrade your jdk to version 11 or above,I upgraded to version 17 to fix the problem.
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] twitchob commented on issue #24697: build fails on windows

Posted by "twitchob (via GitHub)" <gi...@apache.org>.
twitchob commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1486126956

   @liuxiaocs7  The development team has already revised the documentation:  `https://shardingsphere.apache.org/community/cn/involved/contribute/dev-env/`
   ![image](https://user-images.githubusercontent.com/34822229/228114554-79e67116-6347-442a-8cdd-27b145157b55.png)
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] liuxiaocs7 commented on issue #24697: build fails on windows

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1486201679

   > @liuxiaocs7 The development team has already revised the documentation: https://shardingsphere.apache.org/community/en/involved/contribute/dev-env/ ![fbf2b146d9d60a33364a3f71ab1e5ba](https://user-images.githubusercontent.com/34822229/228115341-12db41b6-d4a8-45e7-9141-ebd2ffdea024.png)
   
   I missed it, thanks!


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] liuxiaocs7 commented on issue #24697: build fails on windows

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1486105374

   > Hello!Have you solved the problem?
   
   It worked before, just refer the doc https://shardingsphere.apache.org/community/cn/involved/contribute/contributor/.
   
   ```
   mvn clean install -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Djacoco.skip=true -DskipITs -DskipTests -Prelease
   ```
   
    but now i pull the latest code from master branch and re-install, it got error:
   
   ```
   [ERROR]   符号:   类 CountSingleTableContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[203,48] 找不到符号
   [ERROR]   符号:   类 AlterComputeNodeContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[208,64] 找不到符号
   [ERROR]   符号:   类 SetDefaultSingleTableStorageUnitContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[212,44] 找不到符号
   [ERROR]   符号:   类 PropertiesDefinitionContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[224,53] 找不到符号
   [ERROR]   符号:   类 UnregisterStorageUnitContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[231,48] 找不到符号
   [ERROR]   符号:   类 ShowStorageUnitsContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[238,44] 找不到符号
   [ERROR]   符号:   类 DatabaseNameContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[243,47] 找不到符号
   [ERROR]   符号:   类 SetDistVariableContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[248,49] 找不到符号
   [ERROR]   符号:   类 ShowLogicalTablesContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[254,65] 找不到符号
   [ERROR]   符号:   类 ShowDefaultSingleTableStorageUnitContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[259,47] 找不到符号
   [ERROR]   符号:   类 ShowSingleTableContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[265,48] 找不到符号
   [ERROR]   符号:   类 ShowDistVariableContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[270,49] 找不到符号
   [ERROR]   符号:   类 ShowDistVariablesContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[275,55] 找不到符号
   [ERROR]   符号:   类 RefreshDatabaseMetadataContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[280,52] 找不到符号
   [ERROR]   符号:   类 RefreshTableMetadataContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[296,59] 找不到符号
   [ERROR]   符号:   类 ExportDatabaseConfigurationContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[301,46] 找不到符号
   [ERROR]   符号:   类 ExportMetaDataContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[306,50] 找不到符号
   [ERROR]   符号:   类 ExportStorageNodesContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[311,56] 找不到符号
   [ERROR]   符号:   类 ConvertYamlConfigurationContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[316,56] 找不到符号
   [ERROR]   符号:   类 ShowRulesUsedStorageUnitContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[321,59] 找不到符号
   [ERROR]   符号:   类 ImportDatabaseConfigurationContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[326,46] 找不到符号
   [ERROR]   符号:   类 ImportMetaDataContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[331,49] 找不到符号
   [ERROR]   符号:   类 ShowMigrationRuleContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[336,50] 找不到符号
   [ERROR]   符号:   类 AlterMigrationRuleContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[343,56] 找不到符号
   [ERROR]   符号:   类 InventoryIncrementalRuleContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[358,46] 找不到符号
   [ERROR]   符号:   类 ReadDefinitionContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[363,47] 找不到符号
   [ERROR]   符号:   类 WriteDefinitionContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[367,56] 找不到符号
   [ERROR]   符号:   类 RateLimiterContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[372,51] 找不到符号
   [ERROR]   符号:   类 AlgorithmDefinitionContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[376,46] 找不到符号
   [ERROR]   符号:   类 PropertiesDefinitionContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[387,43] 找不到符号
   [ERROR]   符号:   类 WorkerThreadContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[391,40] 找不到符号
   [ERROR]   符号:   类 BatchSizeContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[395,43] 找不到符号
   [ERROR]   符号:   类 ShardingSizeContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[400,43] 找不到符号
   [ERROR]   符号:   类 LockClusterContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] /D:/Development/Code/Repository/shardingsphere/distsql/parser/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java:[405,45] 找不到符号
   [ERROR]   符号:   类 UnlockClusterContext
   [ERROR]   位置: 类 org.apache.shardingsphere.distsql.parser.core.kernel.KernelDistSQLStatementVisitor
   [ERROR] -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
   [ERROR]
   [ERROR] After correcting the problems, you can resume the build with the command
   [ERROR]   mvn <args> -rf :shardingsphere-distsql-parser
   ```


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] liuxiaocs7 commented on issue #24697: build fails on windows

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1486123732

   Hi, @twitchob, thanks for your help. I used JDK17 in JAVA_HOME before and successfully built it, but recently switched back to JDK1.8 and failed. Now I switched to JDK17 and used the commands in the document to succeed.
   
   Should we update the [developer guide](https://shardingsphere.apache.org/community/cn/involved/contribute/contributor/) to limit the jdk version(>=11), after all many people still use JDK1.8 by default?
   
   CC @terrymanu @TeslaCN 
   
   As for the encoding problem of the test in the windows environment mentioned above, further testing is required.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] liuxiaocs7 commented on issue #24697: build fails on windows

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1486102957

   > What is your ShardingSphere and JDK version?
   
   ShardingSphere from master branch and JDK 1.8
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] terrymanu commented on issue #24697: build fails on windows

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1477234974

   What is your ShardingSphere and JDK version?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] TeslaCN commented on issue #24697: build fails on windows

Posted by "TeslaCN (via GitHub)" <gi...@apache.org>.
TeslaCN commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1477354982

   Try setting environment variable
   ```
   JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
   ```


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] TeslaCN closed issue #24697: build fails on windows

Posted by "TeslaCN (via GitHub)" <gi...@apache.org>.
TeslaCN closed issue #24697: build fails on windows
URL: https://github.com/apache/shardingsphere/issues/24697


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] twitchob commented on issue #24697: build fails on windows

Posted by "twitchob (via GitHub)" <gi...@apache.org>.
twitchob commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1484407448

   Hello!Have you solved the problem?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] liuxiaocs7 commented on issue #24697: build fails on windows

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on issue #24697:
URL: https://github.com/apache/shardingsphere/issues/24697#issuecomment-1486109702

   > > 
   > 
   > This is because of jdk version issue.Upgrade your jdk to version 11 or above,I upgraded to version 17 to fix the problem.
   
   got it, i'll have a try, thanks!


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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