SEARCH-506: All acls go to all shards

This commit is contained in:
Gethin James
2017-08-10 12:09:24 +02:00
parent a2db723186
commit a10a3d7c7f
2 changed files with 4 additions and 4 deletions
@@ -16,7 +16,8 @@ public class ExplicitRouter implements DocRouter {
@Override
public boolean routeAcl(int shardCount, int shardInstance, Acl acl) {
return shardId == shardInstance;
//all acls go to all shards.
return true;
}
@Override
@@ -106,7 +106,6 @@ public class DistributedExplicitShardRoutingTrackerTest extends AbstractAlfresco
if ("shard1".endsWith(core.getName()))
{
waitForDocCountCore(core, contentQuery, numNodes, 100000, begin);
waitForDocCountCore(core, aclQuery, numAcls, 100000, begin);
}
}
@@ -114,8 +113,8 @@ public class DistributedExplicitShardRoutingTrackerTest extends AbstractAlfresco
assertShardCount(0, contentQuery, 0);
assertShardCount(2, contentQuery, 0);
assertShardCount(0, aclQuery, 0);
assertShardCount(2, aclQuery, 0);
//Acls go to all cores
waitForDocCountAllCores(aclQuery, numAcls, 20000);
}
protected Properties getProperties()