James Taylor created PHOENIX-1946:
-------------------------------------

             Summary: Allow index without WAL codec if table is transactional
                 Key: PHOENIX-1946
                 URL: https://issues.apache.org/jira/browse/PHOENIX-1946
             Project: Phoenix
          Issue Type: Sub-task
            Reporter: James Taylor
            Assignee: Thomas D'Silva


Transactional tables with secondary indexes don't need a WAL codec, so we 
should prevent this error message in those cases:
{code}
java.sql.SQLException: ERROR 1029 (42Y88): Mutable secondary indexes must have 
the hbase.regionserver.wal.codec property set to 
org.apache.hadoop.hbase.regionserver.wal.IndexedWALEditCodec in the 
hbase-sites.xml of every region server tableName=I1
        at 
org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:373)
        at 
org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:133)
        at 
org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:961)
        at 
org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:95)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:313)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:304)
        at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:302)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1114)
        at sqlline.Commands.execute(Commands.java:822)
        at sqlline.Commands.sql(Commands.java:732)
        at sqlline.SqlLine.dispatch(SqlLine.java:808)
        at sqlline.SqlLine.begin(SqlLine.java:681)
        at sqlline.SqlLine.start(SqlLine.java:398)
        at sqlline.SqlLine.main(SqlLine.java:292)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to