BUG 8402: Close readonly tx
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / PrefixedShardConfigWriter.java
index f6e4d37857b859bd1c92a94117dec32f294b1589..0342a1351748aa77f2020bb179198ddf5bace2a9 100644 (file)
@@ -117,6 +117,8 @@ class PrefixedShardConfigWriter {
         } catch (final ReadFailedException e) {
             LOG.error("Presence check of default shard in configuration failed.", e);
             return false;
+        } finally {
+            snapshot.abort();
         }
     }