Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.65k stars 12.37k forks source link

Cassandra 3.11.9_1 crashes in openjdk@8 JVM #66462

Closed Aqualon closed 3 years ago

Aqualon commented 3 years ago

Bug report

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

What you were trying to do (and why)

Running cassandra after update to 3.11.9_1 with newly introduced dependency to openjdk@8 #65581

What happened (include command output)

cassandra -f does not start with JVM crash

Command output
OpenJDK 64-Bit Server VM warning: Cannot open file /usr/local/Cellar/cassandra/3.11.9_1/libexec/logs/gc.log due to No such file or directory

CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.deserializeLargeSubset (Lorg/apache/cassandra/io/util/DataInputPlus;Lorg/apache/cassandra/db/Columns;I)Lorg/apache/cassandra/db/Columns;
CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubset (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;ILorg/apache/cassandra/io/util/DataOutputPlus;)V
CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubsetSize (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;I)I
CompilerOracle: dontinline org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.advanceAllocatingFrom (Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
CompilerOracle: dontinline org/apache/cassandra/db/transform/BaseIterator.tryGetMoreContents ()Z
CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stop ()V
CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stopInPartition ()V
CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.doFlush (I)V
CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeExcessSlow ()V
CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeSlow (JI)V
CompilerOracle: dontinline org/apache/cassandra/io/util/RebufferingInputStream.readPrimitiveSlowly (I)J
CompilerOracle: inline org/apache/cassandra/db/rows/UnfilteredSerializer.serializeRowBody (Lorg/apache/cassandra/db/rows/Row;ILorg/apache/cassandra/db/SerializationHeader;Lorg/apache/cassandra/io/util/DataOutputPlus;)V
CompilerOracle: inline org/apache/cassandra/io/util/Memory.checkBounds (JJ)V
CompilerOracle: inline org/apache/cassandra/io/util/SafeMemory.checkBounds (JJ)V
CompilerOracle: inline org/apache/cassandra/utils/AsymmetricOrdering.selectBoundary (Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;II)I
CompilerOracle: inline org/apache/cassandra/utils/AsymmetricOrdering.strictnessOfLessThan (Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;)I
CompilerOracle: inline org/apache/cassandra/utils/BloomFilter.indexes (Lorg/apache/cassandra/utils/IFilter/FilterKey;)[J
CompilerOracle: inline org/apache/cassandra/utils/BloomFilter.setIndexes (JJIJ[J)V
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare (Ljava/nio/ByteBuffer;[B)I
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare ([BLjava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compareUnsigned (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/lang/Object;JI)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/vint/VIntCoding.encodeVInt (JI)[B
INFO  [main] 2020-12-08 10:16:34,338 YamlConfigurationLoader.java:92 - Configuration location: file:/usr/local/etc/cassandra/cassandra.yaml
INFO  [main] 2020-12-08 10:16:34,583 Config.java:536 - Node configuration:[allocate_tokens_for_keyspace=null; authenticator=AllowAllAuthenticator; authorizer=AllowAllAuthorizer; auto_bootstrap=true; auto_snapshot=true; back_pressure_enabled=false; back_pressure_strategy=org.apache.cassandra.net.RateBasedBackPressure{high_ratio=0.9, factor=5, flow=FAST}; batch_size_fail_threshold_in_kb=50; batch_size_warn_threshold_in_kb=5; batchlog_replay_throttle_in_kb=1024; broadcast_address=null; broadcast_rpc_address=null; buffer_pool_use_heap_if_exhausted=true; cas_contention_timeout_in_ms=1000; cdc_enabled=false; cdc_free_space_check_interval_ms=250; cdc_raw_directory=null; cdc_total_space_in_mb=0; check_for_duplicate_rows_during_compaction=true; check_for_duplicate_rows_during_reads=true; client_encryption_options=; cluster_name=Test Cluster; column_index_cache_size_in_kb=2; column_index_size_in_kb=64; commit_failure_policy=stop; commitlog_compression=null; commitlog_directory=null; commitlog_max_compression_buffers_in_pool=3; commitlog_periodic_queue_size=-1; commitlog_segment_size_in_mb=32; commitlog_sync=periodic; commitlog_sync_batch_window_in_ms=NaN; commitlog_sync_period_in_ms=10000; commitlog_total_space_in_mb=null; compaction_large_partition_warning_threshold_mb=100; compaction_throughput_mb_per_sec=16; concurrent_compactors=null; concurrent_counter_writes=32; concurrent_materialized_view_writes=32; concurrent_reads=32; concurrent_replicates=null; concurrent_writes=32; counter_cache_keys_to_save=2147483647; counter_cache_save_period=7200; counter_cache_size_in_mb=null; counter_write_request_timeout_in_ms=5000; credentials_cache_max_entries=1000; credentials_update_interval_in_ms=-1; credentials_validity_in_ms=2000; cross_node_timeout=false; data_file_directories=[Ljava.lang.String;@2aa5fe93; disk_access_mode=auto; disk_failure_policy=stop; disk_optimization_estimate_percentile=0.95; disk_optimization_page_cross_chance=0.1; disk_optimization_strategy=ssd; dynamic_snitch=true; dynamic_snitch_badness_threshold=0.1; dynamic_snitch_reset_interval_in_ms=600000; dynamic_snitch_update_interval_in_ms=100; enable_materialized_views=true; enable_sasi_indexes=true; enable_scripted_user_defined_functions=false; enable_user_defined_functions=false; enable_user_defined_functions_threads=true; encryption_options=null; endpoint_snitch=SimpleSnitch; file_cache_round_up=null; file_cache_size_in_mb=null; gc_log_threshold_in_ms=200; gc_warn_threshold_in_ms=1000; hinted_handoff_disabled_datacenters=[]; hinted_handoff_enabled=true; hinted_handoff_throttle_in_kb=1024; hints_compression=null; hints_directory=null; hints_flush_period_in_ms=10000; incremental_backups=false; index_interval=null; index_summary_capacity_in_mb=null; index_summary_resize_interval_in_minutes=60; initial_token=null; inter_dc_stream_throughput_outbound_megabits_per_sec=200; inter_dc_tcp_nodelay=false; internode_authenticator=null; internode_compression=dc; internode_recv_buff_size_in_bytes=0; internode_send_buff_size_in_bytes=0; key_cache_keys_to_save=2147483647; key_cache_save_period=14400; key_cache_size_in_mb=null; listen_address=localhost; listen_interface=null; listen_interface_prefer_ipv6=false; listen_on_broadcast_address=false; max_hint_window_in_ms=10800000; max_hints_delivery_threads=2; max_hints_file_size_in_mb=128; max_mutation_size_in_kb=null; max_streaming_retries=3; max_value_size_in_mb=256; memtable_allocation_type=heap_buffers; memtable_cleanup_threshold=null; memtable_flush_writers=0; memtable_heap_space_in_mb=null; memtable_offheap_space_in_mb=null; min_free_space_per_drive_in_mb=50; native_transport_flush_in_batches_legacy=true; native_transport_max_concurrent_connections=-1; native_transport_max_concurrent_connections_per_ip=-1; native_transport_max_concurrent_requests_in_bytes=-1; native_transport_max_concurrent_requests_in_bytes_per_ip=-1; native_transport_max_frame_size_in_mb=256; native_transport_max_negotiable_protocol_version=-2147483648; native_transport_max_threads=128; native_transport_port=9042; native_transport_port_ssl=null; num_tokens=256; otc_backlog_expiration_interval_ms=200; otc_coalescing_enough_coalesced_messages=8; otc_coalescing_strategy=DISABLED; otc_coalescing_window_us=200; partitioner=org.apache.cassandra.dht.Murmur3Partitioner; permissions_cache_max_entries=1000; permissions_update_interval_in_ms=-1; permissions_validity_in_ms=2000; phi_convict_threshold=8.0; prepared_statements_cache_size_mb=null; range_request_timeout_in_ms=10000; read_request_timeout_in_ms=5000; repair_session_max_tree_depth=18; request_scheduler=org.apache.cassandra.scheduler.NoScheduler; request_scheduler_id=null; request_scheduler_options=null; request_timeout_in_ms=10000; role_manager=CassandraRoleManager; roles_cache_max_entries=1000; roles_update_interval_in_ms=-1; roles_validity_in_ms=2000; row_cache_class_name=org.apache.cassandra.cache.OHCProvider; row_cache_keys_to_save=2147483647; row_cache_save_period=0; row_cache_size_in_mb=0; rpc_address=localhost; rpc_interface=null; rpc_interface_prefer_ipv6=false; rpc_keepalive=true; rpc_listen_backlog=50; rpc_max_threads=2147483647; rpc_min_threads=16; rpc_port=9160; rpc_recv_buff_size_in_bytes=null; rpc_send_buff_size_in_bytes=null; rpc_server_type=sync; saved_caches_directory=null; seed_provider=org.apache.cassandra.locator.SimpleSeedProvider{seeds=127.0.0.1}; server_encryption_options=; slow_query_log_timeout_in_ms=500; snapshot_before_compaction=false; snapshot_on_duplicate_row_detection=false; ssl_storage_port=7001; sstable_preemptive_open_interval_in_mb=50; start_native_transport=true; start_rpc=false; storage_port=7000; stream_throughput_outbound_megabits_per_sec=200; streaming_keep_alive_period_in_secs=300; streaming_socket_timeout_in_ms=86400000; thrift_framed_transport_size_in_mb=15; thrift_max_message_length_in_mb=16; thrift_prepared_statements_cache_size_mb=null; tombstone_failure_threshold=100000; tombstone_warn_threshold=1000; tracetype_query_ttl=86400; tracetype_repair_ttl=604800; transparent_data_encryption_options=org.apache.cassandra.config.TransparentDataEncryptionOptions@5c1a8622; trickle_fsync=false; trickle_fsync_interval_in_kb=10240; truncate_request_timeout_in_ms=60000; unlogged_batch_across_partitions_warn_threshold=10; user_defined_function_fail_timeout=1500; user_defined_function_warn_timeout=500; user_function_timeout_policy=die; windows_timer_interval=1; write_request_timeout_in_ms=2000]
INFO  [main] 2020-12-08 10:16:34,584 DatabaseDescriptor.java:381 - DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
INFO  [main] 2020-12-08 10:16:34,584 DatabaseDescriptor.java:439 - Global memtable on-heap threshold is enabled at 998MB
INFO  [main] 2020-12-08 10:16:34,584 DatabaseDescriptor.java:443 - Global memtable off-heap threshold is enabled at 998MB
INFO  [main] 2020-12-08 10:16:34,821 RateBasedBackPressure.java:123 - Initialized back-pressure with high ratio: 0.9, factor: 5, flow: FAST, window size: 2000.
INFO  [main] 2020-12-08 10:16:34,821 DatabaseDescriptor.java:773 - Back-pressure is disabled with strategy org.apache.cassandra.net.RateBasedBackPressure{high_ratio=0.9, factor=5, flow=FAST}.
INFO  [main] 2020-12-08 10:16:34,993 JMXServerUtils.java:253 - Configured JMX server at: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:7199/jmxrmi
INFO  [main] 2020-12-08 10:16:35,003 CassandraDaemon.java:490 - Hostname: nb-bescherl2
INFO  [main] 2020-12-08 10:16:35,003 CassandraDaemon.java:497 - JVM vendor/version: OpenJDK 64-Bit Server VM/1.8.0_275
INFO  [main] 2020-12-08 10:16:35,004 CassandraDaemon.java:498 - Heap size: 3.900GiB/3.900GiB
INFO  [main] 2020-12-08 10:16:35,005 CassandraDaemon.java:503 - Code Cache Non-heap memory: init = 2555904(2496K) used = 4779136(4667K) committed = 4849664(4736K) max = 251658240(245760K)
INFO  [main] 2020-12-08 10:16:35,005 CassandraDaemon.java:503 - Metaspace Non-heap memory: init = 0(0K) used = 19140672(18692K) committed = 19791872(19328K) max = -1(-1K)
INFO  [main] 2020-12-08 10:16:35,005 CassandraDaemon.java:503 - Compressed Class Space Non-heap memory: init = 0(0K) used = 2291536(2237K) committed = 2490368(2432K) max = 1073741824(1048576K)
INFO  [main] 2020-12-08 10:16:35,005 CassandraDaemon.java:503 - Par Eden Space Heap memory: init = 859045888(838912K) used = 188994072(184564K) committed = 859045888(838912K) max = 859045888(838912K)
INFO  [main] 2020-12-08 10:16:35,005 CassandraDaemon.java:503 - Par Survivor Space Heap memory: init = 107347968(104832K) used = 0(0K) committed = 107347968(104832K) max = 107347968(104832K)
INFO  [main] 2020-12-08 10:16:35,006 CassandraDaemon.java:503 - CMS Old Gen Heap memory: init = 3221225472(3145728K) used = 0(0K) committed = 3221225472(3145728K) max = 3221225472(3145728K)
INFO  [main] 2020-12-08 10:16:35,006 CassandraDaemon.java:505 - Classpath: /usr/local/etc/cassandra:/usr/local/Cellar/cassandra/3.11.9_1/libexec/build/classes/main:/usr/local/Cellar/cassandra/3.11.9_1/libexec/build/classes/thrift:/usr/local/Cellar/cassandra/3.11.9_1/libexec/HdrHistogram-2.1.9.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/ST4-4.0.8.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/airline-0.6.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/antlr-runtime-3.5.2.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/apache-cassandra-3.11.9.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/apache-cassandra-thrift-3.11.9.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/asm-5.0.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/caffeine-2.2.6.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/cassandra-driver-core-3.0.1-shaded.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/commons-cli-1.1.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/commons-codec-1.9.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/commons-lang3-3.1.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/commons-math3-3.2.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/compress-lzf-0.8.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/concurrent-trees-2.4.0.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/concurrentlinkedhashmap-lru-1.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/disruptor-3.0.1.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/ecj-4.4.2.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/guava-18.0.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/high-scale-lib-1.0.6.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/hppc-0.5.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jackson-annotations-2.9.10.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jackson-core-2.9.10.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jackson-databind-2.9.10.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jamm-0.3.0.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/javax.inject.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jbcrypt-0.3m.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jcl-over-slf4j-1.7.7.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jctools-core-1.2.1.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jflex-1.6.0.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jna-4.2.2.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/joda-time-2.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/json-simple-1.1.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jstackjunit-0.0.1.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/libthrift-0.9.2.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/log4j-over-slf4j-1.7.7.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/logback-classic-1.1.3.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/logback-core-1.1.3.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/lz4-1.3.0.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/metrics-core-3.1.5.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/metrics-jvm-3.1.5.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/metrics-logback-3.1.5.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/netty-all-4.0.44.Final.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/ohc-core-0.4.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/ohc-core-j8-0.4.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/reporter-config-base-3.0.3.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/reporter-config3-3.0.3.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/sigar-1.6.4.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/slf4j-api-1.7.7.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/snakeyaml-1.11.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/snappy-java-1.1.1.7.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/snowball-stemmer-1.3.0.581.1.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/stream-2.5.2.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/thrift-server-0.3.7.jar:/usr/local/Cellar/cassandra/3.11.9_1/libexec/lib/jsr223/*/*.jar::/usr/local/Cellar/cassandra/3.11.9_1/libexec/jamm-0.3.0.jar
INFO  [main] 2020-12-08 10:16:35,007 CassandraDaemon.java:507 - JVM Arguments: [-Xloggc:/usr/local/Cellar/cassandra/3.11.9_1/libexec/logs/gc.log, -ea, -XX:+UseThreadPriorities, -XX:ThreadPriorityPolicy=42, -XX:+HeapDumpOnOutOfMemoryError, -Xss256k, -XX:StringTableSize=1000003, -XX:+AlwaysPreTouch, -XX:-UseBiasedLocking, -XX:+UseTLAB, -XX:+ResizeTLAB, -XX:+UseNUMA, -XX:+PerfDisableSharedMem, -Djava.net.preferIPv4Stack=true, -XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:+CMSParallelRemarkEnabled, -XX:SurvivorRatio=8, -XX:MaxTenuringThreshold=1, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:CMSWaitDuration=10000, -XX:+CMSParallelInitialMarkEnabled, -XX:+CMSEdenChunksRecordAlways, -XX:+CMSClassUnloadingEnabled, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintHeapAtGC, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -XX:+PrintPromotionFailure, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=10, -XX:GCLogFileSize=10M, -Xms4096M, -Xmx4096M, -Xmn1024M, -XX:+UseCondCardMark, -XX:CompileCommandFile=/usr/local/etc/cassandra/hotspot_compiler, -javaagent:/usr/local/Cellar/cassandra/3.11.9_1/libexec/jamm-0.3.0.jar, -Dcassandra.jmx.local.port=7199, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.password.file=/etc/cassandra/jmxremote.password, -Djava.library.path=/usr/local/Cellar/cassandra/3.11.9_1/libexec/sigar-bin, -Dcassandra.libjemalloc=/usr/local/lib/libjemalloc.dylib, -XX:OnOutOfMemoryError=kill -9 %p, -Dlogback.configurationFile=logback.xml, -Dcassandra.logdir=/usr/local/var/log/cassandra, -Dcassandra.storagedir=/usr/local/var/lib/cassandra, -Dcassandra-foreground=yes]
INFO  [main] 2020-12-08 10:16:35,115 StartupChecks.java:140 - jemalloc seems to be preloaded from /usr/local/lib/libjemalloc.dylib
WARN  [main] 2020-12-08 10:16:35,116 StartupChecks.java:169 - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
INFO  [main] 2020-12-08 10:16:35,118 SigarLibrary.java:44 - Initializing SIGAR library
INFO  [main] 2020-12-08 10:16:35,137 SigarLibrary.java:57 - Could not initialize SIGAR library org.hyperic.sigar.Sigar.getFileSystemListNative()[Lorg/hyperic/sigar/FileSystem; 
INFO  [main] 2020-12-08 10:16:35,138 SigarLibrary.java:185 - Sigar could not be initialized, test for checking degraded mode omitted.
INFO  [main] 2020-12-08 10:16:35,399 QueryProcessor.java:116 - Initialized prepared statement caches with 15 MB (native) and 15 MB (Thrift)
INFO  [main] 2020-12-08 10:16:35,997 ColumnFamilyStore.java:427 - Initializing system.IndexInfo
INFO  [main] 2020-12-08 10:16:36,700 ColumnFamilyStore.java:427 - Initializing system.batches
INFO  [main] 2020-12-08 10:16:36,706 ColumnFamilyStore.java:427 - Initializing system.paxos
INFO  [main] 2020-12-08 10:16:36,719 ColumnFamilyStore.java:427 - Initializing system.local
INFO  [SSTableBatchOpen:2] 2020-12-08 10:16:36,757 BufferPool.java:234 - Global buffer pool is enabled, when pool is exhausted (max is 512.000MiB) it will allocate on heap
\#
\# A fatal error has been detected by the Java Runtime Environment:
\#
\#  SIGSEGV (0xb) at pc=0x000000010a565ab8, pid=56199, tid=0x0000000000009103
\#
\# JRE version: OpenJDK Runtime Environment (8.0_275) (build 1.8.0_275-bre_2020_11_16_16_29-b00)
\# Java VM: OpenJDK 64-Bit Server VM (25.275-b00 mixed mode bsd-amd64 compressed oops)
\# Problematic frame:
\# V  [libjvm.dylib+0x565ab8]  Unsafe_GetByte+0xcd
\#
\# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
\#
\# An error report file with more information is saved as:
\# /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/hs_err_pid56199.log
\#
\# If you would like to submit a bug report, please visit:
\#   http://bugreport.java.com/bugreport/crash.jsp
\#
Abort trap: 6

  

What you expected to happen

Cassandra should start normally

Step-by-step reproduction instructions (by running brew install commands)

brew install cassandra
cassandra -f

Before I had adoptopenjdk8 installed, which ran fine with cassandra 3.11.9. I also went back to cassandra 3.11.9 alone (reverting https://github.com/Homebrew/homebrew-core/commit/b59b446c7c5b7f78cd370c2f34c2e86b4988969b#diff-bd813e04e8768fa9fd61b68856a7700b49e6c8d4ee47db3aeaed43ad3bfc2a42) and it didn't work, but if I went to before openjdk@8 was introduced by also reverting https://github.com/Homebrew/homebrew-core/commit/7124a8e8f3eea250bab6a70a35224056ae0be217#diff-bd813e04e8768fa9fd61b68856a7700b49e6c8d4ee47db3aeaed43ad3bfc2a42 it works again.

SMillerDev commented 3 years ago

What does echo $JAVA_HOME say on your system?

Aqualon commented 3 years ago

This variable is not set on my system.

EDIT: Tried running it via JAVA_HOME=/usr/local/Cellar/openjdk@8/1.8.0+275/ cassandra -f and it also fails with the same crash.

SMillerDev commented 3 years ago

Try setting the JAVA_HOME variable to the install location of the adoptopenjdk cask

Aqualon commented 3 years ago
JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home cassandra -f

starts cassandra fine

Aqualon commented 3 years ago

As workaround to still be able to use brew services I edited /usr/local/Cellar/cassandra/3.11.9_1/homebrew.mxcl.cassandra.plist file to contain (UPDATE: the really working version setting JAVA_HOME env variable the correct way.)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>homebrew.mxcl.cassandra</string>
    <key>EnvironmentVariables</key>
    <dict>
      <key>JAVA_HOME</key>
      <string>/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home</string>
    </dict>
    <key>ProgramArguments</key>
    <array>
      <string>/usr/local/opt/cassandra/bin/cassandra</string>
      <string>-f</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>WorkingDirectory</key>
    <string>/usr/local/var/lib/cassandra</string>
  </dict>
</plist>

This should at least persist until a cassandra update gets installed.

tranvuongthien commented 3 years ago

can you teach me step by step to fix that, i installed Cassandra and had "64-Bit Server VM warning: Cannot open file /usr/local/Cellar/cassandra/3.11.9_1/libexec/logs/gc.log due to No such file or directory" when started cassandra. I set JAVA_HOME, edit file homebrew.mxcl.cassandra.plist, but it still did'nt work, pls help me

Aqualon commented 3 years ago

@tranvuongthien that's just a warning and no error, whats the output of JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home cassandra -f for you? In the end it should say something like INFO [main] 2021-01-07 09:47:19,541 CassandraDaemon.java:650 - Startup complete

dirspb commented 3 years ago

Have the same error on Apple Silicon.

carlocab commented 3 years ago

Not quite as relevant, since Cassandra is not yet bottled for ARM, and therefore not supported. In fact, no openjdk-based formulae are supported yet for ARM.

Hopefully, that'll be rectified soon, though: https://github.com/Homebrew/homebrew-core/pull/65670

dirspb commented 3 years ago

But Azul Zulu already works brilliant on M1. Can we temporary replace openjdk@8 dependency with zulu@8 ?

carlocab commented 3 years ago

Not in homebrew/core. That's discussed somewhere in this thread: https://github.com/Homebrew/brew/issues/7857

Aqualon commented 3 years ago

Same problem still there with cassandra 3.11.10 and openjdk 1.8.0+282.

arrennbaral commented 3 years ago

I tried to install suggested as brew install --build-from-source cassandra It successfully installed, but I cannot start cassandra after the installation. I dont know if i am missing something or anybody having the same issue?

@MacBook-Pro ~ % brew install --build-from-source cassandra
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/9976a
Already downloaded: /Users/arrennbaral/Library/Caches/Homebrew/downloads/d8844da849e8898f5db143aabb6f28de2d5fe7e8d124afaa3c543a5d54b3163d--xcode.patch
==> Downloading https://cdn.azul.com/zulu/bin/zulu7.42.0.13-ca-jdk7.0.282-macosx
Already downloaded: /Users/arrennbaral/Library/Caches/Homebrew/downloads/4b249391d5268af07ee53bf92b453584ae6ed2ba6680bc5a22a6179a6cdd3f74--zulu7.42.0.13-ca-jdk7.0.282-macosx_x64.tar.gz
==> Downloading https://openjdk-sources.osci.io/openjdk8/openjdk8u282-ga.tar.xz
Already downloaded: /Users/arrennbaral/Library/Caches/Homebrew/downloads/ada8bfa0597910ef687e1b313915c0b3d81d0a75babe0de6d9e0a889b7d4caf8--openjdk8u282-ga.tar.xz
==> Downloading https://files.pythonhosted.org/packages/b2/40/4e00501c204b457f10
Already downloaded: /Users/Library/Caches/Homebrew/downloads/96184832975d570c3f54c37496b73256589ffb7c33c65edc3542bc2b474b6951--setuptools-44.1.1.zip
==> Downloading https://files.pythonhosted.org/packages/47/04/5fc6c74ad114032cd2
Already downloaded: /Users//Library/Caches/Homebrew/downloads/991138ddcf40267021cd87f35a0573287201a890bd378ccdbb122b50334b258d--futures-3.3.0.tar.gz
==> Downloading https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f4
Already downloaded: /Users/l/Library/Caches/Homebrew/downloads/e99698a932bde9f5fb8ca552923ae339984f284e1c7764df95c12175f573c0d7--six-1.15.0.tar.gz
==> Downloading https://files.pythonhosted.org/packages/ae/58/35e3f0cd290039ff86
Already downloaded: /Users//Library/Caches/Homebrew/downloads/e27d635b5d2d6c3612e7f8b8a20f7fcbe75427972caaf8809ef2ac7bbf905be2--thrift-0.9.3.tar.gz
==> Downloading https://files.pythonhosted.org/packages/0b/15/523f6008d32f05dd3c
Already downloaded: /Users//Library/Caches/Homebrew/downloads/e85631dbbf140427c0cd27288ef13e53dc194138dd4dbb7161a61fb175c1817e--cql-1.4.0.tar.gz
==> Downloading https://files.pythonhosted.org/packages/cd/22/7bf65cfd5d60f3c916
Already downloaded: /Users//Library/Caches/Homebrew/downloads/f6e2fcb9e1a53ce4304530294a61f7923d764f17e78a02d873f4203342cd2c88--cassandra-driver-3.24.0.tar.gz
==> Downloading https://www.apache.org/dyn/closer.lua?path=cassandra/3.11.10/apa
==> Downloading from https://mirrors.gigenet.com/apache/cassandra/3.11.10/apache
######################################################################## 100.0%
==> Installing dependencies for cassandra: openjdk@8
==> Installing cassandra dependency: openjdk@8
==> Patching
==> Applying xcode.patch
patching file common/autoconf/basics.m4
patching file common/autoconf/flags.m4
patching file common/autoconf/generated-configure.sh
Hunk #1 succeeded at 1897 (offset 2 lines).
Hunk #2 succeeded at 14009 (offset 1 line).
Hunk #3 succeeded at 26774 (offset 23 lines).
Hunk #4 succeeded at 26837 (offset 23 lines).
Hunk #5 succeeded at 41295 (offset 23 lines).
Hunk #6 succeeded at 41394 (offset 23 lines).
Hunk #7 succeeded at 41420 (offset 23 lines).
Hunk #8 succeeded at 41485 (offset 23 lines).
Hunk #9 succeeded at 42170 (offset 23 lines).
Hunk #10 succeeded at 42259 (offset 23 lines).
Hunk #11 succeeded at 48934 (offset 23 lines).
patching file common/autoconf/libraries.m4
patching file common/autoconf/platform.m4
patching file common/autoconf/toolchain.m4
patching file hotspot/make/bsd/makefiles/gcc.make
patching file hotspot/make/bsd/makefiles/jsig.make
patching file hotspot/src/os/aix/vm/decoder_aix.hpp
patching file hotspot/src/os/bsd/vm/decoder_machO.hpp
patching file hotspot/src/os/windows/vm/decoder_windows.hpp
patching file hotspot/src/share/vm/classfile/classLoader.hpp
patching file hotspot/src/share/vm/prims/jvmtiImpl.hpp
patching file hotspot/src/share/vm/runtime/perfData.hpp
patching file hotspot/src/share/vm/utilities/decoder.hpp
patching file hotspot/src/share/vm/utilities/decoder_elf.hpp
patching file jdk/make/lib/CoreLibraries.gmk
Hunk #1 succeeded at 409 (offset -1 lines).
Hunk #2 succeeded at 443 (offset -1 lines).
Hunk #3 succeeded at 504 (offset -1 lines).
patching file jdk/src/macosx/native/sun/osxapp/ThreadUtilities.m
==> common/autoconf/autogen.sh
==> ./configure --with-boot-jdk-jvmargs=-Duser.home=/Users/arrennbaral/Library/C
Last 15 lines from /Users/arrennbaral/Library/Logs/Homebrew/openjdk@8/02.configure:
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking size of int *... 8
configure: The tested number of bits in the target (64) differs from the number of bits expected to be found in the target (32).
configure: I'll retry after setting the platforms compiler target bits flag to -m32
checking size of int *... 0
configure: error: The tested number of bits in the target (0) differs from the number of bits expected to be found in the target (32)
configure exiting with result code 1

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
openjdk 15.0.2 https://github.com/Homebrew/homebrew-core/pull/69460
openjdk@11 11.0.10 https://github.com/Homebrew/homebrew-core/pull/69396
OpenJDK post-install fails without Xcode on M1 https://github.com/Homebrew/homebrew-core/issues/69100
Cassandra 3.11.9_1 crashes in openjdk@8 JVM https://github.com/Homebrew/homebrew-core/issues/66462
OpenJDK is somewhat broken on newer MacOS instances, console is flooded with errors when using JMeter, AdoptOpenJDK has no issues https://github.com/Homebrew/homebrew-core/issues/66953

----------------------------------------------------------
@MacBook-Pro ~ % brew services start cassandra            
Error: Formula `cassandra` is not installed.
SMillerDev commented 3 years ago

Yeah, it fails to install. Until it gets proper ARM support in Cassandra and all dependencies there's nothing we can do.

arrennbaral commented 3 years ago

Oh, I see. Thanks for your response.

BrewTestBot commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.