Data source does not respect timeout

Stimulsoft Reports.JAVA discussion
Post Reply
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

Data source does not respect timeout

Post by TecnologiaMV »

Hello

We are carrying out some tests and notices that the query timeout field is not being respected, setting a value and even so the system does not respect the passed value.

Print and video follow.

expected action
Imagehttps://www.stimulsoft.com/en/documenta ... ueries.htm
7 - The Query Timeout parameter is used to specify the execution time of a query, which means time during which the request will be executed. If the request timed out and the request failed, the user will see a message about this. The parameter value is indicated in seconds.
Attachments
Print 0001.png
Print 0001.png (42.67 KiB) Viewed 9056 times
2023-06-30 16-29-45.mov
(2.98 MiB) Downloaded 148 times
Lech Kulikowski
Posts: 6329
Joined: Tue Mar 20, 2018 5:34 am

Re: Data source does not respect timeout

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

Re: Data source does not respect timeout

Post by TecnologiaMV »

Awaiting.
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: Data source does not respect timeout

Post by Vadim »

Hello.

We pass this value (or if defined StiOptions.Dictionary.getQueryTimeout()) to java.sql.Statement & it processed with corresponding DB driver. We can't influence it
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

Re: Data source does not respect timeout

Post by TecnologiaMV »

Vadim.
I didn't understand.

The "StiOptions.Dictionary.getQueryTimeout" setting should not influence the query timeout in the report execution process in Stimulsoft.
Does this configuration not allow you to set a maximum value for the time a query can take to complete?
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: Data source does not respect timeout

Post by Vadim »

Hello.

By defaults StiOptions.Dictionary.getQueryTimeout is 0, so QueryTimeout for every java.sql.Statement takes from SqlSource, default value is 3000 sec = 5 min,
if StiOptions.Dictionary.getQueryTimeout not equals 0 -> QueryTimeout for every java.sql.Statement takes from StiOptions.Dictionary.getQueryTimeout
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

Re: Data source does not respect timeout

Post by TecnologiaMV »

Vadim.
So if you set StiOptions.Dictionary.getQueryTimeout to 5 min for example, all java.sql.Statement statements will have a time limit of 5 min to complete execution. If a statement exceeds this limit, it should be stopped.
However this is not happening.
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: Data source does not respect timeout

Post by Vadim »

Hello.
TecnologiaMV wrote: Thu Jul 06, 2023 11:45 am So if you set StiOptions.Dictionary.getQueryTimeout to 5 min for example, all java.sql.Statement statements will have a time limit of 5 min to complete execution.
Right
TecnologiaMV wrote: Thu Jul 06, 2023 11:45 am If a statement exceeds this limit, it should be stopped.
However this is not happening.
We pass timeout value to java.sql.Statement (requests to DB) & it processed with corresponding DB driver. We can't influence it
Post Reply