Skip to content

Commit

Permalink
Merge branch 'master' into iceberg-support-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-alhuang authored Jul 22, 2024
2 parents ca1d767 + 83a6289 commit 6dc4c6f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<parquet.version>1.14.1</parquet.version>
<powermock.version>2.0.9</powermock.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<protobuf.version>3.19.6</protobuf.version>
<protobuf.version>4.27.2</protobuf.version>
<shadeBase>net.snowflake.ingest.internal</shadeBase>
<slf4j.version>1.7.36</slf4j.version>
<snappy.version>1.1.10.5</snappy.version>
Expand Down Expand Up @@ -873,6 +873,7 @@
<licenseMerge>BSD 2-Clause License
|The BSD License</licenseMerge>
<licenseMerge>The MIT License|MIT License</licenseMerge>
<licenseMerge>3-Clause BSD License|BSD-3-Clause</licenseMerge>
</licenseMerges>
</configuration>
<executions>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/snowflake/ingest/utils/HttpUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class HttpUtil {
private static final ReentrantLock idleConnectionMonitorThreadLock = new ReentrantLock(true);

private static final int DEFAULT_CONNECTION_TIMEOUT_MINUTES = 1;
private static final int DEFAULT_HTTP_CLIENT_SOCKET_TIMEOUT_MINUTES = 5;
private static final int DEFAULT_HTTP_CLIENT_SOCKET_TIMEOUT_MINUTES = 1;

/**
* After how many seconds of inactivity should be idle connections evicted from the connection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public class ParameterProvider {
public static final int IO_TIME_CPU_RATIO_DEFAULT = 2;
public static final int BLOB_UPLOAD_MAX_RETRY_COUNT_DEFAULT = 24;
public static final long MAX_MEMORY_LIMIT_IN_BYTES_DEFAULT = -1L;
public static final long MAX_CHANNEL_SIZE_IN_BYTES_DEFAULT = 128 * 1024 * 1024;
public static final long MAX_CHUNK_SIZE_IN_BYTES_DEFAULT = 512 * 1024 * 1024;
public static final long MAX_CHANNEL_SIZE_IN_BYTES_DEFAULT = 64 * 1024 * 1024;
public static final long MAX_CHUNK_SIZE_IN_BYTES_DEFAULT = 256 * 1024 * 1024;

// Lag related parameters
public static final long MAX_CLIENT_LAG_DEFAULT = 1000; // 1 second
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import static net.snowflake.ingest.utils.ParameterProvider.BDEC_PARQUET_COMPRESSION_ALGORITHM;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.mockito.Mockito.atLeastOnce;

import java.math.BigDecimal;
import java.math.BigInteger;
Expand Down Expand Up @@ -187,7 +188,7 @@ public void testSimpleIngest() throws Exception {
// verify expected request sent to server
String[] expectedPayloadParams = {"request_id", "blobs", "role", "blob_stats"};
for (String expectedParam : expectedPayloadParams) {
Mockito.verify(requestBuilder)
Mockito.verify(requestBuilder, atLeastOnce())
.generateStreamingIngestPostRequest(
ArgumentMatchers.contains(expectedParam),
ArgumentMatchers.refEq(REGISTER_BLOB_ENDPOINT),
Expand Down

0 comments on commit 6dc4c6f

Please sign in to comment.