Skip to content

Commit

Permalink
[FLINK-5196] [logging] Don't log InputChannelDeploymentDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
uce committed Dec 1, 2016
1 parent dc5650a commit 67bd827
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.Arrays;

import static org.apache.flink.util.Preconditions.checkNotNull;

Expand Down Expand Up @@ -143,8 +142,6 @@ else if (allowLazyDeployment) {
consumedPartitionId, partitionLocation);
}

LOG.debug("Created {} from edges {}.", Arrays.toString(icdd), Arrays.toString(edges));

return icdd;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -554,8 +553,11 @@ public static SingleInputGate create(
// Create the input channels. There is one input channel for each consumed partition.
final InputChannel[] inputChannels = new InputChannel[icdd.length];

for (int i = 0; i < inputChannels.length; i++) {
int numLocalChannels = 0;
int numRemoteChannels = 0;
int numUnknownChannels = 0;

for (int i = 0; i < inputChannels.length; i++) {
final ResultPartitionID partitionId = icdd[i].getConsumedPartitionId();
final ResultPartitionLocation partitionLocation = icdd[i].getConsumedPartitionLocation();

Expand All @@ -567,6 +569,8 @@ public static SingleInputGate create(
networkEnvironment.getPartitionRequestMaxBackoff(),
metrics
);

numLocalChannels++;
}
else if (partitionLocation.isRemote()) {
inputChannels[i] = new RemoteInputChannel(inputGate, i, partitionId,
Expand All @@ -576,6 +580,8 @@ else if (partitionLocation.isRemote()) {
networkEnvironment.getPartitionRequestMaxBackoff(),
metrics
);

numRemoteChannels++;
}
else if (partitionLocation.isUnknown()) {
inputChannels[i] = new UnknownInputChannel(inputGate, i, partitionId,
Expand All @@ -586,6 +592,8 @@ else if (partitionLocation.isUnknown()) {
networkEnvironment.getPartitionRequestMaxBackoff(),
metrics
);

numUnknownChannels++;
}
else {
throw new IllegalStateException("Unexpected partition location.");
Expand All @@ -594,7 +602,11 @@ else if (partitionLocation.isUnknown()) {
inputGate.setInputChannel(partitionId.getPartitionId(), inputChannels[i]);
}

LOG.debug("Created input channels {} from {}.", Arrays.toString(inputChannels), igdd);
LOG.debug("Created {} input channels (local: {}, remote: {}, unknown: {}).",
inputChannels.length,
numLocalChannels,
numRemoteChannels,
numUnknownChannels);

return inputGate;
}
Expand Down

0 comments on commit 67bd827

Please sign in to comment.