Add support to create/update solr collection aliases #449
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#449
Loading…
Reference in New Issue
No description provided.
Delete Branch "9872-create-solr-collection-aliases"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The 'update_solr_aliases' action was added in the 'index_infospace_graph' workflow.
It creates/updates two aliases, with the names
public
andshadow
.It can be explicitly executed when setting
resumeFrom=update_solr_aliases
.Also,
publicFormat
andpublicFormat
parameters need to be provided.Example:
resumeFrom=update_solr_aliases
publicFormat=DMF
shadowFormat=TMF
Tested in GARR: test run here
Thanks @schatz for this contribution. I think it gives the proper building blocks to implement the collection/alias switch functionality, but in the current proposed state I cannot accept it. In fact, the switch operation cannot be part of the index feeding workflow. In between there are the content check operations that might prevent to operate the switch and sometimes imply to fix something in the data and feed the shadow collection again.
Hence I think it would be better to define a separated oozie workflow, a simple one, responsible only to perform the switch. In this way the index feeding and the alias switching would be completely independent operations.
As I said above however, the building blocks seems to be in place, so I can reorganise the changes and define the oozie workflow by myself. Thanks!
I must amend my comment above, I just noticed now your comment
So you thought about it :)
In this case, I will only have to define the D-Net level collection/alias switching workflow to invoke the provision oozie workflow explicitly setting the proper resume_from parameter value.
I took the opportunity of this PR to introduce some further changes needed to handle the feeding of the index collection targeting the shadow alias.
Add support to cretate/update solr collection aliasesto Add support to create/update solr collection aliases