fix compare 0 bug and cluster of tokens

This commit is contained in:
mimic
2020-06-10 11:52:26 +02:00
parent a26275cf4a
commit 5c2d78e370
2 changed files with 13 additions and 9 deletions
@@ -151,13 +151,14 @@ public class CompareTrees {
public static boolean newCoreCompare( String treeType,ArrayList<String> errorPairs, HashMap<String, String> filenames,JedisPool outerPool ) {
String pairName;
String pairName = null;
try (Jedis outer = outerPool.getResource()) {
pairName = outer.spop("compare");
}
// }
if(pairName.equals("0"))
return true;
String matchKey = null;
try {
// try {
String[] split = pairName.split("/");
@@ -235,7 +236,7 @@ public class CompareTrees {
// break;
}
}catch (Exception e) {
errorPairs.add(matchKey);
errorPairs.add(pairName);
if (pairName == null)
return false;
log.debug("{} not comparable", pairName);