Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unit Test On windows-latest (JDK: 8) action failed #14360

Open
3 of 4 tasks
sunheyi6 opened this issue Jun 24, 2024 · 5 comments
Open
3 of 4 tasks

[Bug] Unit Test On windows-latest (JDK: 8) action failed #14360

sunheyi6 opened this issue Jun 24, 2024 · 5 comments
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@sunheyi6
Copy link
Contributor

sunheyi6 commented Jun 24, 2024

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

dubbo 3.2

Steps to reproduce this issue

in action

What you expected to happen

test action run success;

Anything else

error code :

00:30:56.252 |-WARN  [main] dubbo.common.cache.FileCacheStoreFactory:    -|  [DUBBO] Failed to create file store cache. Local file cache will be disabled. Cache file name: D:\a\dubbo\dubbo\dubbo-common\target\test-classes\testCacheContains.dubbo.cache, dubbo version: 3.3.0-beta.5-SNAPSHOT, current host: 172.31.112.1, error code: 0-3. This may be caused by inaccessible of cache path, go to https://dubbo.apache.org/faq/0/3 to find instructions. 
org.apache.dubbo.common.cache.FileCacheStoreFactory$PathNotExclusiveException: D:\a\dubbo\dubbo\dubbo-common\target\test-classes\testCacheContains.dubbo.cache is not exclusive. Maybe multiple Dubbo instances are using the same folder.
	at org.apache.dubbo.common.cache.FileCacheStoreFactory.tryFileLock(FileCacheStoreFactory.java:199) ~[classes/:?]
	at org.apache.dubbo.common.cache.FileCacheStoreFactory.getFile(FileCacheStoreFactory.java:157) ~[classes/:?]
	at org.apache.dubbo.common.cache.FileCacheStoreFactory.lambda$getInstance$0(FileCacheStoreFactory.java:120) ~[classes/:?]
	at org.apache.dubbo.common.utils.ConcurrentHashMapUtils.computeIfAbsent(ConcurrentHashMapUtils.java:42) ~[classes/:?]
	at org.apache.dubbo.common.cache.FileCacheStoreFactory.getInstance(FileCacheStoreFactory.java:120) ~[classes/:?]
	at org.apache.dubbo.common.cache.FileCacheStoreFactory.getInstance(FileCacheStoreFactory.java:80) ~[classes/:?]
	at org.apache.dubbo.common.cache.FileCacheStoreFactoryTest.testCacheContains(FileCacheStoreFactoryTest.java:62) ~[test-classes/:?]
	... suppressed 31 lines
	at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_412]
	... suppressed 9 lines
	at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_412]
	... suppressed 21 lines
	at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56) [surefire-junit-platform-3.3.0.jar:3.3.0]
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184) [surefire-junit-platform-3.3.0.jar:3.3.0]
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148) [surefire-junit-platform-

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@sunheyi6 sunheyi6 added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Jun 24, 2024
@AlbumenJ
Copy link
Member

Can you provide your workflow url? The msg above is not the root cause/

@sunheyi6
Copy link
Contributor Author

Can you provide your workflow url? The msg above is not the root cause/

in this url.
In general, the "Build and Test Scheduled 3.1" and "Build and Test Scheduled 3.3" workflows mostly result in errors, while the "Build and Test Scheduled 3.2" version occasionally succeeds.

@wcy666103
Copy link
Contributor

Can you provide your workflow url? The msg above is not the root cause/

in this url. In general, the "Build and Test Scheduled 3.1" and "Build and Test Scheduled 3.3" workflows mostly result in errors, while the "Build and Test Scheduled 3.2" version occasionally succeeds.

I feel like you're talking about a normal error, not a unit test faild.I see you gave a few links 3.2 to find the end because of plugin issues.

@sunheyi6
Copy link
Contributor Author

Can you provide your workflow url? The msg above is not the root cause/

in this url. In general, the "Build and Test Scheduled 3.1" and "Build and Test Scheduled 3.3" workflows mostly result in errors, while the "Build and Test Scheduled 3.2" version occasionally succeeds.

I feel like you're talking about a normal error, not a unit test faild.I see you gave a few links 3.2 to find the end because of plugin issues.

I don't think it's a normal error. Version 3.2 might be, but versions 3.1 and 3.3 both report stable errors, which means there is indeed a problem with the code and it needs to be modified, rather than thinking it's a normal error.

@AlbumenJ
Copy link
Member

Can you provide your workflow url? The msg above is not the root cause/

in this url. In general, the "Build and Test Scheduled 3.1" and "Build and Test Scheduled 3.3" workflows mostly result in errors, while the "Build and Test Scheduled 3.2" version occasionally succeeds.

I feel like you're talking about a normal error, not a unit test faild.I see you gave a few links 3.2 to find the end because of plugin issues.

I don't think it's a normal error. Version 3.2 might be, but versions 3.1 and 3.3 both report stable errors, which means there is indeed a problem with the code and it needs to be modified, rather than thinking it's a normal error.

Yep, you're right. But most of the failure are due to the stability of test cases. This is really hard and will takes lots of time to enhance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

3 participants