[ https://issues.apache.org/jira/browse/CASSANDRA-14010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Jirsa updated CASSANDRA-14010: ----------------------------------- Component/s: Distributed Metadata > NullPointerException when creating keyspace > ------------------------------------------- > > Key: CASSANDRA-14010 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14010 > Project: Cassandra > Issue Type: Bug > Components: Distributed Metadata > Reporter: Jonathan Pellby > Fix For: 3.11.x, 4.x > > > We have a test environment were we drop and create keyspaces and tables > several times within a short time frame. Since upgrading from 3.11.0 to > 3.11.1, we are seeing a lot of create statements failing. See the logs below: > {code:java} > 2017-11-13T14:29:20.037986449Z WARN Directory /tmp/ramdisk/commitlog doesn't > exist > 2017-11-13T14:29:20.038009590Z WARN Directory /tmp/ramdisk/saved_caches > doesn't exist > 2017-11-13T14:29:20.094337265Z INFO Initialized prepared statement caches > with 10 MB (native) and 10 MB (Thrift) > 2017-11-13T14:29:20.805946340Z INFO Initializing system.IndexInfo > 2017-11-13T14:29:21.934686905Z INFO Initializing system.batches > 2017-11-13T14:29:21.973914733Z INFO Initializing system.paxos > 2017-11-13T14:29:21.994550268Z INFO Initializing system.local > 2017-11-13T14:29:22.014097194Z INFO Initializing system.peers > 2017-11-13T14:29:22.124211254Z INFO Initializing system.peer_events > 2017-11-13T14:29:22.153966833Z INFO Initializing system.range_xfers > 2017-11-13T14:29:22.174097334Z INFO Initializing system.compaction_history > 2017-11-13T14:29:22.194259920Z INFO Initializing system.sstable_activity > 2017-11-13T14:29:22.210178271Z INFO Initializing system.size_estimates > 2017-11-13T14:29:22.223836992Z INFO Initializing system.available_ranges > 2017-11-13T14:29:22.237854207Z INFO Initializing system.transferred_ranges > 2017-11-13T14:29:22.253995621Z INFO Initializing > system.views_builds_in_progress > 2017-11-13T14:29:22.264052481Z INFO Initializing system.built_views > 2017-11-13T14:29:22.283334779Z INFO Initializing system.hints > 2017-11-13T14:29:22.304110311Z INFO Initializing system.batchlog > 2017-11-13T14:29:22.318031950Z INFO Initializing system.prepared_statements > 2017-11-13T14:29:22.326547917Z INFO Initializing system.schema_keyspaces > 2017-11-13T14:29:22.337097407Z INFO Initializing system.schema_columnfamilies > 2017-11-13T14:29:22.354082675Z INFO Initializing system.schema_columns > 2017-11-13T14:29:22.384179063Z INFO Initializing system.schema_triggers > 2017-11-13T14:29:22.394222027Z INFO Initializing system.schema_usertypes > 2017-11-13T14:29:22.414199833Z INFO Initializing system.schema_functions > 2017-11-13T14:29:22.427205182Z INFO Initializing system.schema_aggregates > 2017-11-13T14:29:22.427228345Z INFO Not submitting build tasks for views in > keyspace system as storage service is not initialized > 2017-11-13T14:29:22.652838866Z INFO Scheduling approximate time-check task > with a precision of 10 milliseconds > 2017-11-13T14:29:22.732862906Z INFO Initializing system_schema.keyspaces > 2017-11-13T14:29:22.746598744Z INFO Initializing system_schema.tables > 2017-11-13T14:29:22.759649011Z INFO Initializing system_schema.columns > 2017-11-13T14:29:22.766245435Z INFO Initializing system_schema.triggers > 2017-11-13T14:29:22.778716809Z INFO Initializing system_schema.dropped_columns > 2017-11-13T14:29:22.791369819Z INFO Initializing system_schema.views > 2017-11-13T14:29:22.839141724Z INFO Initializing system_schema.types > 2017-11-13T14:29:22.852911976Z INFO Initializing system_schema.functions > 2017-11-13T14:29:22.852938112Z INFO Initializing system_schema.aggregates > 2017-11-13T14:29:22.869348526Z INFO Initializing system_schema.indexes > 2017-11-13T14:29:22.874178682Z INFO Not submitting build tasks for views in > keyspace system_schema as storage service is not initialized > 2017-11-13T14:29:23.700250435Z INFO Initializing key cache with capacity of > 25 MBs. > 2017-11-13T14:29:23.724357053Z INFO Initializing row cache with capacity of 0 > MBs > 2017-11-13T14:29:23.724383599Z INFO Initializing counter cache with capacity > of 12 MBs > 2017-11-13T14:29:23.724386906Z INFO Scheduling counter cache save to every > 7200 seconds (going to save all keys). > 2017-11-13T14:29:23.984408710Z INFO Populating token metadata from system > tables > 2017-11-13T14:29:24.032687075Z INFO Global buffer pool is enabled, when pool > is exhausted (max is 125.000MiB) it will allocate on heap > 2017-11-13T14:29:24.214123695Z INFO Token metadata: > 2017-11-13T14:29:24.304218769Z INFO Completed loading (14 ms; 8 keys) > KeyCache cache > 2017-11-13T14:29:24.363978406Z INFO No commitlog files found; skipping replay > 2017-11-13T14:29:24.364005238Z INFO Populating token metadata from system > tables > 2017-11-13T14:29:24.394408476Z INFO Token metadata: > 2017-11-13T14:29:24.709411652Z INFO Preloaded 0 prepared statements > 2017-11-13T14:29:24.719332880Z INFO Cassandra version: 3.11.1 > 2017-11-13T14:29:24.719355969Z INFO Thrift API version: 20.1.0 > 2017-11-13T14:29:24.719359443Z INFO CQL supported versions: 3.4.4 (default: > 3.4.4) > 2017-11-13T14:29:24.719362103Z INFO Native protocol supported versions: 3/v3, > 4/v4, 5/v5-beta (default: 4/v4) > 2017-11-13T14:29:24.766102400Z INFO Initializing index summary manager with a > memory pool size of 25 MB and a resize interval of 60 minutes > 2017-11-13T14:29:24.778800183Z INFO Starting Messaging Service on > /172.17.0.2:7000 (eth0) > 2017-11-13T14:29:24.783832188Z WARN No host ID found, created > 62452b7c-33ae-40e6-859c-1d7c803aaea8 (Note: This should happen exactly once > per node). > 2017-11-13T14:29:24.897281778Z INFO Loading persisted ring state > 2017-11-13T14:29:24.904217782Z INFO Starting up server gossip > 2017-11-13T14:29:25.003802973Z INFO This node will not auto bootstrap because > it is configured to be a seed node. > 2017-11-13T14:29:25.047674499Z INFO Generated random tokens. tokens are > [-6736304773851341012, 3437071596424929702, 4372058337604769145, > -306854781937968525, -4419476154597297006, 4339837665480866486, > 2052026232731139893, -5761537575805252593, -4477540978357776290, > 6263754683045286998, 3670054894619378302, -4326549778810780939, > 7187409938161102814, 7030537377703307755, -2757270254308154659, > -1953637968902719055, -7235425703069930259, 7123794193321014835, > 349308827967095711, 997472983569031481, 992257140226393205, > -4045122629441468253, 4149955653388319941, -3690032393349188278, > 3528068129562283633, -5057394127379238561, -4944743272177354946, > 1371473468273321389, -2771267888257678908, -2379074055482922854, > 8800628062632970014, 6016352719444925532, -6458243637210081043, > -7131512441131507433, -6135681286390467242, -7886878247827491401, > -3964432859204941604, -7124853795154335905, 4536647221115220987, > 4518363137218750861, -3945920538919881061, -8569890499152898728, > -2228677668104169495, -4004623128783039030, -6849460601197629451, > -1787645289665343374, -9004089114738085395, -8444847561386064840, > -7719025430480017932, -5020575591450775929, -3535144847803187721, > 7252524597471726426, -2582131369519057623, 3737595811793840609, > -7248797595897252845, -7065188032269288840, -6731826791431802176, > -2970075663731571587, -2619987499373344925, -2698285069650269138, > -8589822844420136511, 2658120945314344720, -3710290429036098141, > 134530136452862749, 3703742438909992913, 3460544540911930621, > 8673891706698173777, 2853177281247015813, 13977464647778584, > 2404057737490125388, -6759648287860184451, 744453319830059045, > -688104893800828924, 3356383003502762348, 9054641886966810357, > 2317130729058165506, -5810663910204725460, 2577132949237273515, > 6326216055185945365, 1376570278575995967, 8758101809469842945, > -2892126907778256351, -1716283861287440286, 3040640159143123724, > 4243935966006505554, -6827972097309863039, 3055912546894309570, > -3992773844369808712, -4717007910267923035, -846198401308205724, > -3924870907185309086, 1746803312676010060, 6821355560067598541, > -5786385588878319458, 3085551110635941848, 7832310180114101987, > -9149254679798945822, 3124836728424468300, -100875121723899324, > -7606007094353527325, 270256410769436649, -3016541299722946307, > 6864985654287583845, 8465468836551135602, 7372808321676939792, > -2815261206329145311, -2044219183173664775, -5342853768228072396, > 3636940711408324184, -2772742494800447004, -8420993393273439531, > -1530882172522252534, 8236427746033013128, -8939749738449264357, > -571957476330656311, 6462994120934510138, -2744633996286755268, > 1001793370994802364, 6170004027360887596, 383603396273760626, > 184737756504479596, -4799447088893889554, 1038205033737034383, > 2078124248957773983, -5177819727898656480, 1588469358432181111, > 2476693400197902714, 246839957213783595, -7804622995667946321, > 3516202677463047183, 7649126752776473673, -3286662198144050257, > 2592926684883421936, 6953901594207876325, 8920684239689152479, > -2427878301857439455, -6527468054932471540, -4117125961852289967, > -2833593154725933249, 2548273043767381234, -814886098184093796, > -1113961241682560435, -8364806058670744019, -86067309810855914, > -7325813350040495905, -2651532619332818109, -3028501296208600216, > 2638649530375347897, -3870517833780069551, 3770751443844709295, > -7272035856681375921, -6750394828506790417, 3368553496734537183, > 8516129492713951191, 4435960977618718666, 638690551817702460, > -7462842134093200053, -7312636473795422279, 3825550639500258186, > -490674188267611204, 8488259904981422083, 4436678791994058329, > 5971819389544487212, 5777643219857256454, 6295906877222880293, > -6635403410495817577, -7125973103119231247, 2275471188158109929, > -6554337501188391642, -4759608795508681126, -7655250005358224912, > 9106670136441382451, -9080117178764089351, 5094764588972879219, > -3599769156391426161, 6116955962236377408, -1734768840951819839, > 7826627278264825770, -2624139016757063818, -4122417151587476614, > -6757251857390630385, 2099124804383862824, -3162332634454027278, > 4826222794133551270, 9122652158513265055, 1734656138981660315, > 972980826344778639, -1746779194020635548, -3426944282250211269, > -3857828063692993065, 1895243495321867610, -8828035583443240909, > -4705856469629722102, -8519546521146945353, -2150150551733933931, > 8281585304878501119, -2775028105733898661, 2087277989579187052, > -4016777313261130077, 2747128117959922334, -1398884803916585873, > 7188260080368469340, -3880993098463994199, 3574665846011083154, > 5260683239918360122, 5817587463499837044, 38978473621576635, > 2680910834841463710, 6083561971466189055, 7236937177408808074, > -3600112532662592989, -4559800196660261967, 8276688045060113438, > 5496539762676760591, -2999626688519766687, 8917068693185637310, > 2348378561310644717, 7605443413072783308, 5729359499569394810, > -782345069306605591, 1165004403533704355, -8301882560002322767, > 2008499890787626408, -6211027251975593898, 7406423735628820605, > -3204398339633370684, -7917412446164112725, -106645076087724250, > -1186720400780396653, -8676089669972641821, -1970508303671183113, > -7283082875075535628, -3469652138221449481, -3310949358194646693, > 6449384223770405185, -3602652844861890703, -7845236015467185307, > -4548809972889727666, -8898627491921139823, 5187965699546741544, > 295363921125698104, -8013235493809339368, -6747271362503076577, > 1102625310233591704, -2543233385033476145, -6197912327393001665, > 118165474822979356, -4838870266722406438, -5797141823778124932, > -1506683916229985698, 9139710449103348665, -1571612701117454805, > 8031141543284728427, 8472337544063987034, 3222463867738580103, > 8210687258187437204] > 2017-11-13T14:29:25.092248590Z INFO Create new Keyspace: > KeyspaceMetadata{name=system_traces, > params=KeyspaceParams{durable_writes=true, > replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, > replication_factor=2}}, > tables=[org.apache.cassandra.config.CFMetaData@3bc5ed95[cfId=c5e99f16-8677-3914-b17e-960613512345,ksName=system_traces,cfName=sessions,flags=[COMPOUND],params=TableParams{comment=tracing > sessions, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=0, > default_time_to_live=0, memtable_flush_period_in_ms=3600000, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | > [client command coordinator duration request started_at > parameters]],partitionKeyColumns=[session_id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.UUIDType,columnMetadata=[client, > command, session_id, coordinator, request, started_at, duration, > parameters],droppedColumns={},triggers=[],indexes=[]], > org.apache.cassandra.config.CFMetaData@1a296ffd[cfId=8826e8e9-e16a-3728-8753-3bc1fc713c25,ksName=system_traces,cfName=events,flags=[COMPOUND],params=TableParams{comment=tracing > events, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=0, > default_time_to_live=0, memtable_flush_period_in_ms=3600000, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, > cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.TimeUUIDType),partitionColumns=[[] > | [activity source source_elapsed > thread]],partitionKeyColumns=[session_id],clusteringColumns=[event_id],keyValidator=org.apache.cassandra.db.marshal.UUIDType,columnMetadata=[activity, > event_id, session_id, source, thread, > source_elapsed],droppedColumns={},triggers=[],indexes=[]]], views=[], > functions=[], types=[]} > 2017-11-13T14:29:25.394141160Z INFO Not submitting build tasks for views in > keyspace system_traces as storage service is not initialized > 2017-11-13T14:29:25.408584506Z INFO Initializing system_traces.events > 2017-11-13T14:29:25.424314845Z INFO Initializing system_traces.sessions > 2017-11-13T14:29:25.483133136Z INFO Create new Keyspace: > KeyspaceMetadata{name=system_distributed, > params=KeyspaceParams{durable_writes=true, > replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, > replication_factor=3}}, > tables=[org.apache.cassandra.config.CFMetaData@2884b38b[cfId=759fffad-624b-3181-80ee-fa9a52d1f627,ksName=system_distributed,cfName=repair_history,flags=[COMPOUND],params=TableParams{comment=Repair > history, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, > default_time_to_live=0, memtable_flush_period_in_ms=3600000, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, > cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.TimeUUIDType),partitionColumns=[[] > | [coordinator exception_message exception_stacktrace finished_at parent_id > range_begin range_end started_at status > participants]],partitionKeyColumns=[keyspace_name, > columnfamily_name],clusteringColumns=[id],keyValidator=org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type),columnMetadata=[status, > id, coordinator, finished_at, participants, exception_stacktrace, parent_id, > range_end, range_begin, exception_message, keyspace_name, started_at, > columnfamily_name],droppedColumns={},triggers=[],indexes=[]], > org.apache.cassandra.config.CFMetaData@7fcc80b2[cfId=deabd734-b99d-3b9c-92e5-fd92eb5abf14,ksName=system_distributed,cfName=parent_repair_history,flags=[COMPOUND],params=TableParams{comment=Repair > history, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, > default_time_to_live=0, memtable_flush_period_in_ms=3600000, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | > [exception_message exception_stacktrace finished_at keyspace_name started_at > columnfamily_names options requested_ranges > successful_ranges]],partitionKeyColumns=[parent_id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.TimeUUIDType,columnMetadata=[requested_ranges, > exception_message, keyspace_name, successful_ranges, started_at, > finished_at, options, exception_stacktrace, parent_id, > columnfamily_names],droppedColumns={},triggers=[],indexes=[]], > org.apache.cassandra.config.CFMetaData@7e500004[cfId=5582b59f-8e4e-35e1-b913-3acada51eb04,ksName=system_distributed,cfName=view_build_status,flags=[COMPOUND],params=TableParams{comment=Materialized > View build status, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, > default_time_to_live=0, memtable_flush_period_in_ms=3600000, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, > cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UUIDType),partitionColumns=[[] > | [status]],partitionKeyColumns=[keyspace_name, > view_name],clusteringColumns=[host_id],keyValidator=org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type),columnMetadata=[view_name, > status, keyspace_name, host_id],droppedColumns={},triggers=[],indexes=[]]], > views=[], functions=[], types=[]} > 2017-11-13T14:29:25.598604284Z INFO Not submitting build tasks for views in > keyspace system_distributed as storage service is not initialized > 2017-11-13T14:29:25.602132560Z INFO Initializing > system_distributed.parent_repair_history > 2017-11-13T14:29:25.624580018Z INFO Initializing > system_distributed.repair_history > 2017-11-13T14:29:25.624605811Z INFO Initializing > system_distributed.view_build_status > 2017-11-13T14:29:25.682205208Z INFO JOINING: Finish joining ring > 2017-11-13T14:29:25.808448539Z INFO Create new Keyspace: > KeyspaceMetadata{name=system_auth, params=KeyspaceParams{durable_writes=true, > replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, > replication_factor=1}}, > tables=[org.apache.cassandra.config.CFMetaData@3c28c0da[cfId=5bc52802-de25-35ed-aeab-188eecebb090,ksName=system_auth,cfName=roles,flags=[COMPOUND],params=TableParams{comment=role > definitions, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=7776000, > default_time_to_live=0, memtable_flush_period_in_ms=3600000, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | > [can_login is_superuser salted_hash > member_of]],partitionKeyColumns=[role],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[salted_hash, > member_of, role, can_login, > is_superuser],droppedColumns={},triggers=[],indexes=[]], > org.apache.cassandra.config.CFMetaData@2e0f771e[cfId=0ecdaa87-f8fb-3e60-88d1-74fb36fe5c0d,ksName=system_auth,cfName=role_members,flags=[COMPOUND],params=TableParams{comment=role > memberships lookup table, read_repair_chance=0.0, > dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, > crc_check_chance=1.0, gc_grace_seconds=7776000, default_time_to_live=0, > memtable_flush_period_in_ms=3600000, min_index_interval=128, > max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : > 'ALL', 'rows_per_partition' : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, > cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] > | > []],partitionKeyColumns=[role],clusteringColumns=[member],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[role, > member],droppedColumns={},triggers=[],indexes=[]], > org.apache.cassandra.config.CFMetaData@4fabdebb[cfId=3afbe79f-2194-31a7-add7-f5ab90d8ec9c,ksName=system_auth,cfName=role_permissions,flags=[COMPOUND],params=TableParams{comment=permissions > granted to db roles, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=7776000, > default_time_to_live=0, memtable_flush_period_in_ms=3600000, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, > cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] > | > [permissions]],partitionKeyColumns=[role],clusteringColumns=[resource],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[role, > resource, permissions],droppedColumns={},triggers=[],indexes=[]], > org.apache.cassandra.config.CFMetaData@7103b8de[cfId=5f2fbdad-91f1-3946-bd25-d5da3a5c35ec,ksName=system_auth,cfName=resource_role_permissons_index,flags=[COMPOUND],params=TableParams{comment=index > of db roles with permissions granted on a resource, read_repair_chance=0.0, > dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, > crc_check_chance=1.0, gc_grace_seconds=7776000, default_time_to_live=0, > memtable_flush_period_in_ms=3600000, min_index_interval=128, > max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : > 'ALL', 'rows_per_partition' : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, > cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] > | > []],partitionKeyColumns=[resource],clusteringColumns=[role],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[resource, > role],droppedColumns={},triggers=[],indexes=[]]], views=[], functions=[], > types=[]} > 2017-11-13T14:29:25.934019252Z INFO Not submitting build tasks for views in > keyspace system_auth as storage service is not initialized > 2017-11-13T14:29:25.953887674Z INFO Initializing > system_auth.resource_role_permissons_index > 2017-11-13T14:29:25.957358898Z INFO Initializing system_auth.role_members > 2017-11-13T14:29:25.967935061Z INFO Initializing system_auth.role_permissions > 2017-11-13T14:29:25.995449692Z INFO Initializing system_auth.roles > 2017-11-13T14:29:26.193856408Z INFO Netty using native Epoll event loop > 2017-11-13T14:29:26.247676724Z INFO Using Netty Version: > [netty-buffer=netty-buffer-4.0.44.Final.452812a, > netty-codec=netty-codec-4.0.44.Final.452812a, > netty-codec-haproxy=netty-codec-haproxy-4.0.44.Final.452812a, > netty-codec-http=netty-codec-http-4.0.44.Final.452812a, > netty-codec-socks=netty-codec-socks-4.0.44.Final.452812a, > netty-common=netty-common-4.0.44.Final.452812a, > netty-handler=netty-handler-4.0.44.Final.452812a, > netty-tcnative=netty-tcnative-1.1.33.Fork26.142ecbb, > netty-transport=netty-transport-4.0.44.Final.452812a, > netty-transport-native-epoll=netty-transport-native-epoll-4.0.44.Final.452812a, > netty-transport-rxtx=netty-transport-rxtx-4.0.44.Final.452812a, > netty-transport-sctp=netty-transport-sctp-4.0.44.Final.452812a, > netty-transport-udt=netty-transport-udt-4.0.44.Final.452812a] > 2017-11-13T14:29:26.247705469Z INFO Starting listening for CQL clients on > /0.0.0.0:9042 (unencrypted)... > 2017-11-13T14:29:26.309591159Z INFO Not starting RPC server as requested. Use > JMX (StorageService->startRPCServer()) or nodetool (enablethrift) to start it > 2017-11-13T14:29:36.275846037Z INFO Created default superuser role 'cassandra' > 2017-11-13T14:29:40.333918591Z INFO Create new Keyspace: > KeyspaceMetadata{name=my_keyspace, params=KeyspaceParams{durable_writes=true, > replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, > replication_factor=1}}, tables=[], views=[], functions=[], types=[]} > 2017-11-13T14:29:40.434399612Z INFO Create new table: > org.apache.cassandra.config.CFMetaData@c74a94b[cfId=1572b410-c87f-11e7-9db1-6d2c86545d91,ksName=my_keyspace,cfName=schema_version,flags=[COMPOUND],params=TableParams{comment=, > read_repair_chance=0.0, dclocal_read_repair_chance=0.1, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, > default_time_to_live=0, memtable_flush_period_in_ms=0, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | > [migration_lock > version]],partitionKeyColumns=[id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.Int32Type,columnMetadata=[migration_lock, > version, id],droppedColumns={},triggers=[],indexes=[]] > 2017-11-13T14:29:40.566922871Z INFO Initializing my_keyspace.schema_version > 2017-11-13T14:29:42.719380089Z INFO Drop Keyspace 'my_keyspace' > 2017-11-13T14:29:43.124510221Z INFO Create new Keyspace: > KeyspaceMetadata{name=my_keyspace, params=KeyspaceParams{durable_writes=true, > replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, > replication_factor=1}}, tables=[], views=[], functions=[], types=[]} > 2017-11-13T14:29:43.243928493Z INFO Create new table: > org.apache.cassandra.config.CFMetaData@1a0616e9[cfId=171e8f50-c87f-11e7-9db1-6d2c86545d91,ksName=my_keyspace,cfName=schema_version,flags=[COMPOUND],params=TableParams{comment=, > read_repair_chance=0.0, dclocal_read_repair_chance=0.1, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, > default_time_to_live=0, memtable_flush_period_in_ms=0, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | > [migration_lock > version]],partitionKeyColumns=[id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.Int32Type,columnMetadata=[migration_lock, > version, id],droppedColumns={},triggers=[],indexes=[]] > 2017-11-13T14:29:43.284700491Z INFO Initializing my_keyspace.schema_version > 2017-11-13T14:29:44.706916652Z INFO Drop Keyspace 'my_keyspace' > 2017-11-13T14:29:44.924446999Z INFO Create new Keyspace: > KeyspaceMetadata{name=my_keyspace, params=KeyspaceParams{durable_writes=true, > replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, > replication_factor=1}}, tables=[], views=[], functions=[], types=[]} > 2017-11-13T14:29:44.993983743Z INFO Create new table: > org.apache.cassandra.config.CFMetaData@7338ccab[cfId=182996b0-c87f-11e7-9db1-6d2c86545d91,ksName=my_keyspace,cfName=schema_version,flags=[COMPOUND],params=TableParams{comment=, > read_repair_chance=0.0, dclocal_read_repair_chance=0.1, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, > default_time_to_live=0, memtable_flush_period_in_ms=0, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | > [migration_lock > version]],partitionKeyColumns=[id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.Int32Type,columnMetadata=[migration_lock, > version, id],droppedColumns={},triggers=[],indexes=[]] > 2017-11-13T14:29:45.078407254Z INFO Initializing my_keyspace.schema_version > 2017-11-13T14:29:46.244137923Z INFO Drop Keyspace 'my_keyspace' > 2017-11-13T14:29:46.500351100Z INFO Create new Keyspace: > KeyspaceMetadata{name=my_keyspace, params=KeyspaceParams{durable_writes=true, > replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, > replication_factor=1}}, tables=[], views=[], functions=[], types=[]} > 2017-11-13T14:29:46.575419551Z INFO Create new table: > org.apache.cassandra.config.CFMetaData@229f3694[cfId=191b97d0-c87f-11e7-9db1-6d2c86545d91,ksName=my_keyspace,cfName=schema_version,flags=[COMPOUND],params=TableParams{comment=, > read_repair_chance=0.0, dclocal_read_repair_chance=0.1, > bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, > default_time_to_live=0, memtable_flush_period_in_ms=0, > min_index_interval=128, max_index_interval=2048, > speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' > : 'NONE'}, > compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, > options={min_threshold=4, max_threshold=32}}, > compression=org.apache.cassandra.schema.CompressionParams@4c3448a7, > extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | > [migration_lock > version]],partitionKeyColumns=[id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.Int32Type,columnMetadata=[migration_lock, > version, id],droppedColumns={},triggers=[],indexes=[]] > 2017-11-13T14:29:46.617101680Z ERROR Unexpected error during query > 2017-11-13T14:29:46.617126436Z java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.NullPointerException > 2017-11-13T14:29:46.617130194Z at > org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:404) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617133358Z at > org.apache.cassandra.service.MigrationManager.announce(MigrationManager.java:549) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617135966Z at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:356) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617138576Z at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:341) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617141018Z at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:321) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617143454Z at > org.apache.cassandra.cql3.statements.CreateTableStatement.announceMigration(CreateTableStatement.java:89) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617145953Z at > org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(SchemaAlteringStatement.java:93) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617148372Z at > org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:224) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617150806Z at > org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:255) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617153201Z at > org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:240) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617155595Z at > org.apache.cassandra.transport.messages.QueryMessage.execute(QueryMessage.java:116) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617157962Z at > org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:517) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617160377Z at > org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:410) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617162787Z at > io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.617166295Z at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.617168898Z at > io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:35) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.617171389Z at > io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:348) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.617173808Z at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > [na:1.8.0_131] > 2017-11-13T14:29:46.617184008Z at > org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:162) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617186971Z at > org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:109) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617189340Z at java.lang.Thread.run(Thread.java:748) > [na:1.8.0_131] > 2017-11-13T14:29:46.617191666Z Caused by: > java.util.concurrent.ExecutionException: java.lang.NullPointerException > 2017-11-13T14:29:46.617193951Z at > java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_131] > 2017-11-13T14:29:46.617196258Z at > java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_131] > 2017-11-13T14:29:46.617198553Z at > org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:400) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617200927Z ... 20 common frames omitted > 2017-11-13T14:29:46.617203114Z Caused by: java.lang.NullPointerException: null > 2017-11-13T14:29:46.617205382Z at > org.apache.cassandra.cql3.UntypedResultSet$Row.getBoolean(UntypedResultSet.java:273) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617207766Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspaceParams(SchemaKeyspace.java:956) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617210107Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:943) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617212462Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesOnly(SchemaKeyspace.java:937) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617214868Z at > org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:1363) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617217261Z at > org.apache.cassandra.schema.SchemaKeyspace.mergeSchemaAndAnnounceVersion(SchemaKeyspace.java:1342) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617220404Z at > org.apache.cassandra.service.MigrationManager$1.runMayThrow(MigrationManager.java:567) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617222948Z at > org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617225287Z at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > [na:1.8.0_131] > 2017-11-13T14:29:46.617227589Z at > java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_131] > 2017-11-13T14:29:46.617229894Z at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > ~[na:1.8.0_131] > 2017-11-13T14:29:46.617232175Z at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > ~[na:1.8.0_131] > 2017-11-13T14:29:46.617234514Z at > org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:81) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.617236990Z ... 1 common frames omitted > 2017-11-13T14:29:46.621331936Z ERROR Exception in thread > Thread[MigrationStage:1,5,main] > 2017-11-13T14:29:46.621360645Z java.lang.NullPointerException: null > 2017-11-13T14:29:46.621364339Z at > org.apache.cassandra.cql3.UntypedResultSet$Row.getBoolean(UntypedResultSet.java:273) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621373614Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspaceParams(SchemaKeyspace.java:956) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621376363Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:943) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621378927Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesOnly(SchemaKeyspace.java:937) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621381395Z at > org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:1363) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621384992Z at > org.apache.cassandra.schema.SchemaKeyspace.mergeSchemaAndAnnounceVersion(SchemaKeyspace.java:1342) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621387567Z at > org.apache.cassandra.service.MigrationManager$1.runMayThrow(MigrationManager.java:567) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621390255Z at > org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621392722Z at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > ~[na:1.8.0_131] > 2017-11-13T14:29:46.621395153Z at > java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_131] > 2017-11-13T14:29:46.621397502Z at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > ~[na:1.8.0_131] > 2017-11-13T14:29:46.621399919Z at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [na:1.8.0_131] > 2017-11-13T14:29:46.621402347Z at > org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:81) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.621404867Z at java.lang.Thread.run(Thread.java:748) > ~[na:1.8.0_131] > 2017-11-13T14:29:46.626625652Z ERROR Unexpected exception during request > 2017-11-13T14:29:46.626650886Z java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.NullPointerException > 2017-11-13T14:29:46.626654840Z at > org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:404) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626658003Z at > org.apache.cassandra.service.MigrationManager.announce(MigrationManager.java:549) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626660570Z at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:356) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626663155Z at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:341) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626665745Z at > org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:321) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626676412Z at > org.apache.cassandra.cql3.statements.CreateTableStatement.announceMigration(CreateTableStatement.java:89) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626679497Z at > org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(SchemaAlteringStatement.java:93) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626682051Z at > org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:224) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626684610Z at > org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:255) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626687059Z at > org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:240) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626689495Z at > org.apache.cassandra.transport.messages.QueryMessage.execute(QueryMessage.java:116) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626691956Z at > org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:517) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626694391Z at > org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:410) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626696869Z at > io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.626700811Z at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.626703433Z at > io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:35) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.626705926Z at > io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:348) > [netty-all-4.0.44.Final.jar:4.0.44.Final] > 2017-11-13T14:29:46.626708464Z at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > [na:1.8.0_131] > 2017-11-13T14:29:46.626710858Z at > org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:162) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626713448Z at > org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:109) > [apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626715868Z at java.lang.Thread.run(Thread.java:748) > [na:1.8.0_131] > 2017-11-13T14:29:46.626718281Z Caused by: > java.util.concurrent.ExecutionException: java.lang.NullPointerException > 2017-11-13T14:29:46.626720647Z at > java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_131] > 2017-11-13T14:29:46.626723006Z at > java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_131] > 2017-11-13T14:29:46.626725392Z at > org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:400) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626727820Z ... 20 common frames omitted > 2017-11-13T14:29:46.626730100Z Caused by: java.lang.NullPointerException: null > 2017-11-13T14:29:46.626735106Z at > org.apache.cassandra.cql3.UntypedResultSet$Row.getBoolean(UntypedResultSet.java:273) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626737800Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspaceParams(SchemaKeyspace.java:956) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626740362Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:943) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626742804Z at > org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesOnly(SchemaKeyspace.java:937) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626745273Z at > org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:1363) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626747719Z at > org.apache.cassandra.schema.SchemaKeyspace.mergeSchemaAndAnnounceVersion(SchemaKeyspace.java:1342) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626750759Z at > org.apache.cassandra.service.MigrationManager$1.runMayThrow(MigrationManager.java:567) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626753445Z at > org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626755900Z at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > [na:1.8.0_131] > 2017-11-13T14:29:46.626758684Z at > java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_131] > 2017-11-13T14:29:46.626761055Z at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > ~[na:1.8.0_131] > 2017-11-13T14:29:46.626763436Z at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > ~[na:1.8.0_131] > 2017-11-13T14:29:46.626765871Z at > org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:81) > ~[apache-cassandra-3.11.1.jar:3.11.1] > 2017-11-13T14:29:46.626768418Z ... 1 common frames omitted{code} > Steps to reproduce: > 1. Start cassandra > 2. Start cqlsh and paste the following in quick succession: > {code:java} > USE system; > DROP KEYSPACE IF EXISTS my_keyspace; > CREATE KEYSPACE my_keyspace WITH replication = { 'class': 'SimpleStrategy', > 'replication_factor': 1}; > USE my_keyspace; > CREATE TABLE schema_version (id int primary key, version int, migration_lock > text); > INSERT INTO schema_version (id, version) values (1, 0);{code} > 3. Once fourth time or so , we'll see: > {code:java} > cqlsh:system> CREATE KEYSPACE my_keyspace WITH replication = { 'class': > 'SimpleStrategy', 'replication_factor': 1}; > ServerError: java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.NullPointerException{code} > or > {code:java} > cqlsh:my_keyspace> CREATE TABLE schema_version (id int primary key, version > int, migration_lock text); > ServerError: java.lang.RuntimeException: > java.util.concurrent.ExecutionException: java.lang.NullPointerException{code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org