streamToFileSystem asynchronous?

77 views
Skip to first unread message

Brad Grier

unread,
Feb 1, 2016, 11:20:14 AM2/1/16
to vert.x
I saw a handful of these in our logs just after a restart. I was under the impression that streamToFileSystem was asynchronous but this looks like it could block (although I wouldn't expect File.exists() to block this long - hardware issue?). Anyway, would I be better off handling an uploaded file in another manner? I'm using 3.2.0.

2016-02-01 09:31:45 WARNING Thread Thread[vert.x-eventloop-thread-5,5,main] has been blocked for 6674 ms, time limit is 2000
io.vertx.core.VertxException: Thread blocked
        at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
        at java.io.File.exists(File.java:819)
        at io.vertx.core.impl.FileResolver.resolveFile(FileResolver.java:103)
        at io.vertx.core.impl.VertxImpl.resolveFile(VertxImpl.java:657)
        at io.vertx.core.file.impl.FileSystemImpl$14.<init>(FileSystemImpl.java:736)
        at io.vertx.core.file.impl.FileSystemImpl.openInternal(FileSystemImpl.java:735)
        at io.vertx.core.file.impl.FileSystemImpl.open(FileSystemImpl.java:299)
        at io.vertx.core.http.impl.HttpServerFileUploadImpl.streamToFileSystem(HttpServerFileUploadImpl.java:148)

Thomas Segismont

unread,
Aug 17, 2016, 12:04:11 PM8/17/16
to vert.x
Hi,

Just to let you know, the issue is reported and a fix has been submitted

https://github.com/eclipse/vert.x/issues/1573

Regards,
Thomas
Reply all
Reply to author
Forward
0 new messages