Uploaded image for project: 'Apache Lens'
  1. Apache Lens
  2. LENS-853

Quitting shell(quitshell()) is not closing session some times.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: client
    • Labels:

      Description

      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:
      ----------------

        public LensClient getClient() {
          if (lensClient == null) {
            setClient(getClientWrapper().getClient());
            isConnectionActive = true;
          }
          return lensClient;
        }
      
      protected static synchronized void closeClientConnection() {
          if (isConnectionActive) {
            log.debug("Request for stopping lens cli received");
            getClientWrapper().getClient().closeConnection();
            isConnectionActive = false;
          }
        }
      

        Attachments

        1. LENS-853_01.patch
          7 kB
          Raju Bairishetti
        2. LENS-853.patch
          3 kB
          Raju Bairishetti

          Activity

            People

            • Assignee:
              raju.bairishetti Raju Bairishetti
              Reporter:
              raju.bairishetti Raju Bairishetti
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: