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

IGNITE-11309 #153

Open
wants to merge 18 commits into
base: ignite-11314
Choose a base branch
from
Open

IGNITE-11309 #153

wants to merge 18 commits into from

Conversation

sanpwc
Copy link

@sanpwc sanpwc commented Apr 16, 2019

PR for review

 into ignite-11309

# Conflicts:
#	modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java
public boolean isAffinityAwareness();

/**
* @param affinityAwareness {@code True} if jdbc thin affinity awareness is enabled
Copy link

Choose a reason for hiding this comment

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

seems 'True' should be in lowercase

Copy link
Author

Choose a reason for hiding this comment

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

fixed

*
* @throws Exception If failed.
*/
@org.junit.Test
Copy link

Choose a reason for hiding this comment

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

pls use import for org.junit.Test

Copy link
Author

Choose a reason for hiding this comment

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

fixed

ps = conn.prepareStatement("select * from Person where _key = ? or _key = ?");
ps.setInt(1, 1);
ps.setInt(2, 2);
checkNodesUsage(ps, null, 2, 2, false);
Copy link

Choose a reason for hiding this comment

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

code style - need to add line to separate statements. The same for the whole class.

Copy link
Author

Choose a reason for hiding this comment

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

ufff, fixed

"jdbc:ignite:thin://127.0.0.1:10800..10802" :
"jdbc:ignite:thin://127.0.0.1";

/** URL with best effort affinity flag. */
private String urlWithBestEffortAffinityFlag = url +
(affinityAwareness ?
Copy link

Choose a reason for hiding this comment

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

it can be simplified to "?affinityAwareness=" + affinityAwareness;

Copy link
Author

Choose a reason for hiding this comment

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

fixed

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