mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-506: All acls go to all shards
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
+2
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user