Merge "BUG-9048 Fix actor crash when writing incorrect data"
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / impl / actors / WriteAdapter.java
index ef5df778d630d4b26a844a86a7fac5f027498d0d..a214dd4fc71a7a45383f7f78e63686a648ca9e0a 100644 (file)
@@ -13,6 +13,7 @@ import akka.actor.ActorRef;
 import com.google.common.util.concurrent.CheckedFuture;
 import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.MoreExecutors;
 import javax.annotation.Nonnull;
 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
 import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
@@ -56,7 +57,7 @@ class WriteAdapter {
             public void onFailure(@Nonnull final Throwable throwable) {
                 requester.tell(new SubmitFailedReply(throwable), self);
             }
-        });
+        }, MoreExecutors.directExecutor());
     }
 
     @SuppressWarnings("checkstyle:IllegalCatch")