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

[Local FS] Should attempt to create a directory to the file #99

Open
asubb opened this issue Jan 5, 2021 · 0 comments
Open

[Local FS] Should attempt to create a directory to the file #99

asubb opened this issue Jan 5, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@asubb
Copy link
Member

asubb commented Jan 5, 2021

Currently, if the file specified in non-existing directory the writer fails:

23:02:14.168 [pool-1-thread-1] ERROR i.w.execution.SingleThreadedOverseer - [io.wavebeans.lib.io.WavPartialFileOutput@7ec50a6f] Error running. Done 5 iterations
java.io.FileNotFoundException: /users/asubb/tmp/wav/record0.wav (No such file or directory)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at io.wavebeans.fs.local.LocalWbFileOutputStream.<init>(LocalWbFileOutputStream.kt:8)
	at io.wavebeans.fs.local.LocalWbFile.createWbFileOutputStream(LocalWbFile.kt:16)
	at io.wavebeans.lib.io.FileWriterDelegate.doFinalizeBuffer(FileWriterDelegate.kt:133)
	at io.wavebeans.lib.io.FileWriterDelegate.finalizeBuffer(FileWriterDelegate.kt:96)
	at io.wavebeans.lib.io.AbstractPartialWriter.write(AbstractWriter.kt:136)
	at io.wavebeans.execution.SingleThreadedOverseer$eval$$inlined$map$lambda$1.call(SingleThreadedOverseer.kt:35)
	at io.wavebeans.execution.SingleThreadedOverseer$eval$$inlined$map$lambda$1.call(SingleThreadedOverseer.kt:15)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
	Suppressed: java.io.FileNotFoundException: /users/asubb/tmp/wav/record0.wav (No such file or directory)
		at java.io.FileOutputStream.open0(Native Method)
		at java.io.FileOutputStream.open(FileOutputStream.java:270)
		at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
		at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
		at io.wavebeans.fs.local.LocalWbFileOutputStream.<init>(LocalWbFileOutputStream.kt:8)
		at io.wavebeans.fs.local.LocalWbFile.createWbFileOutputStream(LocalWbFile.kt:16)
		at io.wavebeans.lib.io.FileWriterDelegate.doFinalizeBuffer(FileWriterDelegate.kt:133)
		at io.wavebeans.lib.io.FileWriterDelegate.close(FileWriterDelegate.kt:79)
		at io.wavebeans.lib.io.AbstractPartialWriter.close(AbstractWriter.kt:166)
		at kotlin.io.CloseableKt.closeFinally(Closeable.kt:60)
		at io.wavebeans.execution.SingleThreadedOverseer$eval$$inlined$map$lambda$1.call(SingleThreadedOverseer.kt:34)
		... 5 common frames omitted
evaluation finished.
@asubb asubb added this to the 0.4.0 milestone Jan 5, 2021
@asubb asubb added bug Something isn't working good first issue Good for newcomers labels Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant