[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17221956#comment-17221956 ] Hadoop QA commented on PHOENIX-5210: | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 35s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} dupname {color} | {color:green} 0m 0s{color} | {color:green} No case conflicting files found. {color} | | {color:green}+1{color} | {color:green} hbaseanti {color} | {color:green} 0m 0s{color} | {color:green} Patch does not have any anti-patterns. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:red}-1{color} | {color:red} test4tests {color} | {color:red} 0m 0s{color} | {color:red} The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 8m 3s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 56s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 1m 40s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 40s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} spotbugs {color} | {color:blue} 2m 49s{color} | {color:blue} phoenix-core in master has 969 extant spotbugs warnings. {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 7m 24s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 51s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 51s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 1m 34s{color} | {color:red} phoenix-core: The patch generated 1 new + 2815 unchanged - 0 fixed = 2816 total (was 2815) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 1s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 41s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} spotbugs {color} | {color:green} 3m 3s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:red}-1{color} | {color:red} unit {color} | {color:red} 96m 9s{color} | {color:red} phoenix-core in the patch failed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 22s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black}125m 22s{color} | {color:black} {color} | \\ \\ || Reason || Tests || | Failed junit tests | phoenix.end2end.index.txn.RollbackIT | \\ \\ || Subsystem || Report/Notes || | Docker | ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/PreCommit-PHOENIX-Build/121/artifact/patchprocess/Dockerfile | | JIRA Issue | PHOENIX-5210 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/13006698/PHOENIX-5210.master.v3.patch | | Optional Tests | dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile | | uname | Linux 6c4b61cb70b1 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | dev/phoenix-personality.sh | | git revision | master / 6d84d0f | | Default Java | Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08 | | checkstyle | https://ci-hadoop.apache.org/job/PreCommit-PHOENIX-Build/121/artifact/patchprocess/diff-checkstyle-phoenix-core.txt | | unit | https://ci-hadoop.apache.org/job/PreCommit-PHOENIX-Build/121/artifact/patchprocess/patch-unit-phoenix-core.txt | | Test Results | https://ci-hadoop.apache.org/job/PreCommit-PHOENIX-Build/121/testReport/ | | Max. process+thread count | 6926 (vs. ulimit of 3) | | modules | C: phoenix-core U: phoenix-core | | Console output | https://ci-hadoop.apache.org/job/PreCommit-PHOENIX-Build/121/console | | versions | git=2.7.4 maven=3.3.9 spotbugs=4.1.3 | | Powered by | Apache
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17221922#comment-17221922 ] Xinyi Yan commented on PHOENIX-5210: hi [~brfrn169], thanks for the patch. Can you upload the patch and run the hadoop QA again, thanks! > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.15.0, 4.14.3 >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Fix For: 4.16.0 > > Attachments: PHOENIX-5210.master.v3.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17160557#comment-17160557 ] Toshihiro Suzuki commented on PHOENIX-5210: --- [~ckulkarni] I ran the failed tests in the last QA locally, and they were successful. So I don't think the patch has caused the test failures. How can we proceed with this? > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.15.0, 4.14.3 >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Fix For: 4.16.0 > > Attachments: PHOENIX-5210.master.v3.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17154789#comment-17154789 ] Chinmay Kulkarni commented on PHOENIX-5210: --- [~0x62ash] [~brfrn169] the patch seems to have caused the above test failures. Can you please check this and re-submit with a v4 patch? > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.15.0, 4.14.3 >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Fix For: 4.16.0 > > Attachments: PHOENIX-5210.master.v3.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17152931#comment-17152931 ] Alex Batyrshin commented on PHOENIX-5210: - Does this result means that patch can not be applied? > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.15.0, 4.14.3 >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Fix For: 4.16.0 > > Attachments: PHOENIX-5210.master.v3.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17148276#comment-17148276 ] Hadoop QA commented on PHOENIX-5210: {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/13006698/PHOENIX-5210.master.v3.patch against master branch at commit 0bbe2faddce0b9b550a8efd558536bb03cfb133f. ATTACHMENT ID: 13006698 {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:green}+1 tests included{color}. The patch appears to include 1 new or modified tests. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings. {color:green}+1 lineLengths{color}. The patch does not introduce lines longer than 100 {color:red}-1 core tests{color}. The patch failed these unit tests: ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.IndexToolForNonTxGlobalIndexIT {color:red}-1 core zombie tests{color}. There are 7 zombie test(s): at org.apache.phoenix.end2end.UpsertSelectIT.testUpsertSelectWithSequence(UpsertSelectIT.java:832) at org.apache.phoenix.end2end.RowValueConstructorOffsetIT.testRVCOffsetMoreThanKey(RowValueConstructorOffsetIT.java:272) at org.apache.phoenix.end2end.index.BaseIndexIT.testInFilterOnIndexedTable(BaseIndexIT.java:1040) at org.apache.phoenix.end2end.index.MutableIndexSplitIT.testSplitDuringIndexScan(MutableIndexSplitIT.java:83) at org.apache.phoenix.end2end.index.MutableIndexSplitForwardScanIT.testSplitDuringIndexScan(MutableIndexSplitForwardScanIT.java:30) at org.apache.phoenix.end2end.index.BaseIndexIT.testSelectDistinctOnTableWithSecondaryImmutableIndex(BaseIndexIT.java:443) at org.apache.phoenix.end2end.index.BaseIndexIT.testSelectAllAndAliasWithIndex(BaseIndexIT.java:596) Test results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/4006//testReport/ Code Coverage results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/4006//artifact/phoenix-core/target/site/jacoco/index.html Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/4006//console This message is automatically generated. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.15.0, 4.14.3 >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Fix For: 4.16.0 > > Attachments: PHOENIX-5210.master.v3.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17148222#comment-17148222 ] Chinmay Kulkarni commented on PHOENIX-5210: --- [~0x62ash] [~brfrn169] Lost track of this sorry. Looks like the build was still not triggered. I have re-attached the patch with a different name so Hadoop QA should pick it up the next time around. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Affects Versions: 4.15.0, 4.14.3 >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Fix For: 4.16.0 > > Attachments: PHOENIX-5210.master.v3.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17147802#comment-17147802 ] Alex Batyrshin commented on PHOENIX-5210: - Ping > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch, > PHOENIX-5210.master.v2.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16985842#comment-16985842 ] Toshihiro Suzuki commented on PHOENIX-5210: --- Thanks [~ckulkarni]. But It looks like another build is not triggered. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch, > PHOENIX-5210.master.v2.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16971380#comment-16971380 ] Chinmay Kulkarni commented on PHOENIX-5210: --- [~brfrn169] thanks. The patch looks good. Looks the previous precommit build had failed, but that build is no longer available. I have triggered another build and if it is green, this should be good to commit. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch, > PHOENIX-5210.master.v2.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16966780#comment-16966780 ] Toshihiro Suzuki commented on PHOENIX-5210: --- Could you please review the latest patch? [~ckulkarni] > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch, > PHOENIX-5210.master.v2.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16955738#comment-16955738 ] Hadoop QA commented on PHOENIX-5210: {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12983562/PHOENIX-5210.master.v2.patch against master branch at commit b4471384bcdfbf421e1625960860361ecfaeaf6b. ATTACHMENT ID: 12983562 {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:red}-1 tests included{color}. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings. {color:green}+1 lineLengths{color}. The patch does not introduce lines longer than 100 {color:red}-1 core tests{color}. The patch failed these unit tests: Test results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/3051//testReport/ Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/3051//console This message is automatically generated. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch, > PHOENIX-5210.master.v2.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16955696#comment-16955696 ] Toshihiro Suzuki commented on PHOENIX-5210: --- Thank you very much for reviewing the patch. [~ckulkarni] I just attached a new patch for your review. And I ran ViewMetadataIT locally and it was successfully. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch, > PHOENIX-5210.master.v2.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16951160#comment-16951160 ] Chinmay Kulkarni commented on PHOENIX-5210: --- [~brfrn169] nice find and thanks for the patch! A couple of review comments: * Can you add the check for _origColDefs != null_ in the if condition check instead of the current position? i.e. [here|https://github.com/apache/phoenix/blob/f431f1be1f3c17dba75adfce0873848c983af82c/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java#L3497] * In the new test _testAlterTableOptions_, can you please add the following conditions to the where clause when querying SYSTEM.CATALOG: {code:java} WHERE TENANT_ID IS NULL AND TABLE_SCHEM IS NULL {code} This will make the test quicker since we have a range scan in place of a full table scan of SYSTEM.CATALOG. * nit: In the new test, capitalize `table_name` * Looks like the previous run had failed some test in ViewMetadataIT. Please resubmit a patch after addressing the above review comments > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16947620#comment-16947620 ] Toshihiro Suzuki commented on PHOENIX-5210: --- Could someone review the patch? > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16907897#comment-16907897 ] Hadoop QA commented on PHOENIX-5210: {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12977672/PHOENIX-5210.master.v1.patch against master branch at commit ffcffb031fa9da661dccae48b94366ddb6238b3f. ATTACHMENT ID: 12977672 {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:red}-1 tests included{color}. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:red}-1 release audit{color}. The applied patch generated 1 release audit warnings (more than the master's current 0 warnings). {color:green}+1 lineLengths{color}. The patch does not introduce lines longer than 100 {color:red}-1 core tests{color}. The patch failed these unit tests: ./phoenix-core/target/failsafe-reports/TEST-org.apache.phoenix.end2end.ViewMetadataIT Test results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/2912//testReport/ Release audit warnings: https://builds.apache.org/job/PreCommit-PHOENIX-Build/2912//artifact/patchprocess/patchReleaseAuditWarnings.txt Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/2912//console This message is automatically generated. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian JIRA (v7.6.14#76016)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16907825#comment-16907825 ] Toshihiro Suzuki commented on PHOENIX-5210: --- Just attached a very simple patch. > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > Attachments: PHOENIX-5210.master.v1.patch > > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian JIRA (v7.6.14#76016)
[jira] [Commented] (PHOENIX-5210) NullPointerException when alter options of a table that is appendOnlySchema
[ https://issues.apache.org/jira/browse/PHOENIX-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16893057#comment-16893057 ] Alex Batyrshin commented on PHOENIX-5210: - The same here: HBase-1.4.8 Phoenix-4.14.1 {code} 0: jdbc:phoenix:> alter table TEST_TABLE SET UPDATE_CACHE_FREQUENCY=360; java.lang.NullPointerException at org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3240) at org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3221) at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1432) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825) at sqlline.Commands.execute(Commands.java:822) at sqlline.Commands.sql(Commands.java:732) at sqlline.SqlLine.dispatch(SqlLine.java:813) at sqlline.SqlLine.begin(SqlLine.java:686) at sqlline.SqlLine.start(SqlLine.java:398) at sqlline.SqlLine.main(SqlLine.java:291) {code} > NullPointerException when alter options of a table that is appendOnlySchema > --- > > Key: PHOENIX-5210 > URL: https://issues.apache.org/jira/browse/PHOENIX-5210 > Project: Phoenix > Issue Type: Bug >Reporter: Toshihiro Suzuki >Assignee: Toshihiro Suzuki >Priority: Major > > I'm facing the following NullPointerException when alter options of a table > that is appendOnlySchema. > {code} > java.lang.NullPointerException > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3545) > at > org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3517) > at > org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1440) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408) > at > org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390) > at > org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378) > at > org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1833) > at > org.apache.phoenix.end2end.AppendOnlySchemaIT.testAlterTableOptions(AppendOnlySchemaIT.java:368) > {code} > Steps to reproduce is as follows: > 1. Create a table that is appendOnlySchema: > {code} > CREATE TABLE tbl (id INTEGER PRIMARY KEY, col INTEGER) APPEND_ONLY_SCHEMA = > true, UPDATE_CACHE_FREQUENCY = 1; > {code} > 2. Alter a option of the table: > {code} > ALTER TABLE tbl SET STORE_NULLS = true; > {code} > After step 2, we will face the NullPointerException. -- This message was sent by Atlassian JIRA (v7.6.14#76016)