Skip to content

Commit

Permalink
Corrected the spec test and renamed batch_size_warn_threshold to
Browse files Browse the repository at this point in the history
batch_size_warn_threshold_in_kb as this follows the naming convention in
the template (voxpupuli#83, voxpupuli#100).
  • Loading branch information
dallinb committed Sep 7, 2015
1 parent 511b35f commit 6a913a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$authenticator = 'AllowAllAuthenticator',
$authorizer = 'AllowAllAuthorizer',
$auto_snapshot = true,
$batch_size_warn_threshold = '5',
$batch_size_warn_threshold_in_kb = '5',
$cassandra_9822 = false,
$cassandra_yaml_tmpl = 'cassandra/cassandra.yaml.erb',
$client_encryption_enabled = false,
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/cassandra_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
it { should contain_file('/etc/cassandra.yaml').with_content(/enabled: foo/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/keystore: foo/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/keystore_password: foo/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/batch_size_warn_threshold_in_kb: '42'/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/batch_size_warn_threshold_in_kb: 42/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/cluster_name: 'foo'/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/commitlog_directory: foo/) }
it { should contain_file('/etc/cassandra.yaml').with_content(/concurrent_counter_writes: foo/) }
Expand Down
2 changes: 1 addition & 1 deletion templates/cassandra.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ column_index_size_in_kb: 64

# Log WARN on any batch size exceeding this value. 5kb per batch by default.
# Caution should be taken on increasing the size of this threshold as it can lead to node instability.
batch_size_warn_threshold_in_kb: <%= @batch_size_warn_threshold %>
batch_size_warn_threshold_in_kb: <%= @batch_size_warn_threshold_in_kb %>

# Number of simultaneous compactions to allow, NOT including
# validation "compactions" for anti-entropy repair. Simultaneous
Expand Down

0 comments on commit 6a913a8

Please sign in to comment.