diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2013-10-21 17:45:52 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2013-10-21 17:45:52 +0000 |
commit | d4fea19136c688e81085daa30cacd1ca03176914 (patch) | |
tree | c1b6a7df7ca4c1746146f9e19bdb9f5c7ac45630 /src/main | |
parent | 8b693d7e8c3e602328b64188a9b8ce05a71ab044 (diff) |
Added FIXME comment.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/replicated/ReplicationTrigger.java | 17 |
1 files changed, 17 insertions, 0 deletions
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<S extends Storable> extends Trigger<S> { // 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();
|