Skip to content

Commit

Permalink
[hotfix] Remove 'TaskManager' from MemoryBackwardsCompatibilityUtils#…
Browse files Browse the repository at this point in the history
…getLegacyTaskManagerHeapMemoryIfExplicitlyConfigured
  • Loading branch information
azagrebin committed Apr 27, 2020
1 parent 679cd0f commit 4385fcc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Configuration getConfWithLegacyHeapSizeMappedToNewConfigOption(
if (configuration.contains(configOption)) {
return configuration;
}
return getLegacyTaskManagerHeapMemoryIfExplicitlyConfigured(configuration)
return getLegacyHeapMemoryIfExplicitlyConfigured(configuration)
.map(legacyHeapSize -> {
Configuration copiedConfig = new Configuration(configuration);
copiedConfig.set(configOption, legacyHeapSize);
Expand All @@ -61,7 +61,7 @@ public Configuration getConfWithLegacyHeapSizeMappedToNewConfigOption(
}).orElse(configuration);
}

private Optional<MemorySize> getLegacyTaskManagerHeapMemoryIfExplicitlyConfigured(Configuration configuration) {
private Optional<MemorySize> getLegacyHeapMemoryIfExplicitlyConfigured(Configuration configuration) {
@SuppressWarnings("CallToSystemGetenv")
String totalProcessEnv = System.getenv(legacyMemoryOptions.getEnvVar());
if (totalProcessEnv != null) {
Expand Down

0 comments on commit 4385fcc

Please sign in to comment.