Skip to content

Commit

Permalink
Increase DefaultElasticBoundSize to Stress All Tests (#43519)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimrabab authored Jan 8, 2025
1 parent 952bdb9 commit 178bd1c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ spec:
-XX:MaxRAMPercentage=50 \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath="${DEBUG_SHARE}" \
-Dreactor.schedulers.defaultBoundedElasticSize={{ default 5 .Stress.parallelRuns }} \
-Dreactor.schedulers.defaultBoundedElasticSize={{ 25 }} \
-jar /app/azure-storage-blob-stress-1.0.0-beta.1-jar-with-dependencies.jar \
{{ .Stress.testScenario }} \
--parallel {{ default 5 .Stress.parallelRuns }} \
--parallel {{ default 3 .Stress.parallelRuns }} \
--maxConcurrency {{ default 10 .Stress.maxConcurrency }} \
--duration {{ mul 60 .Stress.durationMin }} \
--size {{ .Stress.sizeBytes }} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ spec:
-XX:MaxRAMPercentage=50 \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath="${DEBUG_SHARE}" \
-Dreactor.schedulers.defaultBoundedElasticSize={{ default 5 .Stress.parallelRuns }} \
-Dreactor.schedulers.defaultBoundedElasticSize={{ 25 }} \
-jar /app/azure-storage-file-datalake-stress-1.0.0-beta.1-jar-with-dependencies.jar \
{{ .Stress.testScenario }} \
--parallel {{ default 5 .Stress.parallelRuns }} \
--parallel {{ default 3 .Stress.parallelRuns }} \
--maxConcurrency {{ default 10 .Stress.maxConcurrency }} \
--duration {{ mul 60 .Stress.durationMin }} \
--size {{ .Stress.sizeBytes }} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected void runInternal(Context span) throws IOException {

try (CrcInputStream inputStream = new CrcInputStream(originalContent.getContentHead(), options.getSize());
OutputStream outputStream = syncClient.getFileOutputStream()) {
byte[] buffer = new byte[4096]; // Define a buffer
byte[] buffer = new byte[1024*1024*4]; // Define a buffer
int bytesRead;

// Read from the inputStream and write to the blobOutputStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ spec:
-XX:MaxRAMPercentage=50 \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath="${DEBUG_SHARE}" \
-Dreactor.schedulers.defaultBoundedElasticSize={{ default 5 .Stress.parallelRuns }} \
-Dreactor.schedulers.defaultBoundedElasticSize={{ 25 }} \
-jar /app/azure-storage-file-share-stress-1.0.0-beta.1-jar-with-dependencies.jar \
{{ .Stress.testScenario }} \
--parallel {{ default 5 .Stress.parallelRuns }} \
--parallel {{ default 3 .Stress.parallelRuns }} \
--maxConcurrency {{ default 10 .Stress.maxConcurrency }} \
--duration {{ mul 60 .Stress.durationMin }} \
--size {{ .Stress.sizeBytes }} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.logging.LogLevel;
import com.azure.monitor.opentelemetry.exporter.AzureMonitorExporter;
import io.netty.channel.unix.Errors;
import io.opentelemetry.api.OpenTelemetry;
import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.api.common.Attributes;
Expand Down Expand Up @@ -195,6 +196,18 @@ private void trackCancellation(Instant start, Span span) {
private void trackFailure(Instant start, Throwable e, Span span) {
Throwable unwrapped = Exceptions.unwrap(e);

// Check if the unwrapped exception is a RuntimeException
// Check if the message contains "NativeIoException" or TimeoutException and the unwrapped exception is not
// already a NativeIoException/TimeoutException
if (unwrapped instanceof RuntimeException) {
String message = unwrapped.getMessage();
if (message.contains("NativeIoException")) {
unwrapped = new io.netty.channel.unix.Errors.NativeIoException("recvAddress", Errors.ERRNO_ECONNRESET_NEGATIVE);
} else if (message.contains("TimeoutException")) {
unwrapped = new TimeoutException(message);
}
}

span.recordException(unwrapped);
span.setAttribute(ERROR_TYPE_ATTRIBUTE, unwrapped.getClass().getName());
span.setStatus(StatusCode.ERROR, unwrapped.getMessage());
Expand Down

0 comments on commit 178bd1c

Please sign in to comment.