Skip to content

Commit

Permalink
Replace type=int in ini files
Browse files Browse the repository at this point in the history
As mentioned in ElektraInitiative#4060, `type=int` is deprecated and should be replaced everywhere. Some files slipped and this aims to fix them as well
  • Loading branch information
sedadas committed Dec 21, 2021
1 parent 6b7f6de commit 1f1d0b2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion doc/CONTRACT.ini
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ description = Load plugins as given (with arguments as in "kdb mount").


[infos/status]
type = vector<int enum>
type = vector<long enum>
{"default", 64000}, ; will be added by the build system for KDB_DEFAULT_STORAGE and KDB_DEFAULT_RESOLVER
{"recommended", 32000}, ; in case of doubt, use this plugin
{"productive", 8000}, ; actively used in productive environments, not only by maintainer
Expand Down
80 changes: 40 additions & 40 deletions examples/spec/cassandra.ini
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ check/type = string
;check/validation = ^(|0|[1-9]\d*)$
;check/validation/match = LINE
;check/validation/message = "Valid values are either 'auto' (omitting the value) or a value greater 0"
default =
default =
description = "
Maximum size of the native protocol prepared statement cache
Expand Down Expand Up @@ -417,7 +417,7 @@ check/type = string
;check/validation = ^(|0|[1-9]\d*)$
;check/validation/match = LINE
;check/validation/message = "Valid values are either 'auto' (omitting the value) or a positive number. Set to 0 to disable key cache"
default =
default =
description = "
Maximum size of the Thrift prepared statement cache
Expand All @@ -444,7 +444,7 @@ description = "
[key_cache_keys_to_save]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Number of keys from the key cache to save"

Expand Down Expand Up @@ -498,7 +498,7 @@ check/type = string
;check/validation = ^(|0|[1-9]\d*)$
;check/validation/match = LINE
;check/validation/message = "Valid values are either 'auto' (omitting the value) or a positive number. Set to 0 to disable key cache"
default =
default =
description = "
Maximum size of the counter cache in memory.
Expand Down Expand Up @@ -527,7 +527,7 @@ description = "
[counter_cache_keys_to_save]
;type = unsigned_long
check/type = any
default =
default =
description = "
Number of keys from the counter cache to save
Disabled by default, meaning all keys are going to be saved"
Expand All @@ -546,8 +546,8 @@ check/enum/#0 = periodic
check/enum/#1 = batch
default = periodic
description = "
commitlog_sync may be either 'periodic' or 'batch.''
commitlog_sync may be either 'periodic' or 'batch.''
When in batch mode, Cassandra won't ack writes until the commit log
has been fsynced to disk. It will wait
commitlog_sync_batch_window_in_ms milliseconds between fsyncs.
Expand Down Expand Up @@ -609,7 +609,7 @@ description = "
constructor that takes a Map<String, String> of parameters will do."

