-
Notifications
You must be signed in to change notification settings - Fork 607
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
SOLR-15733: Separate out a solrj-streaming module #1099
SOLR-15733: Separate out a solrj-streaming module #1099
Conversation
First step of migrating Streaming Expressions to solrj-streaming. |
The latest commit allows Solr to assemble and build the new solrj-streaming jar. The distribution starts and streaming expressions run. So it's getting closer. Next I'll dig into the tests. |
solrj-streaming tests are passing now. Checking the entire test suite, there will be failures in places that expect to find Streaming Expressions in solrj. |
The full test suit is passing except for the following which fails everytime and seems to be unrelated. 2> 32414 INFO (TEST-PerReplicaStatesIntegrationTest.testPerReplicaStateCollection-seed#[D7017DB2FFB75346]) [] o.a.s.SolrTestCaseJ4 ###Ending testPerReplicaStateCollection
|
@joel-bernstein that error was being looked at. it should be fixed on main. I can help fix the merge conflicts since they are due to some of the changes I've made. |
FWIW on your branch ran into when running
|
@joel-bernstein I merged main, fixed the dependency issues, and a ref guide link. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if testRuntimeOnly "org.hsqldb:hsqldb" // runtime because via JDBC reflection
is still needed in solr/solrj/build.gradle
@joel-bernstein all tests pass too!
|
@risdenk, thanks for the commits on this! I pulled all the latest and things look good. Does the solrj build.gradle need to refer to solrj-streaming so 9x users don't have a back compat issue? |
@joel-bernstein I'd do that separately on branch_9x only - similar to 8088917 |
I don't have the merge button. Let me see if I can figure out why. |
I checked my account at id.apache.org and my github account is there. So this may take a jira to infra to sort out. I have this branch squash merged to main locally and am running tests. I can push it out from my local repo or @risdenk you can merge from here. |
I am also a member of the apache organization on github. |
@joel-bernstein I don't see you listed here https://github.com/orgs/apache/teams/solr-committers/members?query=joel - its a private list if you are on it you can see it. I see your username here https://whimsy.apache.org/roster/committer/jbernste so not sure what is going on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
solrj/build.gradle shouldn't need hsqldb anymore; right? And it shouldn't depend on 'solr:modules:sql' if the corresponding tests have been moved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is the PR that will stay in main branch, since there is no dependency added in solrj
's build.gradle to depend on solrj-streaming?
Should there not be some refguide docs in streaming about the need to add solrj-streaming
as a dependency to your app if you need the IO classes?
I also assume there will be a backport PR that adds the transitive dependency from solrj to solrj-zookeeper, perhaps along with a note in the Upgrade Notes for 9.2 that you can now opt out of solrj-streaming
on client if you don't use it, simply by excluding the coordinates in your POM.
I'm not able to see https://github.com/orgs/apache/teams/solr-committers/members?query=joel which must be the reason I'm not seeing the merge button. Is this something that infra needs to fix or does the Solr pmc manage this list? |
@dsmiley I believe Solrj no long needs the hsql dependency. The solrj-streaming dependency on solr:modules:sql I believe is only there to support tests for the JDBCStream and JDBC driver. Both of which could eventually be moved to solrj-jdbc. |
Shouldn't those tests move out of solrj(core) now? |
@janhoy yes - will add to branch_9x like solrj-zookeeper did - see #1099 (comment). @dsmiley asked the same question on the Jira.
good catch will need to update.
yup makes sense.
@joel-bernstein I can help take another look at the dependencies. |
Added a note to solrj refguide for solrj-streaming.
hsqldb does not look to be used in solr/solrj anymore so will remove and run tests. need to check on sql module still. |
removed hsqldb and sql module from solrj core. both solrj core and solrj streaming tests pass. Rerunning the whole test suite now. |
Looked through the gradle stuff and it looks good to me. |
|
The merge button has appeared for me. Anything more to do or should we merge? |
I think this is good to go. Just need to do follow up on branch_9x after this is merged and backported to branch_9x - #1099 (comment) |
* SOLR-15733: Initial commit WIP * SOLR-15733: Move solrj.client.io * SOLR-15733: Fix directories * SOLR-15733: Move tests * SOLR-15733: Remove commons math from main solrj * SOLR-15733: Wire-in solrj-streaming * SOLR-15733: Get solrj-streaming test classes to compile * SOLR-15733: Get solrj-streaming tests passing * Fix dependency declarations * Fix ref guide to DaemonStream reference * Add solrj refguide note * Remove hsqldb test dependency from solr/solrj * Cleanup solrj sql reference Co-authored-by: Kevin Risden <krisden@apache.org>
backport to branch_9x here: #1161 |
https://issues.apache.org/jira/browse/SOLR-15733