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 2020/12/28 17:18:00 UTC

[GitHub] [iceberg] jackye1995 opened a new pull request #1997: AWS: cleanup AwsProperties styles

jackye1995 opened a new pull request #1997:
URL: https://github.com/apache/iceberg/pull/1997


   1. remove `get` from get method `getS3fileIoStagingDirectory`
   2. move client factory config key to `AwsProperties`, so all configs are in a single place.
   3. fix bug in `AwsClientFactories.loadClientFactory`, no error was thrown because of the use of reflection.


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


[GitHub] [iceberg] jackye1995 commented on a change in pull request #1997: AWS: cleanup AwsProperties styles

Posted by GitBox <gi...@apache.org>.
jackye1995 commented on a change in pull request #1997:
URL: https://github.com/apache/iceberg/pull/1997#discussion_r549466011



##########
File path: aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java
##########
@@ -30,12 +29,6 @@
 
 public class AwsClientFactories {
 
-  /**
-   * The implementation class of {@link AwsClientFactory} to customize AWS client configurations.
-   * If set, all AWS clients will be configured by the specified class before initialization.
-   */
-  public static final String CLIENT_FACTORY_CONFIG_KEY = "client.factory";
-
   private static final SdkHttpClient HTTP_CLIENT_DEFAULT = UrlConnectionHttpClient.create();

Review comment:
       Yes we considered about using Netty async implementation and async AWS client, especially for s3. There was some discussion about that in #1767, and some people mentioned that Netty implementation has some unresolved bug. Since the existing solution using java future is good enough, we just chose that route. 
   
   I will do some testing to see if it can improve S3 FileIO performance, and if it works I will raise another PR. The API for client factory can always be updated for async clients.




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


[GitHub] [iceberg] abhishekkhanna1 commented on a change in pull request #1997: AWS: cleanup AwsProperties styles

Posted by GitBox <gi...@apache.org>.
abhishekkhanna1 commented on a change in pull request #1997:
URL: https://github.com/apache/iceberg/pull/1997#discussion_r549458214



##########
File path: aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java
##########
@@ -30,12 +29,6 @@
 
 public class AwsClientFactories {
 
-  /**
-   * The implementation class of {@link AwsClientFactory} to customize AWS client configurations.
-   * If set, all AWS clients will be configured by the specified class before initialization.
-   */
-  public static final String CLIENT_FACTORY_CONFIG_KEY = "client.factory";
-
   private static final SdkHttpClient HTTP_CLIENT_DEFAULT = UrlConnectionHttpClient.create();

Review comment:
       Unrelated to this change: 
   
   * Did we consider using SdkAsyncHttpClient such as [NettyNioAsyncHttpClient](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/nio/netty/NettyNioAsyncHttpClient.html) for non blocking IO.
   
   * Should we have different HTTP clients across different services to avoid contention for the shared connection pool and also have flexibility to configure the http client settings based on the service?
   
   * Should we use async service clients like S3AsyncClient etc




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


[GitHub] [iceberg] rdblue merged pull request #1997: AWS: cleanup AwsProperties styles

Posted by GitBox <gi...@apache.org>.
rdblue merged pull request #1997:
URL: https://github.com/apache/iceberg/pull/1997


   


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