[seed_provider/#0/parameters]
description = "Addresses of hosts that are deemed contact points.
description = "Addresses of hosts that are deemed contact points.
Cassandra nodes use this list of hosts to find each other and learn
the topology of the ring. You must change this if you are running
multiple nodes!"
Expand Down Expand Up @@ -663,7 +663,7 @@ description = "
[file_cache_size_in_mb]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Maximum memory to use for sstable chunk cache and buffer pooling.
32MB of this are reserved for pooling buffers, the rest is used as an
Expand Down Expand Up @@ -699,7 +699,7 @@ description = "
[memtable_heap_space_in_mb]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Total permitted memory to use for memtables. Cassandra will stop
accepting writes when the limit is exceeded until a flush completes,
Expand All @@ -709,7 +709,7 @@ description = "
[memtable_offheap_space_in_mb]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Total permitted memory to use for memtables. Cassandra will stop
accepting writes when the limit is exceeded until a flush completes,
Expand All @@ -719,7 +719,7 @@ description = "
[memtable_cleanup_threshold]
;type = float
check/type = float
default =
default =
description = "
memtable_cleanup_threshold is deprecated. See the comments on memtable_flush_writers
for more information.
Expand All @@ -736,7 +736,7 @@ check/enum = #2
check/enum/#0 = heap_buffers
check/enum/#1 = offheap_buffers
check/enum/#2 = offheap_objects
default =
default =
description = "
Specify the way Cassandra allocates and manages memtable memory.
Options are:
Expand All @@ -753,7 +753,7 @@ description = "
[commitlog_total_space_in_mb]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Total space to use for commit logs on disk.
Expand Down Expand Up @@ -795,7 +795,7 @@ description = "
[cdc_total_space_in_mb]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Total space to use for change-data-capture logs on disk.
Expand All @@ -815,7 +815,7 @@ description = "
[index_summary_capacity_in_mb]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
A fixed memory pool size in MB for for SSTable index summaries. If the memory usage of
all index summaries exceeds this limit, SSTables with low read rates will
Expand Down Expand Up @@ -913,7 +913,7 @@ description = "
;type = string
check/type = string
check/ipaddr =
default =
default =
description = "
Address to broadcast to other Cassandra nodes
Leaving this blank will set it to the same value as listen_address"
Expand Down Expand Up @@ -1097,7 +1097,7 @@ description = "
[rpc_min_threads]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Uncomment rpc_min|max_thread to set request pool size limits.
Expand All @@ -1111,7 +1111,7 @@ description = "
[rpc_max_threads]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Uncomment rpc_min|max_thread to set request pool size limits.
Expand All @@ -1125,21 +1125,21 @@ description = "
[rpc_send_buff_size_in_bytes]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
activate this to set socket buffer sizes on rpc connections"

[rpc_recv_buff_size_in_bytes]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
activate this to set socket buffer sizes on rpc connections"

[internode_send_buff_size_in_bytes]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Uncomment to set socket buffer size for internode communication
Note that when setting this, the buffer size is limited by net.core.wmem_max
Expand All @@ -1154,7 +1154,7 @@ description = "
[internode_recv_buff_size_in_bytes]
;type = unsigned_long
check/type = unsigned_long
default =
default =
description = "
Uncomment to set socket buffer size for internode communication
Note that when setting this, the buffer size is limited by net.core.wmem_max
Expand Down Expand Up @@ -1193,7 +1193,7 @@ check/type = boolean
default = true
description = "
Whether or not a snapshot is taken of the data before keyspace truncation
or dropping of column families. The STRONGLY advised default of true
or dropping of column families. The STRONGLY advised default of true
should be used to provide data safety. If you set this flag to false, you will
lose data on truncation or drop."

Expand Down Expand Up @@ -1230,7 +1230,7 @@ description = "
;type = unsigned_long
check/type = unsigned_long
;check/range = 2-8
default =
default =
description = "
Number of simultaneous compactions to allow, NOT including
validation 'compactions' for anti-entropy repair. Simultaneous
Expand All @@ -1240,7 +1240,7 @@ description = "
fine and if you experience problems with compaction running too
slowly or too fast, you should look at
compaction_throughput_mb_per_sec first.
If your data directories are backed by SSD, you should increase this
to the number of cores."

Expand All @@ -1263,7 +1263,7 @@ default = 50
description = "
When compacting, the replacement sstable(s) can be opened before they
are completely written, and used in place of the prior sstables for
any range that has been written. This helps to smoothly transfer reads
any range that has been written. This helps to smoothly transfer reads
between the sstables, reducing page cache churn and keeping hot rows hot"

[stream_throughput_outbound_megabits_per_sec]
Expand Down Expand Up @@ -1355,7 +1355,7 @@ description = "
Enable operation timeout information exchange between nodes to accurately
measure request timeouts. If disabled, replicas will assume that requests
were forwarded to them instantly by the coordinator, which means that
under overload conditions we will waste that much extra time processing
under overload conditions we will waste that much extra time processing
already-timed-out requests.
Warning: before enabling this property make sure to ntp is installed
Expand Down Expand Up @@ -1453,7 +1453,7 @@ description = "
[dynamic_snitch_update_interval_in_ms]
;type = unsigned_long
check/type = unsigned_long
default = 100
default = 100
description = "
controls how often to perform the more expensive part of host score
calculation"
Expand All @@ -1469,7 +1469,7 @@ description = "
[dynamic_snitch_badness_threshold]
;type = float
check/type = float
default = 0.1
default = 0.1
description = "
if set greater than zero and read_repair_chance is < 1.0, this will allow
'pinning' of replicas to hosts in order to increase cache capacity.
Expand Down Expand Up @@ -1499,12 +1499,12 @@ description = "
[request_scheduler_options/throttle_limit]
;type = unsigned_long
check/type = unsigned_long
default = 80
default = 80

[request_scheduler_options/default_weight]
;type = unsigned_long
check/type = unsigned_long
default = 5
default = 5

[request_scheduler_options/weights/_]
;type = unsigned_long
Expand Down Expand Up @@ -1683,21 +1683,21 @@ description = "
[tracetype_query_ttl]
;type = unsigned_long
check/type = unsigned_long
default = 86400
default = 86400
description = "
TTL for different trace types used during logging of the repair process."

[tracetype_repair_ttl]
;type = unsigned_long
check/type = unsigned_long
default = 604800
default = 604800
description = "
TTL for different trace types used during logging of the repair process."

[gc_log_threshold_in_ms]
;type = unsigned_long
check/type = unsigned_long
default = 200
default = 200
description = "
Cassandra logs GC Pauses greater than 200 ms at INFO level
This threshold can be adjusted to minimize logging if necessary"
Expand Down Expand Up @@ -1766,7 +1766,7 @@ description = "# Enables encrypting data at-rest (on disk). Different key provid
[transparent_data_encryption_options/chunk_length_kb]
;type = unsigned_long
check/type = unsigned_long
default = 64
default = 64
description = "# Enables encrypting data at-rest (on disk). Different key providers can be plugged in, but the default reads from
a JCE-style keystore. A single keystore can hold multiple keys, but the one referenced by
the 'key_alias' is the only key that will be used for encrypt opertaions; previously used keys
Expand Down Expand Up @@ -2032,15 +2032,15 @@ description = "# How many microseconds to wait for coalescing. For fixed strateg
for coalescing to be enabled."

[otc_coalescing_enough_coalesced_messages]
;type = unsigned_int
check/type = unsigned_int
;type = unsigned_long
check/type = unsigned_long
;check/range = 3-127
default = 8
description = "# Do not try to coalesce messages if we already got that many messages. This should be more than 2 and less than 128."

[otc_backlog_expiration_interval_ms]
;type = unsigned_int
check/type = unsigned_int
;type = unsigned_long
check/type = unsigned_long
default = 200
description = "
How many milliseconds to wait between two expiration runs on the backlog (queue) of the OutboundTcpConnection.
Expand Down

0 comments on commit 1f1d0b2

Please sign in to comment.