File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -304,23 +304,23 @@ static void loginServerPrincipal(Configuration conf) throws IOException {
304
304
}
305
305
306
306
/**
307
- * Creates an SSL context factory if configuration states so.
307
+ * Creates an SSL context factory if the configuration states so.
308
308
* @param conf the configuration
309
309
* @return null if no ssl in config, an instance otherwise
310
310
* @throws IOException if getting password fails
311
311
*/
312
312
static SslContextFactory createSslContextFactory (Configuration conf ) throws IOException {
313
- return createSslContextFactory (conf , MetastoreConf .ConfVars .USE_SSL );
313
+ return createSslContextFactoryIf (conf , MetastoreConf .ConfVars .USE_SSL );
314
314
}
315
315
316
316
/**
317
- * Creates an SSL context factory if configuration states so.
317
+ * Creates an SSL context factory if a configuration variable states so.
318
318
* @param conf the configuration
319
319
* @param condition the condition variable to check for SSL
320
320
* @return null if no ssl in config, an instance otherwise
321
321
* @throws IOException if getting password fails
322
322
*/
323
- static SslContextFactory createSslContextFactory (Configuration conf , MetastoreConf .ConfVars condition ) throws IOException {
323
+ static SslContextFactory createSslContextFactoryIf (Configuration conf , MetastoreConf .ConfVars condition ) throws IOException {
324
324
final boolean useSsl = MetastoreConf .getBoolVar (conf , condition );
325
325
if (!useSsl ) {
326
326
return null ;
Original file line number Diff line number Diff line change 25
25
import org .eclipse .jetty .server .SecureRequestCustomizer ;
26
26
import org .eclipse .jetty .server .Server ;
27
27
import org .eclipse .jetty .server .ServerConnector ;
28
- import org .eclipse .jetty .server .SslConnectionFactory ;
29
28
import org .eclipse .jetty .server .handler .ContextHandlerCollection ;
30
29
import org .eclipse .jetty .server .handler .HandlerCollection ;
31
30
import org .eclipse .jetty .server .handler .gzip .GzipHandler ;
@@ -174,7 +173,7 @@ private Server createServer() {
174
173
*/
175
174
private static SslContextFactory createSslContextFactory (Configuration conf ) {
176
175
try {
177
- return ServletSecurity .createSslContextFactory (conf , MetastoreConf .ConfVars .HTTPSERVER_USE_HTTPS );
176
+ return ServletSecurity .createSslContextFactoryIf (conf , MetastoreConf .ConfVars .HTTPSERVER_USE_HTTPS );
178
177
} catch (IOException e ) {
179
178
LOGGER .error ("Failed to create SSL context factory" , e );
180
179
return null ;
You can’t perform that action at this time.
0 commit comments