Skip to content

Add support of passing routing parameters via driver config #334

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

Merged
merged 2 commits into from
Mar 20, 2017

Conversation

zhenlineo
Copy link
Contributor

@zhenlineo zhenlineo commented Mar 13, 2017

Added withRoutingParameters in driver Config for passing in getServersV2 parameters

Copy link
Contributor

@lutovich lutovich left a comment

Choose a reason for hiding this comment

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

@zhenlineo review round completed. Made couple comments.

@@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.neo4j.driver.v1.util;
package org.neo4j.driver.internal.cluster;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe org.neo4j.driver.internal.util?

assertThat( e.getMessage(),
containsString( "Failed to call 'dbms.cluster.routing.getServers' procedure on server" ) );
assertThat( e.getMessage(), containsString( "Failed to run " +
"'Statement{text='CALL dbms.cluster.routing.getServers', parameters={}}' on server." ) );
Copy link
Contributor

Choose a reason for hiding this comment

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

Imho user-facing message with Statement{ does not look pretty. Could we maybe concatenate a prettier message in GetServersProcedureClusterCompositionProvider instead of using default Statement#toString()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's improve it in another PR, I will merge this PR once it is green.

runner.run( mock );

// Then
assertThat( runner.procedureCalled().toString(), equalTo(
Copy link
Contributor

Choose a reason for hiding this comment

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

Statement as a good #equals() method defined. I think it should be used for assertions instead of #toString().

Zhen added 2 commits March 20, 2017 18:26
Renamed to `getRoutingTable` and `withRoutingContext`
@zhenlineo zhenlineo merged commit e74e618 into neo4j:1.3 Mar 20, 2017
@zhenlineo zhenlineo deleted the 1.3-getServersV2 branch March 20, 2017 17:55
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