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

Flaky raptor tests: .FileSystemException: /tmp/.... failed to delete one or more files; see suppressed exceptions for details #12385

Open
arhimondr opened this issue May 13, 2022 · 10 comments · Fixed by #21213 · May be fixed by #12802
Labels
bug Something isn't working

Comments

@arhimondr
Copy link
Contributor

java.io.UncheckedIOException: java.nio.file.FileSystemException: /tmp/TrinoTest3453139378186970036: failed to delete one or more files; see suppressed exceptions for details
	at io.trino.testing.DistributedQueryRunner.close(DistributedQueryRunner.java:611)
	at io.trino.util.AutoCloseableCloser.close(AutoCloseableCloser.java:52)
	at io.trino.testing.AbstractTestQueryFramework.close(AbstractTestQueryFramework.java:109)
	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:104)
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:217)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:144)
	at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.nio.file.FileSystemException: /tmp/TrinoTest3453139378186970036: failed to delete one or more files; see suppressed exceptions for details
	at com.google.common.io.MoreFiles.throwDeleteFailed(MoreFiles.java:810)
	at com.google.common.io.MoreFiles.deleteRecursively(MoreFiles.java:561)
	at io.trino.server.testing.TestingTrinoServer.lambda$close$2(TestingTrinoServer.java:374)
	at com.google.common.io.Closer.close(Closer.java:218)
	at io.trino.server.testing.TestingTrinoServer.close(TestingTrinoServer.java:383)
	at com.google.common.io.Closer.close(Closer.java:218)
	at io.trino.testing.DistributedQueryRunner.close(DistributedQueryRunner.java:608)
	... 15 more
	Suppressed: java.nio.file.DirectoryNotEmptyException
		at java.base/sun.nio.fs.UnixSecureDirectoryStream.implDelete(UnixSecureDirectoryStream.java:204)
		at java.base/sun.nio.fs.UnixSecureDirectoryStream.deleteDirectory(UnixSecureDirectoryStream.java:221)
		at java.base/sun.nio.fs.UnixSecureDirectoryStream.deleteDirectory(UnixSecureDirectoryStream.java:42)
		at com.google.common.io.MoreFiles.deleteRecursivelySecure(MoreFiles.java:637)
		at com.google.common.io.MoreFiles.deleteRecursively(MoreFiles.java:538)
		... 20 more
@findepi
Copy link
Member

findepi commented Jun 7, 2022

@tangjiangling
Copy link
Member

@findepi
Copy link
Member

findepi commented Aug 30, 2022

@findepi
Copy link
Member

findepi commented Sep 7, 2022

@findepi findepi changed the title Flaky io.trino.plugin.raptor.legacy.TestRaptorConnectorTest Flaky raptor tests: .FileSystemException: /tmp/.... failed to delete one or more files; see suppressed exceptions for details Dec 29, 2023
@findepi findepi added the bug Something isn't working label Dec 29, 2023
@wendigo
Copy link
Contributor

wendigo commented Mar 22, 2024

I believe that this is solved by: 66e6f4d (#21161)

@wendigo
Copy link
Contributor

wendigo commented Mar 22, 2024

Happens more frequently on JDK 22 but reason is unknown. It is stable with the aforementioned change.

@findepi
Copy link
Member

findepi commented Mar 22, 2024

Thanks @wendigo . would be possible to move the fix to a separate PR?

@wendigo
Copy link
Contributor

wendigo commented Mar 22, 2024

@findepi sure.

@wendigo
Copy link
Contributor

wendigo commented Mar 22, 2024

@findepi here you go: #21213

@findepi
Copy link
Member

findepi commented Apr 24, 2024

https://github.com/trinodb/trino/actions/runs/8820173346/job/24214101965?pr=21691

[INFO] Results:
[INFO] 
Error:  Errors: 
Error:    TestRaptorStorageManager.tearDown:167 » FileSystem /tmp/5458528045541130757: failed to delete one or more files; see suppressed exceptions for details
[INFO] 
Error:  Tests run: 1041, Failures: 0, Errors: 1, Skipped: 168
[INFO] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
4 participants