[ https://issues.apache.org/jira/browse/CASSANDRA-14820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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