Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public List<String> getUpgradeStatements() {
* node should be executed while this one is being processed)
*/
public boolean requiresExclusiveExecution() {
return exclusiveExecution || reads.isEmpty() && modifies.isEmpty();
return exclusiveExecution || isRoot();
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public void testExclusiveNodeFirstThenStandard() {
public void testExclusiveNodeNotAParent() {
// given
when(upgradeTableResolution.getModifiedTables(U1000.class.getName())).thenReturn(Sets.newHashSet("t1"));
when(upgradeTableResolution.getModifiedTables(U1000.class.getName())).thenReturn(Sets.newHashSet("t1", "t2"));
when(upgradeTableResolution.getModifiedTables(U1001.class.getName())).thenReturn(Sets.newHashSet("t1", "t2"));
upgradeSteps.addAll(Lists.newArrayList(eu1, u1000, u1001));

// when
Expand Down