dengzhhu653 commented on a change in pull request #3017: URL: https://github.com/apache/hive/pull/3017#discussion_r814429471
########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java ########## @@ -287,29 +287,7 @@ PartitionExpressionProxy getExpressionProxy() { return expressionProxy; } - /** - * Use {@link #getThreadId()} instead. - * @return thread id - */ - @Deprecated - public static Integer get() { - return HMSHandlerContext.getThreadId(); - } - - @Override - public int getThreadId() { - return HMSHandlerContext.getThreadId(); - } - - public HMSHandler(String name) throws MetaException { - this(name, MetastoreConf.newMetastoreConf(), true); - } - - public HMSHandler(String name, Configuration conf) throws MetaException { - this(name, conf, true); - } - - public HMSHandler(String name, Configuration conf, boolean init) throws MetaException { Review comment: The `init` is true only in our tests, so I propose to remove the parameter `init` here, so that we follow the same style, i.e, the handler can not be used until after the method `init` has been called. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org