av9ash/GitBugs huggingface dataset:
Bug: Test Failure: UNIT org.apache.cassandra.distributed.test.ring.BootstrapTest.bootstrapTest
Status: Resolved
Priority: Normal
Resolution: Duplicate
Created: 24/Jan/22 20:22
Resolved: 25/Jan/22 16:53

[https://ci-cassandra.apache.org/job/Cassandra-trunk/904/testReport/org.apache.cassandra.distributed.test.ring/BootstrapTest/bootstrapTest/]

 
Failed 2 times in the last 4 runs. Flakiness: 100%, Stability: 50%
h3. Error Message

java.lang.RuntimeException: Didn't receive schemas for all known versions within the timeout. Use -Dcassandra.skip_schema_check=true to skip this check.
h3. Stacktrace

java.lang.RuntimeException: java.lang.RuntimeException: Didn't receive schemas for all known versions within the timeout. Use -Dcassandra.skip_schema_check=true to skip this check. at org.apache.cassandra.distributed.action.GossipHelper$BootstrapAction.lambda$accept$1afde2a$1(GossipHelper.java:271) at org.apache.cassandra.distributed.impl.IsolatedExecutor.lambda$async$20(IsolatedExecutor.java:151) at org.apache.cassandra.concurrent.FutureTask.call(FutureTask.java:47) at org.apache.cassandra.concurrent.FutureTask.run(FutureTask.java:57) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:829) Suppressed: java.lang.RuntimeException: java.util.concurrent.TimeoutException at org.apache.cassandra.utils.Throwables.maybeFail(Throwables.java:73) at org.apache.cassandra.utils.FBUtilities.waitOnFutures(FBUtilities.java:497) at org.apache.cassandra.distributed.impl.AbstractCluster.close(AbstractCluster.java:930) at org.apache.cassandra.distributed.test.ring.BootstrapTest.bootstrapTest(BootstrapTest.java:53) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Caused by: java.util.concurrent.TimeoutException at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021) at org.apache.cassandra.utils.FBUtilities.waitOnFutures(FBUtilities.java:489) Caused by: java.lang.RuntimeException: Didn't receive schemas for all known versions within the timeout. Use -Dcassandra.skip_schema_check=true to skip this check. at org.apache.cassandra.service.StorageService.waitForSchema(StorageService.java:1038) at org.apache.cassandra.service.StorageService.prepareForBootstrap(StorageService.java:1700) at org.apache.cassandra.distributed.action.GossipHelper$BootstrapAction.lambda$accept$1afde2a$1(GossipHelper.java:261)
Bug: DOC - Incorrect CQL version for Docker cqlsh command in Quickstart guide
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 25/Mar/22 09:09
Resolved: 31/May/22 08:38

Based on the [Quickstart guide|https://cassandra.apache.org/_/quickstart.html], I ran the following commands:

{noformat}
> docker network create cassandra

> docker run --rm -d --name cassandra --hostname cassandra --network cassandra cassandra

> docker run -it --network cassandra -v "$(pwd)/data.cql:/scripts/data.cql" -e CQLSH_HOST=cassandra -e CQLSH_PORT=9042 nuvo/docker-cqlsh sh
{noformat}

On executing the {{cqlsh}}, I got the following error:

{noformat}
Connection error: ('Unable to connect to any servers', \{'172.18.0.2': ProtocolError("cql_version '3.3.1' is not supported by remote (w/ native protocol). Supported versions: [u'3.4.5']",)})
{noformat}

{{nuvo/docker-cqlsh}} uses version {{3.3.1}} and the server supports {{3.4.5}}.

The documentation is broken in current state and needs to be fixed.
Bug: Constants$Literal.getText does not escape ' chars
Status: Resolved
Priority: Normal
Resolution: Not A Problem
Created: 05/Jan/22 13:00
Resolved: 05/Jan/22 13:33

The [current implementation|https://sourcegraph.com/github.com/apache/cassandra@b83d722b99de79d131f58512564b901b11907182/-/blob/src/java/org/apache/cassandra/cql3/Constants.java?L358-361] is only adding single quotes around the text:
{code:java}
public String getText()
{
    return type == Type.STRING ? String.format("'%s'", text) : text;
}
{code}
So, getText for this string:
{code:java}
'this is a ''quoted'' word'
{code}
would return
{code:java}
'this is a 'quoted' word'
{code}
Maybe something like this would fix it, if necessary:
{code:java}
public String getText()
{
    return type == Type.STRING ? String.format("'%s'", StringUtils.replace(text, "'", "''")) : text;
}
{code}
Bug: Fail build or warn when closeable reference is not closed in tests
Status: Triage Needed
Priority: Normal
Created: 22/Feb/22 11:58

I came across a recent test stuck issue which was caused by an {{Autocloseable}} object not being closed properly, leaking some references and ultimately causing a deadlock.

To prevent similar issues in the future we should add a check that fail or warn when references are not closed during tests.

If such check already exists we should look into fixing violations.
Bug: Deprecate JavaScript UDF
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 23/Jan/22 17:39
Resolved: 25/Feb/22 17:02

There was a [consensus |https://lists.apache.org/thread/mnxh94lg9v94bfntq88051z3ww16q2fk] that JS UDF can be deprecated and removed with the next major release. 

As part of this ticket we can add:
 * Warning to the users when they use them In 4.0.2
 * Docs update
 * Twitter update
 * Announcement to the user mailing list
Bug: Reduce runtime of long running unit tests
Status: Open
Priority: Normal
Created: 10/Feb/22 17:22

A profile of the unit tests in our system indicates that 2.62% of our tests by count are taking up 20.4% of our time. See [here|https://docs.google.com/spreadsheets/d/1-tkH-hWBlEVInzMjLmJz4wABV6_mGs-2-NNM2XoVTcA/edit#gid=1501761592]

 

It's probably worth a little time to dig into some of those longer running tests and see how we can speed them up. This is an exercise we've engaged in repeatedly over the years with good results; we should also consider automating this test profiling process as well as extend it beyond just unit testing into in-jvm dtests and python dtests as well.
Bug: Add support for EXPLAIN statements
Status: Triage Needed
Priority: Normal
Created: 14/Feb/22 09:44

We should provide users a way to understand how their query will be executed and some information on the amount of work that will be performed.
Explain statements are the most common way to do that.
A CEP Draft has been open for that: [(DRAFT) CEP-4: Explain|https://docs.google.com/document/d/1s_gc4TDYdDbHnYHHVxxjqVVUn3MONUqG6W2JehnC11g/edit]. This draft propose to add support for {{EXPLAIN}} and {{EXPLAIN ANALYZE}} but I believe that we should split the work in 2 parts because a simple {{EXPLAIN}} would already provide relevant information.

To complete this work I believe that the following steps will be required:
* Rework and submit the CEP
* Add missing statistics
* Implements the logic behind the EXPLAIN statements
Bug: Add support for Alter materialized View in CQL3 statements
Status: Triage Needed
Priority: Normal
Created: 17/Mar/22 07:41

Add support for ALTER MATERIALIZED VIEW stmts in CQL3. 

Make changes to cql3handling.py and ensure correctness

Acceptance Criteria:
 * should have the similar semantics as in parser.q antlr
 * tests should run in python3 venv locally . refer: [development testing wiki| https://cassandra.apache.org/_/development/testing.html ]
 * check if additional tests need to be added in cassandra-dtests wrt to this change
Bug: Add support for vnodes in jvm-dtest
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 01/Feb/22 18:33
Resolved: 12/Apr/22 19:01

Right now python dtests need to keep running after being ported to jvm-dtests as vnode support is not present, to fully deprecate the python dtests, we need vnode support in jvm-dtest.

Sadly, to add support we need to break binary compatibility, but can maintain source compatibility… so will need to bump every jar across every branch (mostly due to TokenSupplier)
Bug: Test Failure: org.apache.cassandra.db.ScrubTest.testScrubCorruptedCounterRow
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 27/Jan/22 17:58
Resolved: 08/Aug/22 13:04

Failed 10 times in the last 14 runs. Flakiness: 61%, Stability: 28%

Error Message
Timeout occurred. Please note the time in the report does not reflect the time until the timeout.

{code}
Stacktrace
junit.framework.AssertionFailedError: Timeout occurred. Please note the time in the report does not reflect the time until the timeout.
	at java.util.Vector.forEach(Vector.java:1277)
	at java.util.Vector.forEach(Vector.java:1277)
	at java.util.Vector.forEach(Vector.java:1277)
	at jdk.nashorn.internal.scripts.Script$3$\^eval\_.:program(<eval>:13)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
	at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
	at java.util.Vector.forEach(Vector.java:1277)
{code}
Bug: Test Failure: org.apache.cassandra.net.ProxyHandlerConnectionsTest.suddenDisconnect-cdc
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 26/Jan/22 17:49
Resolved: 21/Jun/22 01:21

https://ci-cassandra.apache.org/job/Cassandra-4.0/316/testReport/org.apache.cassandra.net/ProxyHandlerConnectionsTest/suddenDisconnect_cdc/

See same failure on org.apache.cassandra.net.ProxyHandlerConnectionsTest.suddenDisconnect-compression as well

Failed 1 times in the last 11 runs. Flakiness: 10%, Stability: 90%

{code}
Stacktrace
java.util.concurrent.TimeoutException
	at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021)
	at org.apache.cassandra.net.ProxyHandlerConnectionsTest.waitForCondition(ProxyHandlerConnectionsTest.java:279)
	at org.apache.cassandra.net.ProxyHandlerConnectionsTest.lambda$suddenDisconnect$29(ProxyHandlerConnectionsTest.java:237)
	at org.apache.cassandra.net.ProxyHandlerConnectionsTest.doTestManual(ProxyHandlerConnectionsTest.java:385)
	at org.apache.cassandra.net.ProxyHandlerConnectionsTest.testManual(ProxyHandlerConnectionsTest.java:344)
	at org.apache.cassandra.net.ProxyHandlerConnectionsTest.suddenDisconnect(ProxyHandlerConnectionsTest.java:225)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Standard Output
DEBUG [main] 2022-01-23 13:09:13,779 InternalLoggerFactory.java:63 - Using SLF4J as the default logging framework
DEBUG [main] 2022-01-23 13:09:13,805 PlatformDependent0.java:417 - -Dio.netty.noUnsafe: false
DEBUG [main] 2022-01-23 13:09:13,805 PlatformDependent0.java:897 - Java version: 8
DEBUG [main] 2022-01-23 13:09:13,807 PlatformDependent0.java:130 - sun.misc.Unsafe.theUnsafe: available
DEBUG [main] 2022-01-23 13:09:13,808 PlatformDependent0.java:154 - sun.misc.Unsafe.copyMemory: available

...[truncated 417667 chars]...
ol$Initiate.maybeDecode(HandshakeProtocol.java:167)
	at org.apache.cassandra.net.InboundConnectionInitiator$Handler.initiate(InboundConnectionInitiator.java:242)
	at org.apache.cassandra.net.InboundConnectionInitiator$Handler.decode(InboundConnectionInitiator.java:235)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:508)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:447)
	... 29 common frames omitted
{code}
Bug: Test Failure: org.apache.cassandra.db.SinglePartitionSliceCommandTest.testPartitionDeletionRowDeletionTie
Status: Resolved
Priority: Normal
Resolution: Duplicate
Created: 21/Mar/22 15:24
Resolved: 03/Jun/22 14:57

Intermittent failure on {{org.apache.cassandra.db.SinglePartitionSliceCommandTest#testPartitionDeletionRowDeletionTie}} for trunk:

https://ci-cassandra.apache.org/job/Cassandra-trunk/1015/testReport/org.apache.cassandra.db/SinglePartitionSliceCommandTest/testPartitionDeletionRowDeletionTie_2/

{code}
Error Message
Expected [Row[info=[ts=11] ]: c=1 | [v=1 ts=11]] but got [Row[info=[ts=11] del=deletedAt=10, localDeletion=1647395476 ]: c=1 | [v=1 ts=11]] expected: java.util.ArrayList<[[[v=1 ts=11]]]> but was: java.util.ArrayList<[[[v=1 ts=11]]]>
Stacktrace
junit.framework.AssertionFailedError: Expected [Row[info=[ts=11] ]: c=1 | [v=1 ts=11]] but got [Row[info=[ts=11] del=deletedAt=10, localDeletion=1647395476 ]: c=1 | [v=1 ts=11]] expected: java.util.ArrayList<[[[v=1 ts=11]]]> but was: java.util.ArrayList<[[[v=1 ts=11]]]>
	at org.apache.cassandra.db.SinglePartitionSliceCommandTest.testPartitionDeletionRowDeletionTie(SinglePartitionSliceCommandTest.java:395)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Standard Output
INFO  [main] 2022-03-16 01:57:57,447 YamlConfigurationLoader.java:103 - Configuration location: file:/home/cassandra/cassandra/test/conf/cassandra.yaml
DEBUG [main] 2022-03-16 01:57:57,452 YamlConfigurationLoader.java:124 - Loading settings from file:/home/cassandra/cassandra/test/conf/cassandra.yaml
INFO  [main] 2022-03-16 01:57:57,634 Config.java:1119 - Node configuration:[allocate_tokens_for_keyspace=null; allocate_tokens_for_local_replication_factor=null; allow_extra_insecure_udfs=false; all
...[truncated 192994 chars]...
ild/test/cassandra/data/system/local-7ad54392bcdd35a684174e047860b377/nb-37-big-Data.db:level=0, ]
DEBUG [MemtableFlushWriter:2] 2022-03-16 01:58:04,313 ColumnFamilyStore.java:1249 - Flushed to [BigTableReader(path='/home/cassandra/cassandra/build/test/cassandra/data/system/local-7ad54392bcdd35a684174e047860b377/nb-40-big-Data.db')] (1 sstables, 4.976KiB), biggest 4.976KiB, smallest 4.976KiB
INFO  [main] 2022-03-16 01:58:04,314 ColumnFamilyStore.java:2444 - Truncate of ks.tbl_slices is complete
{code}

Failures can also be hit with CircleCI test multiplexer:
https://app.circleci.com/pipelines/github/adelapena/cassandra/1387/workflows/0f37a726-1dc2-4584-86f9-e99ecc40f551

CircleCI results show failures on three separate assertions, with a ~3% flakiness for the entire suite.

The same test looks ok in 4.0, as suggested by Butler and this repeated Circle run.
Bug: CVE-2021-44521: Apache Cassandra: Remote code execution for scripted UDFs
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 07/Feb/22 11:45
Resolved: 11/Feb/22 17:36

When running Apache Cassandra with the following configuration:

enable_user_defined_functions: true
enable_scripted_user_defined_functions: true
enable_user_defined_functions_threads: false 

it is possible for an attacker to execute arbitrary code on the host. The attacker would need to have enough permissions to create user defined functions in the cluster to be able to exploit this. Note that this configuration is documented as unsafe, and will continue to be considered unsafe after this CVE.

This issue is being tracked as CASSANDRA-17352

Mitigation:

Set `enable_user_defined_functions_threads: true` (this is default)
or
3.0 users should upgrade to 3.0.26
3.11 users should upgrade to 3.11.12
4.0 users should upgrade to 4.0.2

Credit:

This issue was discovered by Omer Kaspi of the JFrog Security vulnerability research team.
Bug: Fix failing test - dtest-upgrade.upgrade_internal_auth_test.TestAuthUpgrade.test_upgrade_legacy_tabl
Status: Open
Priority: Normal
Created: 31/Jan/22 15:52

Failed 6 times in the last 16 runs. Flakiness: 60%, Stability: 62%
Error Message

ccmlib.node.TimeoutError: 26 Jan 2022 22:48:51 [node1] after 120.17/120 seconds Missing: ['Listening for thrift clients...'] not found in system.log:  Head: INFO  [main] 2022-01-26 22:46:51,840 YamlConfigura  Tail: ...ing legacy permissions data INFO  [OptionalTasks:1] 2022-01-26 22:47:08,405 CassandraAuthorizer.java:444 - Completed conversion of legacy permissions
Bug: Update python test framework from nose to pytest
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 26/Jan/22 03:51
Resolved: 21/Feb/22 17:35

I had trouble trying to install and run the python nose test from pip (nosetest not found).

According to the homepage of nose at [https://nose.readthedocs.io/en/latest/]
h1. _Note to Users_

_Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using [Nose2|https://github.com/nose-devs/nose2], [py.test|http://pytest.org/], or just plain unittest/unittest2._

 

Upgrading to pytest is likely the least effort.
Bug: WEBSITE - Descriptions of Slack channels in Community section is incorrect
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 27/Mar/22 11:34
Resolved: 01/Jun/22 13:11

https://cassandra.apache.org/_/community.html#how-to-contribute

Among other things, this says #cassandra-dev is for results of automated builds.

 !Screenshot_20220327_063323.png|width=500!
Bug: Antora site.yml in-tree so in-tree html can be generated (again)
Status: Triage Needed
Priority: Normal
Created: 15/Jan/22 16:27

With the migration of the doc to asciidoc and antora we (intentionally) lost the ability to generate in-tree html via `ant gen-doc`.

This was intentional as our first priority was publishing the docs to the website.

But it is also beneficial to have plain html docs bundled into our packages (tar, deb, rpm, docker, etc), so tackling this was expected and planned for a later date.
Bug: generate in-tree doc/antora.yml
Status: Open
Priority: Normal
Created: 11/Feb/22 11:53

This file contains only metadata that can be auto-generated. 

Currently we can't build the website with
```
ANTORA_CONTENT_SOURCES_CASSANDRA_TAGS="cassandra-4.0.1 cassandra-3.11.12"
```

because the antora.yml files in those tags are clashing with their release branches.
Bug: DOC - Hints settings table misaligned in hints.adoc 
Status: Resolved
Priority: Normal
Resolution: Duplicate
Created: 16/Mar/22 08:07
Resolved: 24/Mar/22 08:12

I noticed a table misalignment in the documentation and thought I'd fix it. See the PR here: [https://github.com/apache/cassandra/pull/1424]

 

!https://user-images.githubusercontent.com/715810/150949851-10bd0264-9db5-44a8-bcb8-276a94801b5b.png!
Bug: DESCRIBE KEYSPACE / MATERIALIZED VIEW generates invalid CQL for views
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 18/Jan/22 11:58
Resolved: 28/Mar/22 12:31

Materialized views do not allow default_time_to_live option in CQL (see CASSANDRA-12868).

But, if the MV was created without this option, DESCRIBE KEYSPACE / MATERIALIZED VIEW command generates CQL that includes it.

E.g.
{code:java}
CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};

USE test;

CREATE TABLE test_table(
  id text,
  date text,
  col1 text,
  col2 text,
  PRIMARY KEY(id,date)
) WITH default_time_to_live = 60 AND CLUSTERING ORDER BY (date DESC);

CREATE MATERIALIZED VIEW test_view AS
SELECT id, date, col1
FROM test_table
WHERE id IS NOT NULL AND date IS NOT NULL
PRIMARY KEY(id, date);{code}
It is OK. 
{code:java}
DESCRIBE MATERIALIZED VIEW test_view; {code}
returns the same CQL + all default options:
{code:java}
CREATE MATERIALIZED VIEW test.test_view AS
    SELECT id, date, col1
    FROM test.test_table
    WHERE id IS NOT NULL AND date IS NOT NULL
    PRIMARY KEY (id, date)
 WITH CLUSTERING ORDER BY (date ASC)
    AND additional_write_policy = '99p'
    AND bloom_filter_fp_chance = 0.01
    AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
    AND cdc = false
    AND comment = ''
    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
    AND compression = {'chunk_length_in_kb': '16', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
    AND crc_check_chance = 1.0
    AND default_time_to_live = 0
    AND extensions = {}
    AND gc_grace_seconds = 864000
    AND max_index_interval = 2048
    AND memtable_flush_period_in_ms = 0
    AND min_index_interval = 128
    AND read_repair = 'BLOCKING'
    AND speculative_retry = '99p';
{code}
Note the 'default_time_to_live = 0' clause! If this veiw is dropped, re-creating it using DESCRIBE output would fail with 
{noformat}
Cannot set default_time_to_live for a materialized view. Data in a materialized view always expire at the same time than the corresponding data in the parent table.{noformat}

+Additional Information for newcomers:+

The code writting the table parameters is in {{TableParams.appendCqlTo}} and is called through {{TableMetadata.appendTableOptions}}. Those method will need to have a new parameter specifying if the call is for a table or a materialized view.
Some unit test need to be adapted in {{DescribeStatementTest}}
Bug: Fix org.apache.cassandra.distributed.test.trackwarnings.TombstoneCountWarningTest.failThresholdSinglePartition
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 08/Jan/22 23:15
Resolved: 06/Jun/22 20:34

org.apache.cassandra.distributed.test.trackwarnings.TombstoneCountWarningTest.failThresholdSinglePartition failed [here|https://jenkins-cm4.apache.org/job/Cassandra-devbranch/1354/testReport/junit/org.apache.cassandra.distributed.test.trackwarnings/TombstoneCountWarningTest/failThresholdSinglePartition/]

I didn't find any other occurrences but seems to me legit failure.

CC [~dcapwell] as I think you were working on those and probably you will make better assessment than me. :)
Bug: JVM Crashing with SIGSEGV for Cassandra 3.11.3
Status: Triage Needed
Priority: Normal
Created: 17/Feb/22 12:39

I am running a Cassandra 3.11.3 cluster with latest Corretto-8 and seeing JVM crashes with SIGSEGV signal at random intervals across various Cassandra nodes. This crash seems to happen more frequently while I am doing rolling restarts on the cluster.

I am attaching the JVM error report for the crashes that are observed here in this case. [^hs_err.txt]


Looking at the error report, it appears that the problematic frame is {*}binarySearch{*}, which ultimately calls [this|https://github.com/apache/cassandra/blob/cassandra-3.11.3/src/java/org/apache/cassandra/utils/memory/MemoryUtil.java#L175]. As per my knowledge, it is not recommended to use the sun.misc.Unsafe outside the JDK. Could you please advice here.

Thanks.
Bug: Update cqlsh version in 4.1
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 14/Mar/22 11:12
Resolved: 18/Mar/22 11:50

The cqlsh in version 4.1 has had several important internal changes to credentials management and removing compatibility with Python2.  Therefore the version should be incremented; e.g from 6.0.0 to 6.1.0 or similar.