From d4fea19136c688e81085daa30cacd1ca03176914 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 21 Oct 2013 17:45:52 +0000 Subject: Added FIXME comment. --- .../carbonado/repo/replicated/ReplicationTrigger.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/main/java/com/amazon') diff --git a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java index ce0ce53..4b01679 100644 --- a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java +++ b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java @@ -306,6 +306,23 @@ class ReplicationTrigger extends Trigger { // Insert new entry. if (masterEntry != null && newReplicaEntry != null) { if (!newReplicaEntry.tryInsert()) { + /* + log.warn("Unable to insert: " + newReplicaEntry); + Storable copy = newReplicaEntry.copy(); + if (copy.tryLoad()) { + log.warn("Blocked by: " + copy); + } else { + log.warn("Nothing loaded"); + try { + newReplicaEntry.insert(); + } catch (Exception e) { + log.warn("Still cannot insert", e); + return; + } + } + */ + + // FIXME: can be caused by alt key constraint // Try to correct bizarre corruption. newReplicaEntry.tryDelete(); newReplicaEntry.tryInsert(); -- cgit v1.2.3