BNPPFSLA-1125 [Update] Solr IntegrationTests - #42
Conversation
# This is the 1st commit message: BNPPFSLA-1125 [Update] SolrIntegrationTests # This is the commit message #2: BNPPFSLA-1125 [test] # This is the commit message #3: BNPPFSLA-1125 [test] with simple timeout # This is the commit message #4: BNPPFSLA-1125 [test] create backups with static names for new solr restore test # This is the commit message #5: BNPPFSLA-1125 [test] without name for auto recovery of solr # This is the commit message #6: BNPPFSLA-1125 [test] # This is the commit message #7: BNPPFSLA-1125 [test] we only keep 2 backups,... # This is the commit message #8: BNPPFSLA-1125 [test] solr doesnt delete the created backups due to setting explicit name? TDI # This is the commit message #9: BNPPFSLA-1125 [test] no last count # This is the commit message #10: BNPPFSLA-1125 [Update] solr backup it # This is the commit message #11: BNPPFSLA-1125 [Add] docker-compose
BNPPFSLA-1125 [test] BNPPFSLA-1125 [test] with simple timeout BNPPFSLA-1125 [test] create backups with static names for new solr restore test BNPPFSLA-1125 [test] without name for auto recovery of solr BNPPFSLA-1125 [test] BNPPFSLA-1125 [test] we only keep 2 backups,... BNPPFSLA-1125 [test] solr doesnt delete the created backups due to setting explicit name? TDI BNPPFSLA-1125 [test] no last count BNPPFSLA-1125 [Update] solr backup it BNPPFSLA-1125 [Add] docker-compose BNPPFSLA-1125 [test] BNPPFSLA-1125 [test]
30b7445 to
f2951dc
Compare
| # - S3_PATH_STYLE_ACCESS_ENABLED=true | ||
| # - RESTORE_FROM_BACKUP=true | ||
| # - RESTORE_BACKUP_NAME=my-alfresco-backup-20251006 | ||
| # - RESTORE_BACKUP_PATH=bucket |
There was a problem hiding this comment.
I'd leave this in as an example for anyone on how to actually setup a working FIXED_SNAPSHOT restore...
- Breaks when doing e.g. RESTORE_BACKUP_NAME="my-alfresco-backup-20251006" or if you try to pass the path of the snapshot instead of the bucket name...
There was a problem hiding this comment.
Then please add the reason as a comment.
… can test the restore from a chosen backup. * Solr has a special startup script and with the right ENV vars: RESTORE_BACKUP_NAME, RESTORE_BACKUP_PATH & RESTORE_FROM_BACKUP=true will restore the chosen S3-backup.
* Core-issue is that imported docker-solr container contains an old SOLR-BACKUP. * This has to be removed on docker level. * Build itself does need to include the jackson/joda libraries.
5e16348 to
fb51b80
Compare
|
Ok, I got to ask... What is the story behind the commit with commit message |
|
This was due to some testing with setting up a second SOLR container that runs the backup command on startup with a fixed-snapshot. |
| dependsOn(configurations.backupJar) | ||
|
|
||
| if (flavor == "solr6") { | ||
| // Remove the old imported solr-backup from docker-solr: |
There was a problem hiding this comment.
But where do both sets of dependencies come from? I assume from gradle. Can't we avoid pulling in the incorrect deps there? Removing it afterwards here feels like a hack.
There was a problem hiding this comment.
As discussed with @codingBenVdS and @RVanhuysseXenit, we will merge docker-solr and solr-backup instead.
|
|
||
| @Test | ||
| @Order(3) | ||
| void testRestorePointInTimeScriptEndpoint() { |
| # - S3_PATH_STYLE_ACCESS_ENABLED=true | ||
| # - RESTORE_FROM_BACKUP=true | ||
| # - RESTORE_BACKUP_NAME=my-alfresco-backup-20251006 | ||
| # - RESTORE_BACKUP_PATH=bucket |
There was a problem hiding this comment.
Then please add the reason as a comment.
BNPPFSLA-1125 [Update] Solr IntegrationTests