[Rt-commit] rt branch, 4.4/fix-oracle-session-tests, created. rt-4.4.3-191-gb8d2bc5ee

? sunnavy sunnavy at bestpractical.com
Thu Jan 10 09:49:12 EST 2019


The branch, 4.4/fix-oracle-session-tests has been created
        at  b8d2bc5ee5678727b6f84f3fe0777797b71fa028 (commit)

- Log -----------------------------------------------------------------
commit b8d2bc5ee5678727b6f84f3fe0777797b71fa028
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Jan 10 22:35:01 2019 +0800

    Fix session.t on Oracle with not-inline web servers
    
    Web server hangs when processing the same session row after the tied
    %session. It seems that the tied %session and web server cause a locking
    conflict somehow.

diff --git a/t/web/session.t b/t/web/session.t
index 1f0bb0bfd..5e261b302 100644
--- a/t/web/session.t
+++ b/t/web/session.t
@@ -48,6 +48,14 @@ ok( $last_updated, "Got a lastupdated timestamp of $last_updated");
 untie(%session);
 # Wait for 1 sec so we can confirm lastupdated doesn't change
 sleep 1;
+
+# Web server hangs when processing the same session row after tied
+# %session on Oracle with non-inline web servers :/
+if ( RT->Config->Get('DatabaseType') eq 'Oracle' && ( $ENV{'RT_TEST_WEB_HANDLER'} || '' ) ne 'inline' ) {
+    RT::Test->stop_server;
+    RT::Test->started_ok;
+}
+
 $agent->get($url);
 is ($agent->status, 200, "Loaded a page");
 

-----------------------------------------------------------------------


More information about the rt-commit mailing list