cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shuler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12661) Make gc_log and gc_warn settable at runtime
Date Wed, 12 Apr 2017 04:02:41 GMT

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

Michael Shuler commented on CASSANDRA-12661:
--------------------------------------------

The new tests fail:
http://cassci.datastax.com/job/trunk_testall/1509/testReport/org.apache.cassandra.service/GCInspectorTest/ensureLogLessThanWarn/
http://cassci.datastax.com/job/trunk_testall/1509/testReport/org.apache.cassandra.service/GCInspectorTest/ensureLogLessThanWarn_compression/
{noformat}
Error Message

Expected exception: java.lang.IllegalArgumentException
Stacktrace

junit.framework.AssertionFailedError: Expected exception: java.lang.IllegalArgumentException
Standard Output

ERROR [main] 2017-04-12 02:05:31,914 SubstituteLogger.java:250 - SLF4J: stderr
INFO  [main] 2017-04-12 02:05:32,110 YamlConfigurationLoader.java:89 - Configuration location:
file:/home/automaton/cassandra/test/conf/cassandra.yaml
DEBUG [main] 2017-04-12 02:05:32,112 YamlConfigurationLoader.java:108 - Loading settings from
file:/home/automaton/cassandra/test/conf/cassandra.yaml
INFO  [main] 2017-04-12 02:05:32,995 Config.java:454 - Node configuration:[allocate_tokens_for_keyspace=null;
authenticator=null; authorizer=null; auto_bootstrap=true; auto_snapshot=true; back_pressure_enabled=false;
back_pressure_strategy=null; 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=build/test/cassandra/cdc_raw:331; cdc_total_space_in_mb=0; client_encryption_options=<REDACTED>;
cluster_name=Test Cluster; column_index_cache_size_in_kb=2; column_index_size_in_kb=4; commit_failure_policy=stop;
commitlog_compression=null; commitlog_directory=build/test/cassandra/commitlog:331; commitlog_max_compression_buffers_in_pool=3;
commitlog_periodic_queue_size=-1; commitlog_segment_size_in_mb=5; commitlog_sync=batch; commitlog_sync_batch_window_in_ms=1.0;
commitlog_sync_period_in_ms=0; commitlog_total_space_in_mb=null; compaction_large_partition_warning_threshold_mb=100;
compaction_throughput_mb_per_sec=0; concurrent_compactors=4; 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;@4c178a76;
disk_access_mode=mmap; disk_failure_policy=ignore; 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_scripted_user_defined_functions=true; enable_user_defined_functions=true; enable_user_defined_functions_threads=true;
encryption_options=null; endpoint_snitch=org.apache.cassandra.locator.SimpleSnitch; 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=build/test/cassandra/hints:331;
hints_flush_period_in_ms=10000; ideal_consistency_level=null; incremental_backups=true; 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=true; internode_authenticator=null; internode_compression=none; 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=127.0.0.1; 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=offheap_objects; 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_max_concurrent_connections=-1; native_transport_max_concurrent_connections_per_ip=-1;
native_transport_max_frame_size_in_mb=256; native_transport_max_threads=128; native_transport_port=9373;
native_transport_port_ssl=null; num_tokens=1; otc_coalescing_enough_coalesced_messages=8;
otc_coalescing_strategy=DISABLED; otc_coalescing_window_us=200; partitioner=org.apache.cassandra.dht.ByteOrderedPartitioner;
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; request_timeout_in_ms=10000; role_manager=null; 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=16; rpc_address=null;
rpc_interface=null; rpc_interface_prefer_ipv6=false; rpc_keepalive=true; saved_caches_directory=build/test/cassandra/saved_caches:331;
seed_provider=org.apache.cassandra.locator.SimpleSeedProvider{seeds=127.0.0.1}; server_encryption_options=<REDACTED>;
slow_query_log_timeout_in_ms=500; snapshot_before_compaction=false; ssl_storage_port=7001;
sstable_preemptive_open_interval_in_mb=50; start_native_transport=true; storage_port=7341;
stream_throughput_outbound_megabits_per_sec=200; streaming_connections_per_host=1; streaming_keep_alive_period_in_secs=300;
streaming_socket_timeout_in_ms=86400000; 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@fa4c865;
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=0;
write_request_timeout_in_ms=2000]
DEBUG [main] 2017-04-12 02:05:32,996 DatabaseDescriptor.java:336 - Syncing log with a batch
window of 1.0
INFO  [main] 2017-04-12 02:05:32,996 DatabaseDescriptor.java:367 - DiskAccessMode is mmap,
indexAccessMode is mmap
INFO  [main] 2017-04-12 02:05:32,997 DatabaseDescriptor.java:410 - Global memtable on-heap
threshold is enabled at 227MB
INFO  [main] 2017-04-12 02:05:32,997 DatabaseDescriptor.java:414 - Global memtable off-heap
threshold is enabled at 227MB
INFO  [main] 2017-04-12 02:05:33,379 RateBasedBackPressure.java:126 - Initialized back-pressure
with high ratio: 0.9, factor: 5, flow: FAST, window size: 2000.
INFO  [main] 2017-04-12 02:05:33,380 DatabaseDescriptor.java:678 - Back-pressure is disabled
with strategy null.
DEBUG [main] 2017-04-12 02:05:33,478 YamlConfigurationLoader.java:108 - Loading settings from
file:/home/automaton/cassandra/test/conf/cassandra.yaml
INFO  [ScheduledTasks:1] 2017-04-12 02:05:33,518 StorageService.java:130 - Overriding RING_DELAY
to 1000ms
{noformat}

> Make gc_log and gc_warn settable at runtime
> -------------------------------------------
>
>                 Key: CASSANDRA-12661
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12661
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Edward Capriolo
>            Assignee: Edward Capriolo
>            Priority: Minor
>
> Changes:
> * Move gc_log_threshold_in_ms and gc_warn_threshold_in_ms close together in the config
> * rename variables to match properties
> * add unit tests to ensure hybration
> * add unit tests to ensure variables are set propertly
> * minor perf (do not consturct string from buffer f not logging)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message