Updated git submodules
authorMichael Vorburger <vorburger@redhat.com>
Tue, 11 Jul 2017 15:54:37 +0000 (21:24 +0530)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 15 Jul 2017 10:47:46 +0000 (10:47 +0000)
commit253fc519a3e253d17245c816f34d46d011abc9da
tree29bf707a581d91d7dff75f8b9c476bb3b3211781
parent10892a769d7ba608e6b98f9b6c18f85dc3aaf4ce
Updated git submodules

Project: infrautils master 224b0829c904ff9a4fb257bfe23dbf86c0289652

ListenableFutures util to simplify adding error logging callbacks

Intended for usage in existing code prevalent in e.g. genius and netvirt
which simply ignores Future returned by DataBroker Tx submit; using
this, at least we'll get to see logs.  (Ideal solution would be real
error recovery callbacks.)

NB: This is solution for today's world.  In tomorrow's world where e.g.
DataBroker (and other ODL APIs) switch from Guava's ListenableFuture to
Java 8's CompletionStage, this helper won't be required anymore, as code
then will be able to just use the easier:

    completionStage.exceptionally(t -> LOG.error("...", t));

instead of using this utility for today's APIs like this:

    import static
org.opendaylight.infrautils.utils.concurrent.MoreFutures.addErrorLogging;

    addErrorLogging(listenableFuture, LOG, "...");

Until that (major...) API switch happens though, this is a very
convenient utility to short-cut what otherwise is several lines of
boiler plate code.

TODO: It would be cool if this could, later, preserve the call stack...

Change-Id: I1d3e4afbc0940faa0c8f83e9d713c2e081e18a28
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
docs/submodules/infrautils