You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by se...@apache.org on 2018/08/15 22:34:22 UTC

[1/2] trafodion git commit: [TRAFODION-3180] At times establishing a JDBC/ODBC connection takes observably long time

Repository: trafodion
Updated Branches:
  refs/heads/master 7fba1c662 -> 8f18e5a34


[TRAFODION-3180] At times establishing a JDBC/ODBC connection takes observably long time

When the sock stream is in use, socket close is kept pending in a queue till it can
be closed. But, the sockets from this queue is never closed. Added code
to close the sockets from this queue at the time of creating the socket stream next
time.


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

Branch: refs/heads/master
Commit: d51fe9e66f0b09809d803970a952496fdd122a48
Parents: 10986d3
Author: selvaganesang <se...@esgyn.com>
Authored: Mon Aug 13 23:45:47 2018 +0000
Committer: selvaganesang <se...@esgyn.com>
Committed: Mon Aug 13 23:45:47 2018 +0000

----------------------------------------------------------------------
 core/sqf/src/seabed/src/sockstream.cpp | 1 +
 core/sqf/src/seabed/src/stream.cpp     | 2 ++
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/d51fe9e6/core/sqf/src/seabed/src/sockstream.cpp
----------------------------------------------------------------------
diff --git a/core/sqf/src/seabed/src/sockstream.cpp b/core/sqf/src/seabed/src/sockstream.cpp
index 41fa7a5..83ba1aa 100644
--- a/core/sqf/src/seabed/src/sockstream.cpp
+++ b/core/sqf/src/seabed/src/sockstream.cpp
@@ -431,6 +431,7 @@ SB_Trans::Sock_Stream::create(const char           *pp_name,
         pp_sock->set_nonblock();
         pp_sock->event_init(lp_stream->ip_sock_eh);
     }
+    SB_Trans::Trans_Stream::delete_streams(true);
     return lp_stream;
 }
 

http://git-wip-us.apache.org/repos/asf/trafodion/blob/d51fe9e6/core/sqf/src/seabed/src/stream.cpp
----------------------------------------------------------------------
diff --git a/core/sqf/src/seabed/src/stream.cpp b/core/sqf/src/seabed/src/stream.cpp
index fccbccd..9699e33 100644
--- a/core/sqf/src/seabed/src/stream.cpp
+++ b/core/sqf/src/seabed/src/stream.cpp
@@ -610,6 +610,7 @@ void SB_Trans::Trans_Stream::delete_streams(bool pv_ref_zero) {
                                            "Not deleting stream=%s, stream-ref=%d\n",
                                            lp_stream->get_name(),
                                            lv_stream_ref);
+                    lv_del_q.add(&lp_stream->iv_del_link);
                 }
             } else {
                 if (gv_ms_trace_ref)
@@ -633,6 +634,7 @@ void SB_Trans::Trans_Stream::delete_streams(bool pv_ref_zero) {
                                        "Not deleting stream=%s, stream-ref=%d\n",
                                        lp_stream->get_name(),
                                        lv_stream_ref);
+                lv_del_q.add(&lp_stream->iv_del_link);
             }
         }
     }


[2/2] trafodion git commit: Merge PR 1693 [TRAFODION-3180] At times establishing a JDBC/ODBC connection takes observably long time

Posted by se...@apache.org.
Merge PR 1693 [TRAFODION-3180] At times establishing a JDBC/ODBC connection takes observably long time


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

Branch: refs/heads/master
Commit: 8f18e5a34bfc52f4b64fb0dc7175ae9c26535fad
Parents: 7fba1c6 d51fe9e
Author: selvaganesang <se...@apache.org>
Authored: Wed Aug 15 22:31:57 2018 +0000
Committer: selvaganesang <se...@apache.org>
Committed: Wed Aug 15 22:31:57 2018 +0000

----------------------------------------------------------------------
 core/sqf/src/seabed/src/sockstream.cpp | 1 +
 core/sqf/src/seabed/src/stream.cpp     | 2 ++
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------