You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/04/17 15:29:46 UTC

[GitHub] [iceberg] ismailsimsek commented on a change in pull request #2491: Moving ClientPool and ClientPoolImpl to core

ismailsimsek commented on a change in pull request #2491:
URL: https://github.com/apache/iceberg/pull/2491#discussion_r615248034



##########
File path: core/src/main/java/org/apache/iceberg/ClientPoolImpl.java
##########
@@ -138,8 +137,7 @@ private void release(C client) {
     }
   }
 
-  @VisibleForTesting
-  int poolSize() {
+  public int poolSize() {

Review comment:
       had to change it to public to get hive test working, seems like VisibleForTesting is not possible across different modules

##########
File path: hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveClientPool.java
##########
@@ -23,9 +23,23 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.nio.charset.StandardCharsets;
+import java.util.List;
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
+import org.apache.hadoop.hive.metastore.api.Function;
+import org.apache.hadoop.hive.metastore.api.FunctionType;
+import org.apache.hadoop.hive.metastore.api.GetAllFunctionsResponse;
+import org.apache.hadoop.hive.metastore.api.MetaException;
+import org.apache.hadoop.hive.metastore.api.PrincipalType;
+import org.apache.iceberg.AssertHelpers;
+import org.apache.iceberg.relocated.com.google.common.collect.Lists;
+import org.apache.thrift.transport.TTransportException;
+import org.junit.After;
 import org.junit.Assert;
+import org.junit.Before;
 import org.junit.Test;
+import org.mockito.Mockito;
 
 public class TestHiveClientPool {

Review comment:
       Moved TestClientPoolImpl.java tests to this class since it was using Hive libraries in the tests, merged tests in this class.




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org