Skip to content

Commit 8bb27b8

Browse files
authored
TEZ-4454: remove extra commas. (#246) (slfan1989 reviewed by Laszlo Bodor)
1 parent 8ebc4b0 commit 8bb27b8

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

tez-api/src/test/java/org/apache/tez/common/TestTezCommonUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class TestTezCommonUtils {
4949
private static final File LOCAL_STAGING_DIR = new File(System.getProperty("test.build.data"),
5050
TestTezCommonUtils.class.getSimpleName()).getAbsoluteFile();
5151
private static String RESOLVED_STAGE_DIR;
52-
private static Configuration conf = new Configuration();;
52+
private static Configuration conf = new Configuration();
5353
private static String TEST_ROOT_DIR = "target" + Path.SEPARATOR
5454
+ TestTezCommonUtils.class.getName() + "-tmpDir";
5555
private static MiniDFSCluster dfsCluster = null;

tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/VertexImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ private void augmentStateMachine() {
681681
.registerStateEnteredCallback(VertexState.RUNNING,
682682
STATE_CHANGED_CALLBACK)
683683
.registerStateEnteredCallback(VertexState.INITIALIZING,
684-
STATE_CHANGED_CALLBACK);;
684+
STATE_CHANGED_CALLBACK);
685685
}
686686

687687
private final StateMachineTez<VertexState, VertexEventType, VertexEvent, VertexImpl> stateMachine;
@@ -3886,7 +3886,7 @@ private void commitCompleted(VertexEventCommitCompleted commitCompletedEvent) {
38863886
} else {
38873887
String diag = "Commit failed for output:" + commitCompletedEvent.getOutputName()
38883888
+ ", vertexId=" + logIdentifier + ", "
3889-
+ ExceptionUtils.getStackTrace(commitCompletedEvent.getException());;
3889+
+ ExceptionUtils.getStackTrace(commitCompletedEvent.getException());
38903890
LOG.info(diag);
38913891
addDiagnostic(diag);
38923892
trySetTerminationCause(VertexTerminationCause.COMMIT_FAILURE);
@@ -4398,7 +4398,7 @@ public void setOutputVertices(Map<Vertex, Edge> outVertices) {
43984398
addIO(vertex.getName());
43994399
}
44004400
} finally {
4401-
writeLock.unlock();;
4401+
writeLock.unlock();
44024402
}
44034403
}
44044404

tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/shuffle/orderedgrouped/MergeManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void setupParentThread(Thread shuffleSchedulerThread) {
322322
if (this.memToMemMerger != null) {
323323
memToMemMerger.setParentThread(shuffleSchedulerThread);
324324
}
325-
this.inMemoryMerger.setParentThread(shuffleSchedulerThread);;
325+
this.inMemoryMerger.setParentThread(shuffleSchedulerThread);
326326
this.onDiskMerger.setParentThread(shuffleSchedulerThread);
327327
}
328328

tez-runtime-library/src/main/java/org/apache/tez/runtime/library/common/sort/impl/TezMerger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ protected boolean lessThan(Object a, Object b) {
699699
int s1 = key1.getPosition();
700700
int l1 = key1.getLength();
701701
int s2 = key2.getPosition();
702-
int l2 = key2.getLength();;
702+
int l2 = key2.getLength();
703703

704704
return comparator.compare(key1.getData(), s1, l1, key2.getData(), s2, l2) < 0;
705705
}

tez-tests/src/test/java/org/apache/tez/test/TestInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public void handleEvents(List<Event> inputEvents) throws Exception {
393393

394394
@Override
395395
public List<Event> close() throws Exception {
396-
getContext().getCounters().findCounter(COUNTER_NAME, COUNTER_NAME).increment(1);;
396+
getContext().getCounters().findCounter(COUNTER_NAME, COUNTER_NAME).increment(1);
397397
return null;
398398
}
399399

tez-tests/src/test/java/org/apache/tez/test/TestOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void handleEvents(List<Event> outputEvents) {
8080
@Override
8181
public List<Event> close() throws Exception {
8282
LOG.info("Sending data movement event with value: " + output);
83-
getContext().getCounters().findCounter(COUNTER_NAME, COUNTER_NAME).increment(1);;
83+
getContext().getCounters().findCounter(COUNTER_NAME, COUNTER_NAME).increment(1);
8484
ByteBuffer result = ByteBuffer.allocate(4).putInt(output);
8585
result.flip();
8686
List<Event> events = Lists.newArrayListWithCapacity(getNumPhysicalOutputs());

0 commit comments

Comments
 (0)