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

CloseGateOutputSignal on empty buffer shouldn't throw an exception #98

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

CloseGateOutputSignal on empty buffer shouldn't throw an exception #98

asubb opened this issue Jan 5, 2021 · 0 comments
Labels
enhancement New feature or request lib
Milestone

Comments

@asubb
Copy link
Member

asubb commented Jan 5, 2021

Sometimes, you may need to avoid starting writing to the file at the very beginning and send the CloseGateOutputSignal with the first sample. Currently it is unsupported, throws something like:

java.lang.IllegalStateException: [io.wavebeans.lib.io.FileWriterDelegate@fff7bc7] Attempting to finalize uninitialized buffer
	at io.wavebeans.lib.io.FileWriterDelegate.doFinalizeBuffer(FileWriterDelegate.kt:108)
	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)
@asubb asubb added enhancement New feature or request lib labels Jan 5, 2021
@asubb asubb added this to the 0.4.0 milestone Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lib
Projects
None yet
Development

No branches or pull requests

1 participant