[jira] [Commented] (CASSANDRA-14820) Upgrade to 4.0 fails with NullPointerException
[ https://issues.apache.org/jira/browse/CASSANDRA-14820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16655332#comment-16655332 ] C. Scott Andreas commented on CASSANDRA-14820: -- Thanks [~aweisberg] and [~djoshi3]. [~tommy_s], thank you very much for this report! > Upgrade to 4.0 fails with NullPointerException > -- > > Key: CASSANDRA-14820 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14820 > Project: Cassandra > Issue Type: Bug > Components: 4.0 >Reporter: Tommy Stendahl >Assignee: Ariel Weisberg >Priority: Major > > I tested to upgrade an existing cluster to latest 4.0 but it fails with a > NullPointerException, I upgraded from 3.0.15 but upgrading from any 3.0.x or > 3.11.x to 4.0 will give the same fault. > {noformat} > > 2018-10-12T11:27:02.261+0200 ERROR [main] CassandraDaemon.java:251 Error > while loading schema: > java.lang.NullPointerException: null > at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:156) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:41) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:28) > at > org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java:116) > at > org.apache.cassandra.cql3.UntypedResultSet$Row.getString(UntypedResultSet.java:267) > at > org.apache.cassandra.schema.SchemaKeyspace.createTableParamsFromRow(SchemaKeyspace.java:997) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:973) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:927) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:886) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:877) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:865) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:102) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:91) > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:247) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:590) > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679) > {noformat} > The problem seams to be line 997 in SchemaKeyspace.java > > {noformat} > .speculativeWriteThreshold(SpeculativeRetryPolicy.fromString(row.getString("speculative_write_threshold"{noformat} > speculative_write_threshold is a new table option introduced in > CASSANDRA-14404, when upgrading the table option is missing and we get a > NullPointerException on this line. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-14820) Upgrade to 4.0 fails with NullPointerException
[ https://issues.apache.org/jira/browse/CASSANDRA-14820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16652488#comment-16652488 ] Dinesh Joshi commented on CASSANDRA-14820: -- +1 Ariel & I spoke offline about the spacing issue. > Upgrade to 4.0 fails with NullPointerException > -- > > Key: CASSANDRA-14820 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14820 > Project: Cassandra > Issue Type: Bug > Components: 4.0 >Reporter: Tommy Stendahl >Assignee: Ariel Weisberg >Priority: Major > > I tested to upgrade an existing cluster to latest 4.0 but it fails with a > NullPointerException, I upgraded from 3.0.15 but upgrading from any 3.0.x or > 3.11.x to 4.0 will give the same fault. > {noformat} > > 2018-10-12T11:27:02.261+0200 ERROR [main] CassandraDaemon.java:251 Error > while loading schema: > java.lang.NullPointerException: null > at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:156) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:41) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:28) > at > org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java:116) > at > org.apache.cassandra.cql3.UntypedResultSet$Row.getString(UntypedResultSet.java:267) > at > org.apache.cassandra.schema.SchemaKeyspace.createTableParamsFromRow(SchemaKeyspace.java:997) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:973) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:927) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:886) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:877) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:865) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:102) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:91) > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:247) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:590) > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679) > {noformat} > The problem seams to be line 997 in SchemaKeyspace.java > > {noformat} > .speculativeWriteThreshold(SpeculativeRetryPolicy.fromString(row.getString("speculative_write_threshold"{noformat} > speculative_write_threshold is a new table option introduced in > CASSANDRA-14404, when upgrading the table option is missing and we get a > NullPointerException on this line. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-14820) Upgrade to 4.0 fails with NullPointerException
[ https://issues.apache.org/jira/browse/CASSANDRA-14820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16651802#comment-16651802 ] Ariel Weisberg commented on CASSANDRA-14820: ddl.rst isn't a mistake per se we haven't renamed speculative_retry yet. That's going to be a separate issue. We are documenting them together because they accept the same parameters. What is the whitespace change you are looking for? > Upgrade to 4.0 fails with NullPointerException > -- > > Key: CASSANDRA-14820 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14820 > Project: Cassandra > Issue Type: Bug > Components: 4.0 >Reporter: Tommy Stendahl >Assignee: Ariel Weisberg >Priority: Major > > I tested to upgrade an existing cluster to latest 4.0 but it fails with a > NullPointerException, I upgraded from 3.0.15 but upgrading from any 3.0.x or > 3.11.x to 4.0 will give the same fault. > {noformat} > > 2018-10-12T11:27:02.261+0200 ERROR [main] CassandraDaemon.java:251 Error > while loading schema: > java.lang.NullPointerException: null > at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:156) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:41) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:28) > at > org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java:116) > at > org.apache.cassandra.cql3.UntypedResultSet$Row.getString(UntypedResultSet.java:267) > at > org.apache.cassandra.schema.SchemaKeyspace.createTableParamsFromRow(SchemaKeyspace.java:997) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:973) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:927) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:886) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:877) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:865) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:102) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:91) > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:247) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:590) > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679) > {noformat} > The problem seams to be line 997 in SchemaKeyspace.java > > {noformat} > .speculativeWriteThreshold(SpeculativeRetryPolicy.fromString(row.getString("speculative_write_threshold"{noformat} > speculative_write_threshold is a new table option introduced in > CASSANDRA-14404, when upgrading the table option is missing and we get a > NullPointerException on this line. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-14820) Upgrade to 4.0 fails with NullPointerException
[ https://issues.apache.org/jira/browse/CASSANDRA-14820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16651137#comment-16651137 ] Dinesh Joshi commented on CASSANDRA-14820: -- I found one minor issue in {{ddl.rst#L466}} - {{additional_write_policy}} description seems to be duplicated from the earlier row. Also minor nit on the white space. Please fix on commit. Thanks! > Upgrade to 4.0 fails with NullPointerException > -- > > Key: CASSANDRA-14820 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14820 > Project: Cassandra > Issue Type: Bug > Components: 4.0 >Reporter: Tommy Stendahl >Assignee: Ariel Weisberg >Priority: Major > > I tested to upgrade an existing cluster to latest 4.0 but it fails with a > NullPointerException, I upgraded from 3.0.15 but upgrading from any 3.0.x or > 3.11.x to 4.0 will give the same fault. > {noformat} > > 2018-10-12T11:27:02.261+0200 ERROR [main] CassandraDaemon.java:251 Error > while loading schema: > java.lang.NullPointerException: null > at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:156) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:41) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:28) > at > org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java:116) > at > org.apache.cassandra.cql3.UntypedResultSet$Row.getString(UntypedResultSet.java:267) > at > org.apache.cassandra.schema.SchemaKeyspace.createTableParamsFromRow(SchemaKeyspace.java:997) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:973) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:927) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:886) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:877) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:865) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:102) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:91) > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:247) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:590) > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679) > {noformat} > The problem seams to be line 997 in SchemaKeyspace.java > > {noformat} > .speculativeWriteThreshold(SpeculativeRetryPolicy.fromString(row.getString("speculative_write_threshold"{noformat} > speculative_write_threshold is a new table option introduced in > CASSANDRA-14404, when upgrading the table option is missing and we get a > NullPointerException on this line. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Commented] (CASSANDRA-14820) Upgrade to 4.0 fails with NullPointerException
[ https://issues.apache.org/jira/browse/CASSANDRA-14820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16648280#comment-16648280 ] Ariel Weisberg commented on CASSANDRA-14820: Along with fixing this issue I am doing the rename from CASSANDRA-14671 so that when people upgrade it doesn't eventually break due to the rename. > Upgrade to 4.0 fails with NullPointerException > -- > > Key: CASSANDRA-14820 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14820 > Project: Cassandra > Issue Type: Bug > Components: 4.0 >Reporter: Tommy Stendahl >Assignee: Ariel Weisberg >Priority: Major > > I tested to upgrade an existing cluster to latest 4.0 but it fails with a > NullPointerException, I upgraded from 3.0.15 but upgrading from any 3.0.x or > 3.11.x to 4.0 will give the same fault. > {noformat} > > 2018-10-12T11:27:02.261+0200 ERROR [main] CassandraDaemon.java:251 Error > while loading schema: > java.lang.NullPointerException: null > at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:156) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:41) > at > org.apache.cassandra.serializers.AbstractTextSerializer.deserialize(AbstractTextSerializer.java:28) > at > org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java:116) > at > org.apache.cassandra.cql3.UntypedResultSet$Row.getString(UntypedResultSet.java:267) > at > org.apache.cassandra.schema.SchemaKeyspace.createTableParamsFromRow(SchemaKeyspace.java:997) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTable(SchemaKeyspace.java:973) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchTables(SchemaKeyspace.java:927) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:886) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:877) > at > org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:865) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:102) > at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:91) > at > org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:247) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:590) > at > org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:679) > {noformat} > The problem seams to be line 997 in SchemaKeyspace.java > > {noformat} > .speculativeWriteThreshold(SpeculativeRetryPolicy.fromString(row.getString("speculative_write_threshold"{noformat} > speculative_write_threshold is a new table option introduced in > CASSANDRA-14404, when upgrading the table option is missing and we get a > NullPointerException on this line. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org