cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Ramanauskas (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10788) Upgrade from 2.2.1 to 3.0.0 fails with NullPointerException
Date Mon, 30 Nov 2015 14:55:11 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031881#comment-15031881
] 

Tomas Ramanauskas commented on CASSANDRA-10788:
-----------------------------------------------

{code}
INFO  [main] 2015-11-30 15:44:45,255 YamlConfigurationLoader.java:87 - Configuration location:
file:/etc/cassandra/cassandra.yaml
INFO  [main] 2015-11-30 15:44:45,327 YamlConfigurationLoader.java:179 - Node configuration:[authenticator=AllowAllAuthenticator;
authorizer=AllowAllAuthorizer; auto_snapshot=true; batch_size_fail_threshold_in_kb=50; batch_size_warn_threshold_in_kb=5;
batchlog_replay_throttle_in_kb=1024; cas_contention_timeout_in_ms=1000; client_encryption_options=<REDACTED>;
cluster_name=Track Cassandra Cluster; column_index_size_in_kb=64; commit_failure_policy=stop;
commitlog_directory=/data/commitlog; commitlog_segment_size_in_mb=32; commitlog_sync=periodic;
commitlog_sync_period_in_ms=10000; compaction_large_partition_warning_threshold_mb=100; compaction_throughput_mb_per_sec=16;
concurrent_counter_writes=32; concurrent_materialized_view_writes=32; concurrent_reads=32;
concurrent_writes=32; counter_cache_save_period=7200; counter_cache_size_in_mb=null; counter_write_request_timeout_in_ms=5000;
cross_node_timeout=false; data_file_directories=[/data]; disk_failure_policy=stop; dynamic_snitch_badness_threshold=0.1;
dynamic_snitch_reset_interval_in_ms=600000; dynamic_snitch_update_interval_in_ms=100; enable_scripted_user_defined_functions=false;
enable_user_defined_functions=false; endpoint_snitch=GossipingPropertyFileSnitch; gc_warn_threshold_in_ms=1000;
hinted_handoff_enabled=true; hinted_handoff_throttle_in_kb=1024; hints_flush_period_in_ms=10000;
incremental_backups=true; index_summary_capacity_in_mb=null; index_summary_resize_interval_in_minutes=60;
inter_dc_tcp_nodelay=false; internode_compression=all; key_cache_save_period=14400; key_cache_size_in_mb=null;
listen_address=10.9.3.220; max_hint_window_in_ms=10800000; max_hints_delivery_threads=2; max_hints_file_size_in_mb=128;
memtable_allocation_type=heap_buffers; native_transport_port=9042; num_tokens=256; partitioner=org.apache.cassandra.dht.Murmur3Partitioner;
permissions_validity_in_ms=2000; range_request_timeout_in_ms=10000; read_request_timeout_in_ms=5000;
request_scheduler=org.apache.cassandra.scheduler.NoScheduler; request_timeout_in_ms=10000;
roles_validity_in_ms=2000; row_cache_save_period=0; row_cache_size_in_mb=0; rpc_address=10.9.3.220;
rpc_keepalive=true; rpc_port=9160; rpc_server_type=sync; saved_caches_directory=/var/lib/cassandra/saved_caches;
seed_provider=[{class_name=org.apache.cassandra.locator.SimpleSeedProvider, parameters=[{seeds=10.9.3.220,
10.9.3.223}]}]; server_encryption_options=<REDACTED>; snapshot_before_compaction=false;
ssl_storage_port=7001; sstable_preemptive_open_interval_in_mb=50; start_native_transport=true;
start_rpc=true; storage_port=7000; thrift_framed_transport_size_in_mb=15; tombstone_failure_threshold=100000;
tombstone_warn_threshold=1000; tracetype_query_ttl=86400; tracetype_repair_ttl=604800; trickle_fsync=false;
trickle_fsync_interval_in_kb=10240; truncate_request_timeout_in_ms=60000; windows_timer_interval=1;
write_request_timeout_in_ms=2000]
INFO  [main] 2015-11-30 15:44:45,364 DatabaseDescriptor.java:304 - DiskAccessMode 'auto' determined
to be mmap, indexAccessMode is mmap
INFO  [main] 2015-11-30 15:44:45,477 DatabaseDescriptor.java:406 - Global memtable on-heap
threshold is enabled at 983MB
INFO  [main] 2015-11-30 15:44:45,478 DatabaseDescriptor.java:410 - Global memtable off-heap
threshold is enabled at 983MB
INFO  [main] 2015-11-30 15:44:45,589 GossipingPropertyFileSnitch.java:71 - Loaded cassandra-topology.properties
for compatibility
INFO  [main] 2015-11-30 15:44:45,609 YamlConfigurationLoader.java:179 - Node configuration:[authenticator=AllowAllAuthenticator;
authorizer=AllowAllAuthorizer; auto_snapshot=true; batch_size_fail_threshold_in_kb=50; batch_size_warn_threshold_in_kb=5;
batchlog_replay_throttle_in_kb=1024; cas_contention_timeout_in_ms=1000; client_encryption_options=<REDACTED>;
cluster_name=Track Cassandra Cluster; column_index_size_in_kb=64; commit_failure_policy=stop;
commitlog_directory=/data/commitlog; commitlog_segment_size_in_mb=32; commitlog_sync=periodic;
commitlog_sync_period_in_ms=10000; compaction_large_partition_warning_threshold_mb=100; compaction_throughput_mb_per_sec=16;
concurrent_counter_writes=32; concurrent_materialized_view_writes=32; concurrent_reads=32;
concurrent_writes=32; counter_cache_save_period=7200; counter_cache_size_in_mb=null; counter_write_request_timeout_in_ms=5000;
cross_node_timeout=false; data_file_directories=[/data]; disk_failure_policy=stop; dynamic_snitch_badness_threshold=0.1;
dynamic_snitch_reset_interval_in_ms=600000; dynamic_snitch_update_interval_in_ms=100; enable_scripted_user_defined_functions=false;
enable_user_defined_functions=false; endpoint_snitch=GossipingPropertyFileSnitch; gc_warn_threshold_in_ms=1000;
hinted_handoff_enabled=true; hinted_handoff_throttle_in_kb=1024; hints_flush_period_in_ms=10000;
incremental_backups=true; index_summary_capacity_in_mb=null; index_summary_resize_interval_in_minutes=60;
inter_dc_tcp_nodelay=false; internode_compression=all; key_cache_save_period=14400; key_cache_size_in_mb=null;
listen_address=10.9.3.220; max_hint_window_in_ms=10800000; max_hints_delivery_threads=2; max_hints_file_size_in_mb=128;
memtable_allocation_type=heap_buffers; native_transport_port=9042; num_tokens=256; partitioner=org.apache.cassandra.dht.Murmur3Partitioner;
permissions_validity_in_ms=2000; range_request_timeout_in_ms=10000; read_request_timeout_in_ms=5000;
request_scheduler=org.apache.cassandra.scheduler.NoScheduler; request_timeout_in_ms=10000;
roles_validity_in_ms=2000; row_cache_save_period=0; row_cache_size_in_mb=0; rpc_address=10.9.3.220;
rpc_keepalive=true; rpc_port=9160; rpc_server_type=sync; saved_caches_directory=/var/lib/cassandra/saved_caches;
seed_provider=[{class_name=org.apache.cassandra.locator.SimpleSeedProvider, parameters=[{seeds=10.9.3.220,
10.9.3.223}]}]; server_encryption_options=<REDACTED>; snapshot_before_compaction=false;
ssl_storage_port=7001; sstable_preemptive_open_interval_in_mb=50; start_native_transport=true;
start_rpc=true; storage_port=7000; thrift_framed_transport_size_in_mb=15; tombstone_failure_threshold=100000;
tombstone_warn_threshold=1000; tracetype_query_ttl=86400; tracetype_repair_ttl=604800; trickle_fsync=false;
trickle_fsync_interval_in_kb=10240; truncate_request_timeout_in_ms=60000; windows_timer_interval=1;
write_request_timeout_in_ms=2000]
INFO  [main] 2015-11-30 15:44:45,622 CassandraDaemon.java:429 - Hostname: sl-prod-cass-01.springer-sbm.com
INFO  [main] 2015-11-30 15:44:45,622 CassandraDaemon.java:436 - JVM vendor/version: Java HotSpot(TM)
64-Bit Server VM/1.8.0_66
INFO  [main] 2015-11-30 15:44:45,622 CassandraDaemon.java:437 - Heap size: 4123000832/4123000832
INFO  [main] 2015-11-30 15:44:45,623 CassandraDaemon.java:440 - Code Cache Non-heap memory:
init = 2555904(2496K) used = 3804608(3715K) committed = 3866624(3776K) max = 251658240(245760K)
INFO  [main] 2015-11-30 15:44:45,623 CassandraDaemon.java:440 - Metaspace Non-heap memory:
init = 0(0K) used = 15318216(14959K) committed = 15728640(15360K) max = -1(-1K)
INFO  [main] 2015-11-30 15:44:45,623 CassandraDaemon.java:440 - Compressed Class Space Non-heap
memory: init = 0(0K) used = 1909448(1864K) committed = 2097152(2048K) max = 1073741824(1048576K)
INFO  [main] 2015-11-30 15:44:45,623 CassandraDaemon.java:440 - Par Eden Space Heap memory:
init = 671088640(655360K) used = 120796576(117965K) committed = 671088640(655360K) max = 671088640(655360K)
INFO  [main] 2015-11-30 15:44:45,623 CassandraDaemon.java:440 - Par Survivor Space Heap memory:
init = 83886080(81920K) used = 0(0K) committed = 83886080(81920K) max = 83886080(81920K)
INFO  [main] 2015-11-30 15:44:45,623 CassandraDaemon.java:440 - CMS Old Gen Heap memory: init
= 3368026112(3289088K) used = 0(0K) committed = 3368026112(3289088K) max = 3368026112(3289088K)
INFO  [main] 2015-11-30 15:44:45,624 CassandraDaemon.java:442 - Classpath: /etc/cassandra:/usr/share/cassandra/lib/airline-0.6.jar:/usr/share/cassandra/lib/antlr-runtime-3.5.2.jar:/usr/share/cassandra/lib/asm-5.0.4.jar:/usr/share/cassandra/lib/cassandra-driver-core-3.0.0-beta1-bb1bce4-SNAPSHOT-shaded.jar:/usr/share/cassandra/lib/commons-cli-1.1.jar:/usr/share/cassandra/lib/commons-codec-1.2.jar:/usr/share/cassandra/lib/commons-lang3-3.1.jar:/usr/share/cassandra/lib/commons-math3-3.2.jar:/usr/share/cassandra/lib/compress-lzf-0.8.4.jar:/usr/share/cassandra/lib/concurrentlinkedhashmap-lru-1.4.jar:/usr/share/cassandra/lib/disruptor-3.0.1.jar:/usr/share/cassandra/lib/ecj-4.4.2.jar:/usr/share/cassandra/lib/guava-18.0.jar:/usr/share/cassandra/lib/high-scale-lib-1.0.6.jar:/usr/share/cassandra/lib/jackson-core-asl-1.9.2.jar:/usr/share/cassandra/lib/jackson-mapper-asl-1.9.2.jar:/usr/share/cassandra/lib/jamm-0.3.0.jar:/usr/share/cassandra/lib/javax.inject.jar:/usr/share/cassandra/lib/jbcrypt-0.3m.jar:/usr/share/cassandra/lib/jcl-over-slf4j-1.7.7.jar:/usr/share/cassandra/lib/jgrapht-core-0.9.1.jar:/usr/share/cassandra/lib/jna-4.0.0.jar:/usr/share/cassandra/lib/joda-time-2.4.jar:/usr/share/cassandra/lib/json-simple-1.1.jar:/usr/share/cassandra/lib/libthrift-0.9.2.jar:/usr/share/cassandra/lib/log4j-over-slf4j-1.7.7.jar:/usr/share/cassandra/lib/logback-classic-1.1.3.jar:/usr/share/cassandra/lib/logback-core-1.1.3.jar:/usr/share/cassandra/lib/lz4-1.3.0.jar:/usr/share/cassandra/lib/metrics-core-3.1.0.jar:/usr/share/cassandra/lib/metrics-logback-3.1.0.jar:/usr/share/cassandra/lib/netty-all-4.0.23.Final.jar:/usr/share/cassandra/lib/ohc-core-0.4.2.jar:/usr/share/cassandra/lib/ohc-core-j8-0.4.2.jar:/usr/share/cassandra/lib/reporter-config3-3.0.0.jar:/usr/share/cassandra/lib/reporter-config-base-3.0.0.jar:/usr/share/cassandra/lib/sigar-1.6.4.jar:/usr/share/cassandra/lib/slf4j-api-1.7.7.jar:/usr/share/cassandra/lib/snakeyaml-1.11.jar:/usr/share/cassandra/lib/snappy-java-1.1.1.7.jar:/usr/share/cassandra/lib/ST4-4.0.8.jar:/usr/share/cassandra/lib/stream-2.5.2.jar:/usr/share/cassandra/lib/thrift-server-0.3.7.jar:/usr/share/cassandra/apache-cassandra-3.0.0.jar:/usr/share/cassandra/apache-cassandra.jar:/usr/share/cassandra/apache-cassandra-thrift-3.0.0.jar:/usr/share/cassandra/stress.jar::/usr/share/cassandra/lib/jamm-0.3.0.jar
INFO  [main] 2015-11-30 15:44:45,689 CLibrary.java:124 - JNA mlockall successful
WARN  [main] 2015-11-30 15:44:45,690 StartupChecks.java:115 - jemalloc shared library could
not be preloaded to speed up memory allocations
WARN  [main] 2015-11-30 15:44:45,690 StartupChecks.java:147 - JMX is not enabled to receive
remote connections. Please see cassandra-env.sh for more info.
INFO  [main] 2015-11-30 15:44:45,691 SigarLibrary.java:42 - Initializing SIGAR library
WARN  [main] 2015-11-30 15:44:45,700 SigarLibrary.java:167 - Cassandra server running in degraded
mode. Is swap disabled? : false,  Address space adequate? : true,  nofile limit adequate?
: true, nproc limit adequate? : true 
INFO  [main] 2015-11-30 15:44:48,099 ColumnFamilyStore.java:381 - Initializing system.IndexInfo
INFO  [main] 2015-11-30 15:44:48,739 ColumnFamilyStore.java:381 - Initializing system.batches
INFO  [main] 2015-11-30 15:44:48,749 ColumnFamilyStore.java:381 - Initializing system.paxos
INFO  [main] 2015-11-30 15:44:48,770 ColumnFamilyStore.java:381 - Initializing system.local
INFO  [SSTableBatchOpen:1] 2015-11-30 15:44:48,787 BufferPool.java:226 - Global buffer pool
is enabled, when pool is exahusted (max is 512 mb) it will allocate on heap
INFO  [main] 2015-11-30 15:44:48,814 CacheService.java:115 - Initializing key cache with capacity
of 100 MBs.
INFO  [main] 2015-11-30 15:44:48,821 CacheService.java:137 - Initializing row cache with capacity
of 0 MBs
INFO  [main] 2015-11-30 15:44:48,823 CacheService.java:166 - Initializing counter cache with
capacity of 50 MBs
INFO  [main] 2015-11-30 15:44:48,824 CacheService.java:177 - Scheduling counter cache save
to every 7200 seconds (going to save all keys).
INFO  [main] 2015-11-30 15:44:48,839 ColumnFamilyStore.java:381 - Initializing system.peers
INFO  [main] 2015-11-30 15:44:48,853 ColumnFamilyStore.java:381 - Initializing system.peer_events
INFO  [main] 2015-11-30 15:44:48,862 ColumnFamilyStore.java:381 - Initializing system.range_xfers
INFO  [main] 2015-11-30 15:44:48,915 ColumnFamilyStore.java:381 - Initializing system.compaction_history
INFO  [main] 2015-11-30 15:44:49,085 ColumnFamilyStore.java:381 - Initializing system.sstable_activity
INFO  [main] 2015-11-30 15:44:49,321 ColumnFamilyStore.java:381 - Initializing system.size_estimates
INFO  [main] 2015-11-30 15:44:49,449 ColumnFamilyStore.java:381 - Initializing system.available_ranges
INFO  [main] 2015-11-30 15:44:49,455 ColumnFamilyStore.java:381 - Initializing system.views_builds_in_progress
INFO  [main] 2015-11-30 15:44:49,461 ColumnFamilyStore.java:381 - Initializing system.built_views
INFO  [main] 2015-11-30 15:44:49,570 ColumnFamilyStore.java:381 - Initializing system.hints
INFO  [main] 2015-11-30 15:44:49,577 ColumnFamilyStore.java:381 - Initializing system.batchlog
INFO  [main] 2015-11-30 15:44:49,586 ColumnFamilyStore.java:381 - Initializing system.schema_keyspaces
INFO  [main] 2015-11-30 15:44:49,597 ColumnFamilyStore.java:381 - Initializing system.schema_columnfamilies
INFO  [main] 2015-11-30 15:44:49,609 ColumnFamilyStore.java:381 - Initializing system.schema_columns
INFO  [main] 2015-11-30 15:44:49,620 ColumnFamilyStore.java:381 - Initializing system.schema_triggers
INFO  [main] 2015-11-30 15:44:49,632 ColumnFamilyStore.java:381 - Initializing system.schema_usertypes
INFO  [main] 2015-11-30 15:44:49,643 ColumnFamilyStore.java:381 - Initializing system.schema_functions
INFO  [main] 2015-11-30 15:44:49,651 ColumnFamilyStore.java:381 - Initializing system.schema_aggregates
INFO  [main] 2015-11-30 15:44:49,829 SystemKeyspace.java:1269 - Detected version upgrade from
2.2.1 to 3.0.0, snapshotting system keyspace
ERROR [main] 2015-11-30 15:44:50,164 CassandraDaemon.java:702 - Exception encountered during
startup
java.lang.NullPointerException: null
	at org.apache.cassandra.io.util.FileUtils.delete(FileUtils.java:374) ~[apache-cassandra-3.0.0.jar:3.0.0]
	at org.apache.cassandra.db.SystemKeyspace.migrateDataDirs(SystemKeyspace.java:1341) ~[apache-cassandra-3.0.0.jar:3.0.0]
	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:180) [apache-cassandra-3.0.0.jar:3.0.0]
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:561) [apache-cassandra-3.0.0.jar:3.0.0]
	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:689) [apache-cassandra-3.0.0.jar:3.0.0]
{code}

> Upgrade from 2.2.1 to 3.0.0 fails with NullPointerException
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-10788
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10788
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Tomas Ramanauskas
>
> I tried to upgrade Cassandra from 2.2.1 to 3.0.0, however, I get this error on startup
after Cassandra 3.0 software was installed:
> ERROR [main] 2015-11-30 15:44:50,164 CassandraDaemon.java:702 - Exception encountered
during startup
> java.lang.NullPointerException: null
> 	at org.apache.cassandra.io.util.FileUtils.delete(FileUtils.java:374) ~[apache-cassandra-3.0.0.jar:3.0.0]
> 	at org.apache.cassandra.db.SystemKeyspace.migrateDataDirs(SystemKeyspace.java:1341)
~[apache-cassandra-3.0.0.jar:3.0.0]
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:180) [apache-cassandra-3.0.0.jar:3.0.0]
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:561) [apache-cassandra-3.0.0.jar:3.0.0]
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:689) [apache-cassandra-3.0.0.jar:3.0.0]



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

Mime
View raw message