mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2020-12-21
This commit is contained in:
@ -592,6 +592,42 @@ java.lang.OutOfMemoryError: Java heap space
|
||||
- I looked in Solr and found dozens of duplicates of each field again...
|
||||
- I sent [feedback to Atmire](https://tracker.atmire.com/tickets-cgiar-ilri/view-ticket?id=839)
|
||||
- I finished the technical work on adding community and collection support to the DSpace Statistics API
|
||||
- I still need to update the tests as well as the documentation
|
||||
- I still need to update ~~the tests~~ as well as the documentation
|
||||
- I started a harvesting of AReS
|
||||
|
||||
## 2020-12-21
|
||||
|
||||
- The AReS harvest finished this morning and I moved the Elasticsearch index manually
|
||||
- First, check the number of records in the temp index to make sure it seems complete and not with double data:
|
||||
|
||||
```console
|
||||
$ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty'
|
||||
{
|
||||
"count" : 100135,
|
||||
"_shards" : {
|
||||
"total" : 1,
|
||||
"successful" : 1,
|
||||
"skipped" : 0,
|
||||
"failed" : 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- Then delete the old backup and clone the current items index as a backup:
|
||||
|
||||
```console
|
||||
$ curl -XDELETE 'http://localhost:9200/openrxv-items-2020-12-14?pretty'
|
||||
$ curl -X PUT "localhost:9200/openrxv-items/_settings?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index.blocks.write": true}}'
|
||||
$ curl -s -X POST http://localhost:9200/openrxv-items/_clone/openrxv-items-2020-12-21
|
||||
```
|
||||
|
||||
- Then delete the current items index and clone it from temp:
|
||||
|
||||
```console
|
||||
$ curl -XDELETE 'http://localhost:9200/openrxv-items?pretty'
|
||||
$ curl -X PUT "localhost:9200/openrxv-items-temp/_settings?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index.blocks.write": true}}'
|
||||
$ curl -s -X POST http://localhost:9200/openrxv-items-temp/_clone/openrxv-items
|
||||
$ curl -X PUT "localhost:9200/openrxv-items-temp/_settings?pretty" -H 'Content-Type: application/json' -d'{"settings": {"index.blocks.write": false}}'
|
||||
```
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user