You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by jb...@apache.org on 2016/11/17 05:56:08 UTC

[1/4] git commit: updated refs/heads/master to 4c15cfc

Repository: cloudstack
Updated Branches:
  refs/heads/master ad0c25fbc -> 4c15cfce0


CLOUDSTACK-9460: For long running transactions, if the connection is
timed out by the mysql server then refresh it


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a813baed
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a813baed
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a813baed

Branch: refs/heads/master
Commit: a813baed49e50c014fa22df81fc6bc8bc9095213
Parents: 9eb8b2e
Author: Abhinandan Prateek <ab...@shapeblue.com>
Authored: Wed Aug 17 16:15:15 2016 +0530
Committer: Abhinandan Prateek <ab...@shapeblue.com>
Committed: Mon Sep 19 14:08:26 2016 +0530

----------------------------------------------------------------------
 .../db/src/com/cloud/utils/db/TransactionLegacy.java    | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a813baed/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
----------------------------------------------------------------------
diff --git a/framework/db/src/com/cloud/utils/db/TransactionLegacy.java b/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
index af834ca..8f71e87 100644
--- a/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
+++ b/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
@@ -168,7 +168,7 @@ public class TransactionLegacy implements Closeable {
                 isNew = true;
             }
         }
-
+        txn.checkConnection();
         txn.takeOver(name, false);
         if (isNew) {
             s_mbean.addTransaction(txn);
@@ -176,6 +176,16 @@ public class TransactionLegacy implements Closeable {
         return txn;
     }
 
+    public void checkConnection() {
+        try {
+            if (_conn != null && !_conn.isValid(3)) {
+                _conn = null;
+            }
+        } catch (SQLException e) {
+            _conn = null;
+        }
+    }
+
     protected StackElement peekInStack(Object obj) {
         final Iterator<StackElement> it = _stack.iterator();
         while (it.hasNext()) {


[4/4] git commit: updated refs/heads/master to 4c15cfc

Posted by jb...@apache.org.
Merge release branch 4.9 to master

* 4.9:
  CLOUDSTACK-9460: For long running transactions, if the connection is timed out by the mysql server then refresh it


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4c15cfce
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4c15cfce
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4c15cfce

Branch: refs/heads/master
Commit: 4c15cfce07cea4348509d63b7720d04df5fcfd78
Parents: ad0c25f 22d0746
Author: John Burwell <me...@cockamamy.net>
Authored: Thu Nov 17 00:55:05 2016 -0500
Committer: John Burwell <me...@cockamamy.net>
Committed: Thu Nov 17 00:55:05 2016 -0500

----------------------------------------------------------------------
 .../db/src/com/cloud/utils/db/TransactionLegacy.java    | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[2/4] git commit: updated refs/heads/master to 4c15cfc

Posted by jb...@apache.org.
Merge pull request #1674 from shapeblue/master_db_timout_4_8

CLOUDSTACK-9460: For long running transactions, if the connection istimed out by the mysql server then refresh it

* pr/1674:
  CLOUDSTACK-9460: For long running transactions, if the connection is timed out by the mysql server then refresh it

Signed-off-by: John Burwell <me...@cockamamy.net>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8c3ca159
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8c3ca159
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8c3ca159

Branch: refs/heads/master
Commit: 8c3ca15995a9a435be2bebb7040877310b4982b8
Parents: 293ec4f a813bae
Author: John Burwell <me...@cockamamy.net>
Authored: Thu Nov 17 00:54:11 2016 -0500
Committer: John Burwell <me...@cockamamy.net>
Committed: Thu Nov 17 00:54:11 2016 -0500

----------------------------------------------------------------------
 .../db/src/com/cloud/utils/db/TransactionLegacy.java    | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[3/4] git commit: updated refs/heads/master to 4c15cfc

Posted by jb...@apache.org.
Merge release branch 4.8 to 4.9

* 4.8:
  CLOUDSTACK-9460: For long running transactions, if the connection is timed out by the mysql server then refresh it


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/22d07460
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/22d07460
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/22d07460

Branch: refs/heads/master
Commit: 22d074607c0f43ed6b1232da3d7be0e2fc66e481
Parents: dc1a7b4 8c3ca15
Author: John Burwell <me...@cockamamy.net>
Authored: Thu Nov 17 00:54:38 2016 -0500
Committer: John Burwell <me...@cockamamy.net>
Committed: Thu Nov 17 00:54:38 2016 -0500

----------------------------------------------------------------------
 .../db/src/com/cloud/utils/db/TransactionLegacy.java    | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/22d07460/framework/db/src/com/cloud/utils/db/TransactionLegacy.java
----------------------------------------------------------------------