[
https://issues.apache.org/jira/browse/LENS-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raju Bairishetti updated LENS-853:
----------------------------------
Attachment: LENS-853.patch
Attaching patch
{noformat}
[INFO] Reactor Summary:
[INFO]
[INFO] Lens Checkstyle Rules ............................. SUCCESS [8.003s]
[INFO] Lens .............................................. SUCCESS [8.371s]
[INFO] Lens API .......................................... SUCCESS [23.406s]
[INFO] Lens API for server and extensions ................ SUCCESS [20.005s]
[INFO] Lens Cube ......................................... SUCCESS [7:47.304s]
[INFO] Lens DB storage ................................... SUCCESS [13.644s]
[INFO] Lens Query Library ................................ SUCCESS [12.119s]
[INFO] Lens Hive Driver .................................. SUCCESS [2:11.215s]
[INFO] Lens Driver for JDBC .............................. SUCCESS [26.498s]
[INFO] Lens Elastic Search Driver ........................ SUCCESS [12.579s]
[INFO] Lens Server ....................................... SUCCESS [15:35.523s]
[INFO] Lens client ....................................... SUCCESS [27.088s]
[INFO] Lens CLI .......................................... SUCCESS [38.617s]
[INFO] Lens Examples ..................................... SUCCESS [8.453s]
[INFO] Lens Ship Jars to Distributed Cache ............... SUCCESS [0.845s]
[INFO] Lens Distribution ................................. SUCCESS [8.312s]
[INFO] Lens ML Lib ....................................... SUCCESS [1:06.254s]
[INFO] Lens ML Ext Distribution .......................... SUCCESS [1.617s]
[INFO] Lens Regression ................................... SUCCESS [9.747s]
[INFO] Lens UI ........................................... SUCCESS [0.328s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30:20.613s
[INFO] Finished at: Thu Mar 03 14:10:23 SGT 2016
[INFO] Final Memory: 180M/996M
[INFO] ------------------------------------------------------------------------
{noformat}
> Quitting shell(quitshell()) is not closing session some times.
> --------------------------------------------------------------
>
> Key: LENS-853
> URL: https://issues.apache.org/jira/browse/LENS-853
> Project: Apache Lens
> Issue Type: Bug
> Components: client
> Reporter: Raju Bairishetti
> Assignee: Raju Bairishetti
> Labels: newbie
> Fix For: 2.6
>
> Attachments: LENS-853.patch
>
>
> Quitting session through programmatically is not closing the session some
> times.
> First it checks whether connection to server is active or not to close the
> session. It is depending on isConnectionActive variable to check the
> connection is active or not. Right now we are setting isConnectionActive to
> true only if user calls getClient(). isConnectionActive should be set to
> true when user calls setClient(client).
> code snippets:
> ----------------
> {code}
> public LensClient getClient() {
> if (lensClient == null) {
> setClient(getClientWrapper().getClient());
> isConnectionActive = true;
> }
> return lensClient;
> }
> {code}
> {code}
> protected static synchronized void closeClientConnection() {
> if (isConnectionActive) {
> log.debug("Request for stopping lens cli received");
> getClientWrapper().getClient().closeConnection();
> isConnectionActive = false;
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)