phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristian Armaselu (JIRA)" <>
Subject [jira] [Created] (PHOENIX-956) Connection properties ignored
Date Tue, 29 Apr 2014 17:28:25 GMT
Cristian Armaselu created PHOENIX-956:

             Summary: Connection properties ignored
                 Key: PHOENIX-956
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.0.0
         Environment: Win 7
            Reporter: Cristian Armaselu

Connection opened as:
            Properties connectionProperties = new Properties();
            connection = DriverManager.getConnection("jdbc:phoenix:ulvdtlchd01:2181",connectionProperties);

preparedStatement = connection.prepareStatement("upsert into cristi_test(id,name,other) values(?,?,?)");
for (int i = 0; i < 10000000; i++) {
                preparedStatement.setString(1, "AAAA" + i);
                preparedStatement.setString(2, "BBBB" + i);
                preparedStatement.setString(3, "cccc" + i);

java.lang.IllegalArgumentException: MutationState size of 500001 is bigger than max allowed
size of 500000
	at org.apache.phoenix.execute.MutationState.throwIfTooBig(
	at org.apache.phoenix.execute.MutationState.join(
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(
	at org.apache.phoenix.jdbc.PhoenixStatement.execute(
	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(
	at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(

In PhoenixConnection constructor : = info == null ? new Properties() : new Properties(info);
info passed to the constructor is size 3
the above is not copying the properties so the below is executed
        if ( && tenantId == null) {
   = services;
since is true
That means the passed info connection properties are ignored and not wrapped in the DelegateConnectionQueryServices
which follows the other branch of the if above

This message was sent by Atlassian JIRA

View raw message