Bug #84783 | query timeout is not working(thread hang) | ||
---|---|---|---|
Submitted: | 2 Feb 2017 0:28 | Modified: | 19 Apr 2017 1:16 |
Reporter: | Jung-ho Choi | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.1.35 | OS: | Any |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
Tags: | MultiHostMySQLConnection CancelTask QueryTimeout |
[2 Feb 2017 0:28]
Jung-ho Choi
[2 Feb 2017 17:11]
Filipe Silva
Hi Jung-ho Choi, Thank you for your interest in Connector/J. This behavior was verified as described.
[3 Feb 2017 7:22]
Jung-ho Choi
Thank you for confirming. When will it be fixed? First, I am using socket timeout instead, but I want to use it as query timeout ASAP.
[6 Feb 2017 22:49]
Filipe Silva
Hi Jung-ho Choi, We can't make any promises, we'll look into this when possible. We understand it is important for you and we'll take that into account. Thank you,
[19 Apr 2017 1:16]
Daniel So
Posted by developer: Added the following entry to the Connector/J 5.1.42 changelog: "In a multi-host connection, query timeouts did not occur as configured. It was because the CancelTask thread, when trying to access the top level, virtual connection object, ran into a race condition with the connection monitor and then hung. With this fix, the CancelTask thread is passed a direct reference to the underlying physical connection, with which it can execute the cancellation. "