Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Rest config NPE & ZK Persistence Reconciling/Defaulting & Backup/Restore Volume mount #65

Merged
merged 7 commits into from
Jan 8, 2020

Conversation

sepulworld
Copy link
Contributor

Signed-off-by: Zane Williamson [email protected]

Issue number of the reported bug or feature request: #

Describe your changes
A clear and concise description of the changes you have made.

Testing performed
Describe the testing you have performed to ensure that the bug has been addressed, or that the new feature works as planned.

Additional context
Add any other context about your contribution here.

@@ -31,8 +31,8 @@ import (
)

const (
BaseBackupRestorePath = "/var/solr-backup-restore"
TarredFile = "/var/solr-backup-restore/backup.tgz"
BaseBackupRestorePath = "/var/solr/solr-backup-restore"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes permission problem when exec the EnsureDirectory function.

@@ -3,6 +3,13 @@ kind: SolrCloud
metadata:
name: example
spec:
dataPvcSpec:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to have persistent PVCs for test_solrcloud so that when docker locally restarts, collections and replica data persists nicely, otherwise collections and shards will remain down.

@sepulworld sepulworld force-pushed the bug/fixing_solrbackup_crd branch from 66c70eb to fdfdeda Compare January 3, 2020 21:52
@sepulworld sepulworld changed the title [WIP] Fixing nullpointer error with rest config lookup Fixing nullpointer error with rest config lookup Jan 3, 2020
@sepulworld sepulworld force-pushed the bug/fixing_solrbackup_crd branch from fffb82c to f48ce45 Compare January 6, 2020 23:35
HoustonPutman and others added 4 commits January 7, 2020 10:13
Also uses the `changed = true` tag so that the Solr object is updated with the default values.

Signed-off-by: Houston Putman <[email protected]>
Signed-off-by: Houston Putman <[email protected]>
@HoustonPutman
Copy link
Contributor

Awesome! We good to go with this?

@sepulworld
Copy link
Contributor Author

sepulworld commented Jan 8, 2020

Awesome! We good to go with this?

Not yet, I commented in the thread above. When a user doesn't provide a persistence spec for ZK we go into an update loop. (This was working ok prior to your merged in changes). Let me see if I can find issue

@HoustonPutman
Copy link
Contributor

Ugh it's because my PR to the zk-operator hasn't been merged. I think I've fixed it though. I'll also test it out.

Fixed empty zk persistence option. And logging.
@HoustonPutman HoustonPutman changed the title Fixing nullpointer error with rest config lookup Fixing Rest config NPE & ZK Persistence Reconciling/Defaulting & Backup/Restore Volume mount Jan 8, 2020
@sepulworld
Copy link
Contributor Author

Ugh it's because my PR to the zk-operator hasn't been merged. I think I've fixed it though. I'll also test it out.

Tested out locally and works well now! I think we are good. Leave in the commented out code and add back when upstream change gets applied?

@HoustonPutman
Copy link
Contributor

HoustonPutman commented Jan 8, 2020 via email

@HoustonPutman HoustonPutman merged commit 0bcff50 into apache:master Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants