Skip to content

Conversation

@jward-bw
Copy link
Contributor

@jward-bw jward-bw commented Apr 26, 2021

This PR adds a new option for ephemeral data storage. Instead of the emptyDir you can use a hostPath volume. The default behaviour for ephemeral storage is still emptyDir, but specifying HostPath will mean hostPath will be used instead of emptyDir.

Addresses #266

@jward-bw
Copy link
Contributor Author

@HoustonPutman
Copy link
Contributor

@HoustonPutman I'm not sure what this error means, any ideas?
https://github.com/apache/solr-operator/pull/265/checks?check_run_id=2440577547

That is saying that you have two extra lines in your go.mod.

Try running make mod-tidy and see if those go away.

@jward-bw
Copy link
Contributor Author

They don't go away. Should I just remove the changes to go.mod?

@HoustonPutman
Copy link
Contributor

That's a good idea. I pulled your PR and ran make mod-tidy, and those two lines were removed. Maybe just a local thing for you?

@jward-bw
Copy link
Contributor Author

Interestingly I removed both and re-ran make mod-tidy, and the github.com/elazarl/goproxy/ext one came back, but the other didn't. I've removed both anyway

@jward-bw jward-bw force-pushed the implement-support-for-hostpath-solr-data-volumes branch from 65f10b7 to 7a9a717 Compare April 27, 2021 08:27
@jward-bw
Copy link
Contributor Author

jward-bw commented Apr 27, 2021

I don't use go regularly, so I shouldn't have any weird config. I did recently update to the latest version, so I wonder if that's caused a change in behaviour for me? 🤷

Copy link
Contributor

@HoustonPutman HoustonPutman left a comment

Choose a reason for hiding this comment

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

This looks very good. One small issue with an empty ephemeral storage options. Not sure if it could actually happen, depending on how go parses the yaml/json, but still good to protect against anyways.

Also would you mind adding this option to the "Data Storage" section in docs/solr-cloud/solr-cloud-crd.md?

@jward-bw jward-bw force-pushed the implement-support-for-hostpath-solr-data-volumes branch from 7a9a717 to c78b2b8 Compare April 28, 2021 15:21
err = testClient.Create(context.TODO(), instance)
g.Expect(err).NotTo(gomega.HaveOccurred())
defer testClient.Delete(context.TODO(), instance)
g.Eventually(requests, timeout).Should(gomega.Receive(gomega.Equal(expectedCloudRequest)))
Copy link
Contributor

Choose a reason for hiding this comment

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

You might want to copy this line twice. So two or three of the same line in a row. I think the tests will be flakey otherwise. This will help the failure that you see in the github actions.

Copy link
Contributor

Choose a reason for hiding this comment

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

(Also no need to force push each time, I'll squash-merge in the end.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok thanks, I've been on repos before where they like to have everything in a single commit :)

@jward-bw jward-bw force-pushed the implement-support-for-hostpath-solr-data-volumes branch from c78b2b8 to 4a50381 Compare April 28, 2021 15:34
@jward-bw jward-bw requested a review from HoustonPutman April 28, 2021 15:56
Copy link
Contributor

@HoustonPutman HoustonPutman left a comment

Choose a reason for hiding this comment

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

The looks good to me!

One final request:
Would you mind adding this option to the "Data Storage" section in docs/solr-cloud/solr-cloud-crd.md?

@jward-bw
Copy link
Contributor Author

The looks good to me!

One final request:
Would you mind adding this option to the "Data Storage" section in docs/solr-cloud/solr-cloud-crd.md?

Done! Sorry I missed that yesterday.

@jward-bw jward-bw requested a review from HoustonPutman April 29, 2021 13:10
Copy link
Contributor

@HoustonPutman HoustonPutman left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the great contribution!

@HoustonPutman HoustonPutman merged commit 91e1bb1 into apache:main May 7, 2021
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.

Allow use of hostPath for ephemeral solr data storage.

2 participants