--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/84399f36-f3d0-4da4-8f77-b3c28d040aa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vert.x lets you register exceptionHandlers at the global level or the context level. So the uncaught exception recovery policy is up to you.
2017-02-09 12:27 GMT+01:00 Wiktor Sierociński <w.sier...@gmail.com>:
Hi,
My name is Wiktor and I am currently involved in project which is using vert.x to implement one of server services.
Generally, everything look quite nice (Good job btw). But, I have one concern related to uncaught exceptions. I was developing backends in node.js and there any uncaught exception leads to crash of the server and thread involved because there is just one thread. It is in my opinion valid behaviour because any uncaught exception can potentially lead to some unexpected future behaviours of the server. Such method also is consistent with the mantra "let it crash" - popular in Erlang or other actor-like model systems.
My question is: how vert.x is dealing with "uncaught exceptions"? As far as I see it is just swallowing them and Verticles are not being restarted/crashed. For example when there is exception being thrown in the handler of some SQL query then request which has initiated this query is lost in the state of being "idle". Is it true?
I am wondering could it be potentially dangerous behaviour because I think that such uncaught exceptions can lead to lack of deallocation of some resources.
Best regards,
Wiktor Sierociński
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/f0a91c97-1370-4d8c-a883-b422d578bd5f%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/17caf20a-5ad5-469d-a4e3-da1e4423ff97%40googlegroups.com.
Could you put up a small reproducer on GitHub?
2017-02-09 16:35 GMT+01:00 Wiktor Sierociński <w.sier...@gmail.com>:
Thomas Segismont:
I tried to add handler to "vertx.exceptionHandler" but it did not catch exceptions I described above (in this case: thrown in handler of SQL query).
Like here:
connection.queryWithParams(query, params, queryRes -> {
-> thrown here
})
That is why I am concerned that some other exceptions would not be catched too.
On Thursday, February 9, 2017 at 12:27:37 PM UTC+1, Wiktor Sierociński wrote:Hi,
My name is Wiktor and I am currently involved in project which is using vert.x to implement one of server services.
Generally, everything look quite nice (Good job btw). But, I have one concern related to uncaught exceptions. I was developing backends in node.js and there any uncaught exception leads to crash of the server and thread involved because there is just one thread. It is in my opinion valid behaviour because any uncaught exception can potentially lead to some unexpected future behaviours of the server. Such method also is consistent with the mantra "let it crash" - popular in Erlang or other actor-like model systems.
My question is: how vert.x is dealing with "uncaught exceptions"? As far as I see it is just swallowing them and Verticles are not being restarted/crashed. For example when there is exception being thrown in the handler of some SQL query then request which has initiated this query is lost in the state of being "idle". Is it true?
I am wondering could it be potentially dangerous behaviour because I think that such uncaught exceptions can lead to lack of deallocation of some resources.
Best regards,
Wiktor Sierociński
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/96a3ca87-80de-4375-816d-63c19021d713%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/48a293b4-f688-4a14-bddb-06acb5113f80%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/67bab477-33cd-4a10-ab86-f9bde57c8ae7%40googlegroups.com.