cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject cayenne git commit: CAY-2125 SchemaUpdateStrategy doesn't work with multiple DataNodes
Date Mon, 24 Oct 2016 19:08:09 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 60fc4d267 -> b8dc1128d


CAY-2125 SchemaUpdateStrategy doesn't work with multiple DataNodes


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/b8dc1128
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/b8dc1128
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/b8dc1128

Branch: refs/heads/master
Commit: b8dc1128d057199930c26d0434803c6b89a20e41
Parents: 60fc4d2
Author: Andrus Adamchik <andrus@objectstyle.com>
Authored: Mon Oct 24 14:47:54 2016 -0400
Committer: Andrus Adamchik <andrus@objectstyle.com>
Committed: Mon Oct 24 15:08:04 2016 -0400

----------------------------------------------------------------------
 .../org/apache/cayenne/access/dbsync/BaseSchemaUpdateStrategy.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/b8dc1128/cayenne-server/src/main/java/org/apache/cayenne/access/dbsync/BaseSchemaUpdateStrategy.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/access/dbsync/BaseSchemaUpdateStrategy.java
b/cayenne-server/src/main/java/org/apache/cayenne/access/dbsync/BaseSchemaUpdateStrategy.java
index 7158c5b..0d77585 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/access/dbsync/BaseSchemaUpdateStrategy.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/access/dbsync/BaseSchemaUpdateStrategy.java
@@ -25,6 +25,8 @@ import java.sql.SQLException;
 /**
  * @since 3.0
  */
+// Note that this object must be scoped by DataNode. An attempt to share it between nodes
will result in ignoring
+// schema update for all but one node (see CAY-2125)
 public abstract class BaseSchemaUpdateStrategy implements SchemaUpdateStrategy {
 
     protected volatile boolean run;


Mime
View raw message