Jiwa Retry Connect  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Jiwa Retry Connect

Postby SBarnes » Thu Jul 08, 2021 10:51 am

With Jiwa's baked in reconnect and retry SQL functionality is failed attempts logged anywhere?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Jiwa Retry Connect

Postby Scott.Pearce » Thu Jul 08, 2021 11:51 am

No.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Jiwa Retry Connect  Topic is solved

Postby Mike.Sheen » Thu Jul 08, 2021 6:31 pm

SBarnes wrote:With Jiwa's baked in reconnect and retry SQL functionality is failed attempts logged anywhere?


If you set the system setting DisableConnectionResilience to be true, you will get an exception thrown immediately instead of Jiwa silently attempting to re-connect. The user will get an exception shown to them and the current operation will be aborted. If you want a log of those occurrences - We added the ability to log transient faults AND sql exceptions (which I believe covers when connections are broken) as part of DEV-8084 in 07.02.01 SR3.

The DEV issue linked above has a plugin attached which will log to the event log when either a transient fault or a sql exception occurs. For obvious reasons it doesn't log to a table - so you'll need to the gather the event logs from all the client machines to have any useful information.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Jiwa Retry Connect

Postby Mike.Sheen » Thu Jul 08, 2021 6:40 pm

Just to be clear: you don't need to set DisableConnectionResilience to true for the above plugin to log transient faults - and it's transient faults which get retried multiple times after sleeping for the configured retry interval.

DisableConnectionResilience only stops Jiwa from trying to re-connect to the database connection is in a Broken or Closed state - that is only attempted once and if the reconnect fails, then a SQLOpenConnectionFailure is thrown.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Jiwa Retry Connect

Postby SBarnes » Thu Jul 08, 2021 6:50 pm

Thanks Mike,

I now remember where this got used before in looking at speed issues, this is related to a client who uses Azure and Azure SQL and who certainly stress test things, they are running under 7.2.0 SR6, Transient fault logging will compile under that version but Connectivity fault logging won't due to the line


Code: Select all
Plugin.Manager.Database.SqlException += delegate(System.Data.SqlClient.SqlException ex, System.Data.SqlClient.SqlCommand SQLCommand) { SqlException(Plugin, ex, SQLCommand); };


For their REST API I have just added the ability to configure the connection and command time outs as well as the ability to retry in the working with web hooks.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests