HIGUCHI Yuta
Committed by Gerrit Code Review

- adding more log

Change-Id: I2626a25d5dde502f1954f492b54785ba5fbb540b
...@@ -214,10 +214,13 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour ...@@ -214,10 +214,13 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour
214 } 214 }
215 }); 215 });
216 if (allocated) { 216 if (allocated) {
217 + log.warn("Failed to unregister {}: allocation exists", entry.getKey());
217 return abortTransaction(tx); 218 return abortTransaction(tx);
218 } 219 }
219 220
220 if (!removeValues(childTxMap, entry.getKey(), entry.getValue())) { 221 if (!removeValues(childTxMap, entry.getKey(), entry.getValue())) {
222 + log.warn("Failed to unregister {}: Failed to remove values: {}",
223 + entry.getKey(), entry.getValue());
221 return abortTransaction(tx); 224 return abortTransaction(tx);
222 } 225 }
223 } 226 }
...@@ -229,6 +232,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour ...@@ -229,6 +232,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour
229 .map(x -> new ResourceEvent(RESOURCE_REMOVED, x)) 232 .map(x -> new ResourceEvent(RESOURCE_REMOVED, x))
230 .collect(Collectors.toList()); 233 .collect(Collectors.toList());
231 notifyDelegate(events); 234 notifyDelegate(events);
235 + } else {
236 + log.warn("Failed to unregister {}: Commit failed.", resources);
232 } 237 }
233 return success; 238 return success;
234 } 239 }
......