-
Bug
-
Resolution: Done
-
None
-
Helium
-
None
-
Operating System: All
Platform: All
-
2834
A restconf POST does not wait for the write transaction to the datastore to succeed before returning, where as the PUT does wait. This is inconsistent behavior.
My expectation is that both PUT and POST will BLOCK until the transaction written to the datastore succeeds, OR if an error occurrs, that error is returned to the caller.
See RestconfImpl, public Response createConfigurationData(final Node<?> payload) { method.
This method calls these sub methods to get a callable, but then never waits on the callable.
try {
if (mountPoint != null)
else
{ broker.commitConfigurationDataPost( iiWithData.getInstanceIdentifier(), datastoreNormalizedData); // <-- needs .get() to block until call is done }} catch (Exception e)
{ throw new RestconfDocumentedException("Error creating data", e); }