Skip to content

Commit

Permalink
Remove defunct exchange.min-error-duration configuration
Browse files Browse the repository at this point in the history
The configuration `exchange.min-error-duration` is ignored
since c4092b0 removed the
`QueryManagerConfig.remoteTaskMinErrorDuration` field.
  • Loading branch information
findepi committed Jun 2, 2023
1 parent 8fbb400 commit e9181f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package io.trino.operator;

import io.airlift.configuration.Config;
import io.airlift.configuration.DefunctConfig;
import io.airlift.http.client.HttpClientConfig;
import io.airlift.units.DataSize;
import io.airlift.units.DataSize.Unit;
Expand All @@ -26,6 +27,7 @@

import java.util.concurrent.TimeUnit;

@DefunctConfig("exchange.min-error-duration")
public class DirectExchangeClientConfig
{
private DataSize maxBufferSize = DataSize.of(32, Unit.MEGABYTE);
Expand Down Expand Up @@ -63,19 +65,6 @@ public DirectExchangeClientConfig setConcurrentRequestMultiplier(int concurrentR
return this;
}

@Deprecated
public Duration getMinErrorDuration()
{
return maxErrorDuration;
}

@Deprecated
@Config("exchange.min-error-duration")
public DirectExchangeClientConfig setMinErrorDuration(Duration minErrorDuration)
{
return this;
}

@NotNull
@MinDuration("1ms")
public Duration getMaxErrorDuration()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public void testDefaults()
assertRecordedDefaults(recordDefaults(DirectExchangeClientConfig.class)
.setMaxBufferSize(DataSize.of(32, Unit.MEGABYTE))
.setConcurrentRequestMultiplier(3)
.setMinErrorDuration(new Duration(5, TimeUnit.MINUTES))
.setMaxErrorDuration(new Duration(5, TimeUnit.MINUTES))
.setMaxResponseSize(new HttpClientConfig().getMaxContentLength())
.setPageBufferClientMaxCallbackThreads(25)
Expand All @@ -50,7 +49,6 @@ public void testExplicitPropertyMappings()
Map<String, String> properties = ImmutableMap.<String, String>builder()
.put("exchange.max-buffer-size", "1GB")
.put("exchange.concurrent-request-multiplier", "13")
.put("exchange.min-error-duration", "13s")
.put("exchange.max-error-duration", "33s")
.put("exchange.max-response-size", "1MB")
.put("exchange.client-threads", "2")
Expand All @@ -62,7 +60,6 @@ public void testExplicitPropertyMappings()
DirectExchangeClientConfig expected = new DirectExchangeClientConfig()
.setMaxBufferSize(DataSize.of(1, Unit.GIGABYTE))
.setConcurrentRequestMultiplier(13)
.setMinErrorDuration(new Duration(33, TimeUnit.SECONDS))
.setMaxErrorDuration(new Duration(33, TimeUnit.SECONDS))
.setMaxResponseSize(DataSize.of(1, Unit.MEGABYTE))
.setClientThreads(2)
Expand Down

0 comments on commit e9181f3

Please sign in to comment.