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

Fixes SOLR-13539 #665

Closed
wants to merge 1 commit into from
Closed

Conversation

thomaswoeckinger
Copy link
Contributor

Introduce EmbeddedSolrTestBase for easy and simple integration tests, fixes are included for SOLR-13331 and SOLR-13347.

@gerlowskija Please review

@thomaswoeckinger
Copy link
Contributor Author

Found two other bugs when using different codec than JavaBinCodec, will do another PR
@gerlowskija Did you have time to review the PR?

@thomaswoeckinger thomaswoeckinger changed the title Fixes for SOLR-13331 and SOLR-13347 Fixes SOLR-11841, SOLR-13331 and SOLR-13347 May 10, 2019
@thomaswoeckinger
Copy link
Contributor Author

@ErickErickson How to get reviewer for this PR Jason seems to be busy

@thomaswoeckinger thomaswoeckinger changed the title Fixes SOLR-11841, SOLR-13331 and SOLR-13347 Fixes SOLR-11841, SOLR-13331, SOLR-13347 May 10, 2019
@ErickErickson
Copy link

ErickErickson commented May 10, 2019 via email

@dsmiley
Copy link
Contributor

dsmiley commented May 15, 2019

It'd help to review your changes if you made fewer arbitrary changes, like adding 'final' and changing indentation of javadocs that were fine as they were.
Also, it'd help to summarize why 3 different issues are being fixed in one PR. Might be just fine but please add info/context to make reviewer's job either or you may not get a review at all.

@ErickErickson
Copy link

ErickErickson commented May 15, 2019 via email

@thomaswoeckinger
Copy link
Contributor Author

thomaswoeckinger commented May 16, 2019 via email

@janhoy
Copy link
Contributor

janhoy commented May 16, 2019

