X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Fclustering-test-app%2Fprovider%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fclustering%2Fit%2Fprovider%2Fimpl%2FProduceTransactionsHandler.java;h=01be4645bccb62e719b745a80e4d5ef3e41de564;hp=278a963ce7a0c76683deca006894763583562736;hb=64733d28de4cb916c8749b9230f0b2e652bf04ad;hpb=25ec94fd44c0912d6a00afdcf83110d8d0fb0236 diff --git a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java index 278a963ce7..01be4645bc 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java +++ b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java @@ -139,7 +139,7 @@ public class ProduceTransactionsHandler implements Runnable { try { tx.submit().checkedGet(125, TimeUnit.SECONDS); - } catch (final TransactionCommitFailedException | TimeoutException e) { + } catch (final Exception e) { LOG.warn("Unable to fill the initial item list.", e); settableFuture.set(RpcResultBuilder.failed() .withError(RpcError.ErrorType.APPLICATION, "Unexpected-exception", e).build()); @@ -203,7 +203,7 @@ public class ProduceTransactionsHandler implements Runnable { .withResult(output).build()); executor.shutdown(); - } catch (InterruptedException | ExecutionException | TimeoutException exception) { + } catch (Exception exception) { LOG.error("Write transactions failed.", exception); completionFuture.set(RpcResultBuilder.failed() .withError(RpcError.ErrorType.APPLICATION, "Unexpected-exception", exception).build());