Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,6 @@ class BeamModulePlugin implements Plugin<Project> {
"ComparableType",
"DoNotMockAutoValue",
"EmptyBlockTag",
"EmptyCatch",
"EqualsGetClass",
"EqualsUnsafeCast",
"EscapedEntity",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public void onStatus(Status status) {
try {
queue.offer(status);
} catch (Exception ignored) {
// Ignore exceptions during enqueueing.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public Accumulator<MetricsContainerStepMap, MetricsContainerStepMap> clone() {
try {
super.clone();
} catch (CloneNotSupportedException ignored) {
// Ignore CloneNotSupportedException
}
MetricsAccumulator metricsAccumulator = new MetricsAccumulator();
metricsAccumulator.getLocalValue().updateAll(this.getLocalValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ void stop() {
try {
boolean ignored = executorService.awaitTermination(5000L, TimeUnit.MILLISECONDS);
} catch (InterruptedException ignored) {
// Ignore InterruptedException during shutdown.
}
if (process == null) {
return;
Expand All @@ -90,6 +91,7 @@ void stop() {
try {
process.waitFor();
} catch (InterruptedException ignored) {
// Ignore InterruptedException during shutdown.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static String fetchMetadata(String key) {
}
}
} catch (IOException ignored) {
LOG.debug("Failed to fetch GCE metadata.", ignored);
}

// The return value can be an empty string, which may mean it's running on a non DataflowRunner.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ private void eventually(int attempts, Runnable fun) {
fun.run();
return;
} catch (AssertionError | InterruptedException t) {
// Ignore and try again.
}
}
fun.run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public void close() {
BigtableChangeStreamAccessor.getOrCreate(changeStreamConfig).close();
}
} catch (Exception ignored) {
// Ignore exceptions on close.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,7 @@ private int parseBundleStatus(String status) {
try {
statusCode = Integer.parseInt(status.substring(0, 3));
} catch (IndexOutOfBoundsException | NumberFormatException ignored) {
// Ignore parsing exception so we can return the default 404
}
return statusCode;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ public List<PubsubMessage> waitForNMessages(int n, Duration timeoutDuration)
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {
// Ignore interrupt and continue polling.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ private String pollForResultForDuration(
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {
// Ignore interrupt and continue polling.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ private static LocalDateTime getLocalDateTime(String value) {
datetime = LocalDateTime.parse(value, formatter);
return datetime;
} catch (DateTimeParseException ignored) {
// Ignore and try the next formatter.
}
}
return LocalDateTime.of(LocalDate.parse(value), LocalTime.MIN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public void teardown() throws UserCodeExecutionException {
try {
boolean ignored = executor.awaitTermination(3L, TimeUnit.SECONDS);
} catch (InterruptedException ignored) {
// Ignore the interrupt during teardown.
}
}

Expand Down Expand Up @@ -352,6 +353,7 @@ private void backoffIfNeeded(BackOff backOff, Sleeper sleeper) {
incIfPresent(sleeperCounter);
sleeper.sleep(backOff.nextBackOffMillis());
} catch (InterruptedException ignored) {
// Ignore the interrupt and try again.
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ OutputT apply(InputT input) throws UserCodeExecutionException {
}
latestError = Optional.of(e);
} catch (InterruptedException ignored) {
// Ignore the interrupt and try again.
}
incIfPresent(getBackoffCounter());
waitFor = getBackOff().nextBackOffMillis();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void teardown() throws UserCodeExecutionException {
try {
boolean ignored = cachedManagedChannel.awaitTermination(1L, TimeUnit.SECONDS);
} catch (InterruptedException ignored) {
// Ignore the InterruptedException on shutdown.
}
}
}
Expand Down
Loading