Yes, please do only feature related changes in the PR, then you can file another JIRA for other formatting changes if needed. I too keep fighting with the IDE that wants to auto-format things. But it only creates unnecessary noise for reviewers :-(

@thomaswoeckinger
Copy link
Contributor Author

Pushed again, hope it is enough. Waiting for your suggestions...

@janhoy
Copy link
Contributor

janhoy commented May 16, 2019

There is stil a TON of unrelated whitespace changes in the patch. If you want to reformat code, best practice is to open another PR for that separately.

What I normally do to clean up is first disable the aggressive reformatting feature in the IDE, then open "Compare with branch ..." in my IDE (IntelliJ) and in the diff view, click restore on every single diff change that is messed up by the IDE, then commit and push those changes. You'll then see that your diff becomes MUCH smaller and easier to read!

@martin-g
Copy link
Member

One can easily hide the white space changes in Github UI by pressing the No whitespace button (or add manually ?w=1 to the url).

@thomaswoeckinger
Copy link
Contributor Author

thomaswoeckinger commented May 16, 2019 via email

@thomaswoeckinger
Copy link
Contributor Author

I splitt up the changes into an additional commit, i think review is pretty easy now if you select next to last in the commit view.

Best,

Tom

@janhoy
Copy link
Contributor

janhoy commented May 20, 2019

It looks trivial to do a separate PR for SOLR-13347. Please do that if possible and let's avoid huge multi-issue patches.

I am still confused by unrelated formatting changes, consider opening a new JIRA and PR for those, I'm sure someone will take a look at it :)

You might want to review the contributor guide: https://wiki.apache.org/solr/HowToContribute#Creating_the_patch_file

@thomaswoeckinger thomaswoeckinger mentioned this pull request May 21, 2019
@thomaswoeckinger
Copy link
Contributor Author

Added PR for UUID only, will change this PR when it is merged, because unit test will fail otherwise

@janhoy
Copy link
Contributor

janhoy commented May 21, 2019

Thanks. I'm not saying I have the capacity or skills to commit these, but at least trying to help you shape your contributions into bite-sized parts that more likely attract committer attention. Once you remove all white-space edits and SOLR-1347 code from this PR it will be a lot easier to chew over.

Copy link
Contributor

@noblepaul noblepaul left a comment

Choose a reason for hiding this comment

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

Overall the patch looks good. But I'm still not sure I have looked at everytging because some of these are formatting changes and adding final to variables

@thomaswoeckinger
Copy link
Contributor Author

Will update this PR when #681 is merged, so @noblepaul and @janhoy plz have a look

@thomaswoeckinger thomaswoeckinger changed the title Fixes SOLR-11841, SOLR-13331, SOLR-13347 Fixes SOLR-11841, SOLR-13331 May 23, 2019
@thomaswoeckinger
Copy link
Contributor Author

As i already mentioned on #755, any plans on merging this back to 8.x?

@thomaswoeckinger
Copy link
Contributor Author

One test is failing, testUserAndTestDefaultConfigsetsAreSame from TestConfigSetsAPI, have to investigate if it fails before or not

@thomaswoeckinger
Copy link
Contributor Author

thomaswoeckinger commented Sep 1, 2019

Test is failing also before this commit, in both build environments ant and eclipse on my development host, so i ignored it locally. Does not seem to be related to this PR. All other tests are running successfully.

@gerlowskija
Copy link
Contributor

As i already mentioned on #755, any plans on merging this back to 8.x?

Yep. Generally committers are encouraged to let things "cook" on master awhile before merging things back to release branches like branch_8x. This gives us more confidence that there's no weird flaky failures we've introduced. It's also more convenient to wait to merge commits back to other branches once all related commits have been put on master.

I'm waiting mostly on the latter, since I've run the tests a good bit. So once this gets merged (and I merge the patch that Tim Owen put on SOLR-13539), then I'll move everything back to branch_8x all at once.

@thomaswoeckinger
Copy link
Contributor Author

As i already mentioned on #755, any plans on merging this back to 8.x?

Yep. Generally committers are encouraged to let things "cook" on master awhile before merging things back to release branches like branch_8x. This gives us more confidence that there's no weird flaky failures we've introduced. It's also more convenient to wait to merge commits back to other branches once all related commits have been put on master.

Seems to be a good idea.

I'm waiting mostly on the latter, since I've run the tests a good bit. So once this gets merged (and I merge the patch that Tim Owen put on SOLR-13539), then I'll move everything back to branch_8x all at once.

Great

As i already mentioned on #755, any plans on merging this back to 8.x?

Yep. Generally committers are encouraged to let things "cook" on master awhile before merging things back to release branches like branch_8x. This gives us more confidence that there's no weird flaky failures we've introduced. It's also more convenient to wait to merge commits back to other branches once all related commits have been put on master.

I'm waiting mostly on the latter, since I've run the tests a good bit. So once this gets merged (and I merge the patch that Tim Owen put on SOLR-13539), then I'll move everything back to branch_8x all at once.

@thomaswoeckinger
Copy link
Contributor Author

Removed JavaDoc reference to EmbeddedSolrServer as suggested by @dsmiley

@thomaswoeckinger
Copy link
Contributor Author

@gerlowskija ready to merge?

@thomaswoeckinger
Copy link
Contributor Author

Rebased on the PR #883

@thomaswoeckinger
Copy link
Contributor Author

@gerlowskija: would be great if we can get this into 8.3, which will start in a about 2 weeks

@gerlowskija
Copy link
Contributor

Hi Thomas. I'd really like to get this (#665) in for 8.3, but right now it's bundled to your change in #883. I can't merge this without #883.

And I haven't had the time I need to understand how the different pieces of #883 (response formats, field types, binary content) fit together and what the best design is there.

So what I'm going to do is try to unbundle the two PRs, or at least flip the ordering. I'll take what you've uploaded to #665 here and either comment out or remove entirely the tests that hit this binary-XML issue. They can be added back in #883, once binary-xml works for these field types.

There might still be time to get #883 in, as I have a chunk of time now that I didn't before. But even if we don't get to it for 8.3, it won't prevent #665 from getting in.

@thomaswoeckinger
Copy link
Contributor Author

thomaswoeckinger commented Oct 2, 2019

Hi Thomas. I'd really like to get this (#665) in for 8.3, but right now it's bundled to your change in #883. I can't merge this without #883.

And I haven't had the time I need to understand how the different pieces of #883 (response formats, field types, binary content) fit together and what the best design is there.

So what I'm going to do is try to unbundle the two PRs, or at least flip the ordering. I'll take what you've uploaded to #665 here and either comment out or remove entirely the tests that hit this binary-XML issue. They can be added back in #883, once binary-xml works for these field types.

There might still be time to get #883 in, as I have a chunk of time now that I didn't before. But even if we don't get to it for 8.3, it won't prevent #665 from getting in.

No problem i can comment out the binary test, rebase and push again.
Just a second!

@thomaswoeckinger
Copy link
Contributor Author

Pushed again without ignored binary test

@thomaswoeckinger
Copy link
Contributor Author

thomaswoeckinger commented Oct 2, 2019

pre commit check is still toggling, it is working locally

@gerlowskija
Copy link
Contributor

pre commit check is still toggling, it is working locally

Precommit has some known issues on master that make it a little flaky everywhere. But it does seem like it has a higher rate of failure on Github (on all PR's...it's not specific to this one). I wonder what that's about...

Running tests locally now. Will merge later this morning assuming things check out.

@thomaswoeckinger
Copy link
Contributor Author

pre commit check is still toggling, it is working locally

Precommit has some known issues on master that make it a little flaky everywhere. But it does seem like it has a higher rate of failure on Github (on all PR's...it's not specific to this one). I wonder what that's about...

Running tests locally now. Will merge later this morning assuming things check out.

Great to hear.

@asfgit asfgit closed this in 24afd95 Oct 7, 2019
@thomaswoeckinger
Copy link
Contributor Author

thomaswoeckinger commented Oct 7, 2019

@gerlowskija Any plans on getting this into 8.3?

asfgit pushed a commit that referenced this pull request Oct 8, 2019
@thomaswoeckinger
Copy link
Contributor Author

Thx Jason for moving it to 8.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants