[ https://issues.apache.org/jira/browse/SOLR-14201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17024969#comment-17024969 ]
Vinh Le edited comment on SOLR-14201 at 1/28/20 9:02 AM: --------------------------------------------------------- h3. Without both optimize and alias {code:java} #!/bin/bash -e HOST=http://localhost:8983/solr # Base on alias # PREV_COLLECTION=$(http --timeout=300 "$HOST/admin/collections?action=LISTALIASES" | jq -r ".aliases.SGFAS") # Base on last collection PREV_COLLECTION=$(http --timeout=300 "$HOST/admin/collections?action=LIST" | jq -r ".collections[0]")COLLECTION="next_$(gdate +%H%M%S)" # COLLECTION="next_1029" echo "Create new collection = $COLLECTION" http --timeout=300 POST "$HOST/admin/collections?action=CREATE&name=$COLLECTION&collection.configName=seafas&numShards=1" echo "Push data to new collection" cat docs.xml | http --timeout=300 POST "$HOST/$COLLECTION/update?commitWithin=1000&overwrite=true&wt=json" "Content-Type: text/xml" # echo "Optimize" # http --timeout=300 "$HOST/$COLLECTION/update?optimize=true&maxSegments=1&waitSearcher=false" # echo "Update alias" # http --timeout=300 "$HOST/admin/collections?action=CREATEALIAS&collections=$COLLECTION&name=SGFAS" echo "Delete previous collection = $PREV_COLLECTION" http --timeout=300 "$HOST/admin/collections?action=DELETE&name=$PREV_COLLECTION" echo "Classes.loaded" http --timeout=300 "http://localhost:8983/solr/admin/metrics" | jq '.metrics."solr.jvm"."classes.loaded"' {code} Basically, just remove the previous collection after creating a new one. !image-2020-01-28-16-59-51-813.png|width=853,height=645! Classes loaded still keeps increasing. was (Author: vinhlh): h3. Without both optimize and alias {code:java} // code placeholder {code} Basically, just remove the previous collection after creating a new one. !image-2020-01-28-16-59-51-813.png|width=853,height=645! Classes loaded still keeps increasing. > some SolrCore are not released after being removed > -------------------------------------------------- > > Key: SOLR-14201 > URL: https://issues.apache.org/jira/browse/SOLR-14201 > Project: Solr > Issue Type: Bug > Reporter: Christine Poerschke > Priority: Major > Attachments: image-2020-01-22-10-39-15-301.png, > image-2020-01-22-10-42-17-511.png, image-2020-01-22-12-28-46-241.png, > image-2020-01-22-14-45-52-730.png, image-2020-01-28-16-17-44-030.png, > image-2020-01-28-16-19-43-760.png, image-2020-01-28-16-20-50-709.png, > image-2020-01-28-16-59-51-813.png > > > [~vinhlh] reported in SOLR-10506 (affecting 6.5 with fixes in 6.6.6 and 7.0): > bq. In 7.7.2, some SolrCore still are not released after being removed. > https://issues.apache.org/jira/secure/attachment/12991357/image-2020-01-20-14-51-26-411.png > Starting this ticket for a separate investigation and fix. A next > investigative step could be to try and reproduce the issue on the latest 8.x > release. > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org