Skip to content

Commit

Permalink
Merge pull request #61 from DataONEorg/feature-MC1665-k8s-testsuite-a…
Browse files Browse the repository at this point in the history
…daptations

increase index.solr.versionConflict.max.attempts
  • Loading branch information
artntek authored Jan 10, 2024
2 parents 7ce09ad + 4506790 commit 348178c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion helm/config/dataone-indexer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ index.resourcemap.waitingComponent.max.attempts=25
#Time (milliseconds) indexer will wait to grab a newer version of solr doc after a version conflict
index.solr.versionConflict.waiting.time=500
#Number of the times the indexer tries to get a newer version of solr doc after a version conflict
index.solr.versionConflict.max.attempts=5
index.solr.versionConflict.max.attempts=25
9 changes: 6 additions & 3 deletions src/main/java/org/dataone/cn/indexer/SolrIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ public class SolrIndex {
public static final String ID = "id";
private static final String IDQUERY = ID+":*";
private static final String VERSION_CONFLICT = "version conflict";
private static final int VERSION_CONFLICT_MAX_ATTEMPTS = Settings.getConfiguration().getInt("index.solr.versionConflict.max.attempts", 5);
private static final int VERSION_CONFICT_WAITING = Settings.getConfiguration().getInt("index.solr.versionConflict.waiting.time", 500); //milliseconds
private static final List<String> resourceMapFormatIdList = Settings.getConfiguration().getList("index.resourcemap.namespace");
private static final int VERSION_CONFLICT_MAX_ATTEMPTS = Settings.getConfiguration().getInt(
"index.solr.versionConflict.max.attempts", 25);
private static final int VERSION_CONFICT_WAITING = Settings.getConfiguration().getInt(
"index.solr.versionConflict.waiting.time", 500); //milliseconds
private static final List<String> resourceMapFormatIdList = Settings.getConfiguration().getList(
"index.resourcemap.namespace");
private static List<IDocumentSubprocessor> subprocessors = null;
private static List<IDocumentDeleteSubprocessor> deleteSubprocessors = null;
private static SolrClient solrServer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ index.resourcemap.waitingComponent.max.attempts=15
#The time (millisecond) that indexer will wait to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.waiting.time=500
#The number of the attempts that indexer tries to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.max.attempts=5
index.solr.versionConflict.max.attempts=25

dataone.indexing.performance.logging.enabled=false

D1Client.CN_URL=https://cn.dataone.org/cn

index.resourcemap.namespace=http://www.w3.org/TR/rdf-syntax-grammar;http://www.openarchives.org/ore/terms

dataone.mn.registration.serviceType.url=https://cn.dataone.org/mnServiceTypes.xml
dataone.mn.registration.serviceType.url=https://cn.dataone.org/mnServiceTypes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ index.resourcemap.waitingComponent.max.attempts=15
#The time (millisecond) that indexer will wait to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.waiting.time=500
#The number of the attempts that indexer tries to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.max.attempts=5
index.solr.versionConflict.max.attempts=25
#You may specify the exact number of threads the indexer will use.
#If you keep it blank, Metacat will use the default one - the system processors number minus one. If calculation result is 0, 1 will be used as the default value.
#If the one you specify exceeds the default number or is less than 1, the default one will be used as well.
Expand All @@ -41,4 +41,4 @@ index.resourcemap.namespace=http://www.w3.org/TR/rdf-syntax-grammar;http://www.o

dataone.mn.registration.serviceType.url=https://cn-sandbox-ucsb-1.test.dataone.org/mnServiceTypes.xml

cn.router.hostname2=cn.dataone.org
cn.router.hostname2=cn.dataone.org
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ index.resourcemap.waitingComponent.max.attempts=15
#The time (millisecond) that indexer will wait to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.waiting.time=500
#The number of the attempts that indexer tries to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.max.attempts=5
index.solr.versionConflict.max.attempts=25
#You may specify the exact number of threads the indexer will use.
#If you keep it blank, Metacat will use the default one - the system processors number minus one. If calculation result is 0, 1 will be used as the default value.
#If the one you specify exceeds the default number or is less than 1, the default one will be used as well.
Expand All @@ -41,4 +41,4 @@ index.resourcemap.namespace=http://www.w3.org/TR/rdf-syntax-grammar;http://www.o

dataone.mn.registration.serviceType.url=https://cn-sandbox-ucsb-1.test.dataone.org/mnServiceTypes.xml

cn.router.hostname=cn.dataone.org
cn.router.hostname=cn.dataone.org

0 comments on commit 348178c

Please sign in to comment.