[
https://issues.apache.org/jira/browse/CASSANDRA-14426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457726#comment-16457726
]
ASF GitHub Bot commented on CASSANDRA-14426:
--------------------------------------------
GitHub user alexott opened a pull request:
https://github.com/apache/cassandra/pull/221
fix for CASSANDRA-14426
This commit fixes NPE when the `insert` section is missing from
user-defined profile
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/alexott/cassandra CASSANDRA-14426
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cassandra/pull/221.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #221
----
commit 403e463a81333dec232d353feb28f31611e4bb08
Author: Alex Ott <alexott@...>
Date: 2018-04-28T18:04:13Z
fix for CASSANDRA-14426
This commit fixes NPE when the `insert` section is missing from
user-defined profile
----
> cassandra-stress throws NPE if insert section isn't specified in user profile
> -----------------------------------------------------------------------------
>
> Key: CASSANDRA-14426
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14426
> Project: Cassandra
> Issue Type: Bug
> Components: Stress
> Reporter: Alex Ott
> Priority: Trivial
>
> When user profile file is used, and insert section isn't specified, then
> cassandra-stress is using default values instead.
> Since support for LWTs was added, absence of the insert section lead to
> throwing of NullPointerException when generating inserts:
> {noformat}
> java.lang.NullPointerException
> at
> org.apache.cassandra.stress.StressProfile.getInsert(StressProfile.java:546)
> at
> org.apache.cassandra.stress.StressProfile.printSettings(StressProfile.java:126)
> at
> org.apache.cassandra.stress.settings.StressSettings.lambda$printSettings$1(StressSettings.java:311)
> at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
> at
> org.apache.cassandra.stress.settings.StressSettings.printSettings(StressSettings.java:311)
> at org.apache.cassandra.stress.Stress.run(Stress.java:108)
> at org.apache.cassandra.stress.Stress.main(Stress.java:63)
> {noformat}
> Fix is trivial, and will be provided as PR
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]