Review Board 1.7.22


Catch the NPe when using ^D to exit from CLI

Review Request #7760 - Created Oct. 29, 2012 and submitted

Alexander Alten-Lorenz
HIVE-3636
Reviewers
hive
hive-git
The exit patch is just a quick hack to catch the NPE in order to allow ^D to exit hive without a stacktrace

 

Diff revision 1 (Latest)

  1. cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java: Loading...
cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java
Revision dfb30e2 New Change
[20] 115 lines
[+20] [+] public void close() {
116
        client.clean();
116
        client.clean();
117
        transport.close();
117
        transport.close();
118
      }
118
      }
119
    } catch (TException e) {
119
    } catch (TException e) {
120
      e.printStackTrace();
120
      e.printStackTrace();

    
   
121
    } catch (Exception _) { }
121
    }
122
  }
122
  }

   
123

    
   
123

   
124
  public boolean isRemoteMode() {
124
  public boolean isRemoteMode() {
125
    return remoteMode;
125
    return remoteMode;
126
  }
126
  }
127

    
   
127

   
[+20] [20] 19 lines
  1. cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java: Loading...