Skip to content

Commit

Permalink
Move field initialization for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk committed May 22, 2024
1 parent b6a078b commit ed231b6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ public static class StageExecution
private boolean taskDescriptorLoadingActive;
private boolean exchangeClosed;

private final long startTime = System.nanoTime();
private final long startTime;
private OptionalLong nonSpeculativeSwitchTime;

private MemoryRequirements initialMemoryRequirements;
Expand Down Expand Up @@ -1957,7 +1957,8 @@ private StageExecution(
this.schedulingPriority = schedulingPriority;
this.eager = eager;
this.speculative = speculative;
this.nonSpeculativeSwitchTime = speculative ? OptionalLong.empty() : OptionalLong.of(System.nanoTime());
this.startTime = System.nanoTime();
this.nonSpeculativeSwitchTime = speculative ? OptionalLong.empty() : OptionalLong.of(startTime);
this.dynamicFilterService = requireNonNull(dynamicFilterService, "dynamicFilterService is null");
outputDataSize = new long[sinkPartitioningScheme.getPartitionCount()];
sinkOutputSelectorBuilder = ExchangeSourceOutputSelector.builder(ImmutableSet.of(exchange.getId()));
Expand Down

0 comments on commit ed231b6

Please sign in to comment.