diff --git a/.build/build-rat.xml b/.build/build-rat.xml
new file mode 100644
index 0000000000..363f6ec4cb
--- /dev/null
+++ b/.build/build-rat.xml
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.circleci/config-2_1.yml b/.circleci/config-2_1.yml
index 77142c9b85..99e9c20707 100644
--- a/.circleci/config-2_1.yml
+++ b/.circleci/config-2_1.yml
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
version: 2.1
default_env_vars: &default_env_vars
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 069ca868c2..22b4524ce4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
version: 2
jobs:
j8_jvm_upgrade_dtests:
diff --git a/.circleci/generate.sh b/.circleci/generate.sh
index d49545c91f..f77f2598d9 100755
--- a/.circleci/generate.sh
+++ b/.circleci/generate.sh
@@ -1,4 +1,21 @@
#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
BASEDIR=`dirname $0`
diff --git a/.circleci/readme.md b/.circleci/readme.md
index 29fbd0899f..1ceeff0725 100644
--- a/.circleci/readme.md
+++ b/.circleci/readme.md
@@ -1,3 +1,23 @@
+
+
# CircleCI config files
## Switching to high resource settings
diff --git a/.gitignore b/.gitignore
index 8754b17f60..cd668aeb4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ logs/
data/
conf/hotspot_compiler
doc/cql3/CQL.html
+doc/build/
lib/
!lib/cassandra-driver-internal-only-*.zip
@@ -72,3 +73,7 @@ doc/source/tools/nodetool
# Python virtual environment
venv/
+
+# build-scripts will put cassandra-builds into the directory
+cassandra-builds/
+cassandra-dtest/
diff --git a/.rat-excludes b/.rat-excludes
deleted file mode 100644
index 6df36a5e6a..0000000000
--- a/.rat-excludes
+++ /dev/null
@@ -1,33 +0,0 @@
-**/*.avpr
-debian/**
-.classpath
-.rat-excludes
-**/.project
-**/.pydevproject
-CHANGES.txt
-README.asc
-.git/**
-**/*.json
-**/*.patch
-interface/*/gen-*/**
-src/gen-java/**
-build/**
-lib/licenses/*.txt
-.settings/**
-**/cassandra.yaml
-**/cassandra-topology.yaml
-**/metrics-reporter-config-sample.yaml
-**/*.db
-.externalToolBuilders/**
-test/data/serialization/*/*
-**/*.wpr
-doc/**
-build.properties.default
-test/data/**
-examples/triggers/build.xml
-examples/triggers/conf/*
-examples/hadoop_word_count/conf/log4j.properties
-pylib/cqlshlib/test/**
-src/resources/org/apache/cassandra/config/version.properties
-conf/hotspot_compiler
-**/*-example.yaml
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0a938166d8..ac12fb3cf4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,3 +1,23 @@
+
+
# Apache Cassandra and Pull Requests
Apache Cassandra doesn't use GitHub pull requests as part of the development process.
diff --git a/TESTING.md b/TESTING.md
index b6e27aafc4..0f25743f92 100644
--- a/TESTING.md
+++ b/TESTING.md
@@ -1,3 +1,23 @@
+
+
The goal of this document is to establish guidelines on writing tests that drive incremental improvement of the test coverage and testability of
Cassandra, without overly burdening day to day work. While not every point here will be immediately practical to implement or relevant for every
contribution, it errs on the side of not making rules out of potential exceptions. It provides guidelines on test scope, style, and goals, as
diff --git a/build-shaded-dtest-jar.sh b/build-shaded-dtest-jar.sh
index b35ec4767a..72f0d68e6b 100755
--- a/build-shaded-dtest-jar.sh
+++ b/build-shaded-dtest-jar.sh
@@ -1,4 +1,21 @@
#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
set -xe
diff --git a/build.xml b/build.xml
index 2fddbb0016..2b0a34526b 100644
--- a/build.xml
+++ b/build.xml
@@ -887,7 +887,7 @@
-
@@ -1216,43 +1216,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1758,37 +1721,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Unknown licenses: See build/rat-report.log.
-
-
-
- RAT: invoking addLicense to write missing headers
-
-
-
-
-
-
-
-
@@ -2208,4 +2140,5 @@
+
diff --git a/conf/cassandra.yaml b/conf/cassandra.yaml
index c605671586..ec15f1f40b 100644
--- a/conf/cassandra.yaml
+++ b/conf/cassandra.yaml
@@ -1,3 +1,4 @@
+
# Cassandra storage config YAML
# NOTE:
diff --git a/doc/Dockerfile b/doc/Dockerfile
index fcb4c4167f..ed60904ba7 100644
--- a/doc/Dockerfile
+++ b/doc/Dockerfile
@@ -18,5 +18,5 @@ RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | a
RUN apt-get clean
-CMD CASSANDRA_USE_JDK11=true ant gen-doc \
+CMD CASSANDRA_USE_JDK11=true ant realclean gen-doc \
&& echo "The locally built documentation can be found here:\n\n build/html/index.html\n\n"
diff --git a/doc/README.md b/doc/README.md
index eeb5a1c1ba..25ca702cf2 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -1,3 +1,23 @@
+
+
Apache Cassandra documentation directory
========================================
diff --git a/doc/SASI.md b/doc/SASI.md
index 30346abcd3..fc38845ce2 100644
--- a/doc/SASI.md
+++ b/doc/SASI.md
@@ -1,3 +1,23 @@
+
+
# SASIIndex
[`SASIIndex`](https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/index/sasi/SASIIndex.java),
diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile
index f50b2ac201..46bf8a24d9 100644
--- a/doc/cql3/CQL.textile
+++ b/doc/cql3/CQL.textile
@@ -1,3 +1,22 @@
+
h1. Cassandra Query Language (CQL) v3.4.3
diff --git a/doc/docker-compose.yml b/doc/docker-compose.yml
index 392f8d8f08..b1477b6a8b 100644
--- a/doc/docker-compose.yml
+++ b/doc/docker-compose.yml
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# docker-compose.yml for building the Cassandra documentation.
version: '2.0'
diff --git a/doc/make.bat b/doc/make.bat
index 93671fc251..cbd1d1dbbc 100644
--- a/doc/make.bat
+++ b/doc/make.bat
@@ -1,5 +1,23 @@
@ECHO OFF
+REM
+REM Licensed to the Apache Software Foundation (ASF) under one
+REM or more contributor license agreements. See the NOTICE file
+REM distributed with this work for additional information
+REM regarding copyright ownership. The ASF licenses this file
+REM to you under the Apache License, Version 2.0 (the
+REM "License"); you may not use this file except in compliance
+REM with the License. You may obtain a copy of the License at
+REM
+REM http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM Unless required by applicable law or agreed to in writing, software
+REM distributed under the License is distributed on an "AS IS" BASIS,
+REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM See the License for the specific language governing permissions and
+REM limitations under the License.
+REM
+
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
diff --git a/doc/native_protocol_v3.spec b/doc/native_protocol_v3.spec
index 9b1084ba1a..8187ca0b27 100644
--- a/doc/native_protocol_v3.spec
+++ b/doc/native_protocol_v3.spec
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
CQL BINARY PROTOCOL v3
diff --git a/doc/native_protocol_v4.spec b/doc/native_protocol_v4.spec
index e18b4ed162..2220000ffb 100644
--- a/doc/native_protocol_v4.spec
+++ b/doc/native_protocol_v4.spec
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
CQL BINARY PROTOCOL v4
diff --git a/doc/native_protocol_v5.spec b/doc/native_protocol_v5.spec
index fe304db73a..3b1352721d 100644
--- a/doc/native_protocol_v5.spec
+++ b/doc/native_protocol_v5.spec
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
CQL BINARY PROTOCOL v5
diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst
index ffa7134dde..e4f440200c 100644
--- a/doc/source/development/index.rst
+++ b/doc/source/development/index.rst
@@ -25,6 +25,7 @@ Contributing to Cassandra
testing
patches
code_style
+ license_compliance
how_to_review
how_to_commit
documentation
diff --git a/doc/source/development/license_compliance.rst b/doc/source/development/license_compliance.rst
new file mode 100644
index 0000000000..e2eba2ab82
--- /dev/null
+++ b/doc/source/development/license_compliance.rst
@@ -0,0 +1,37 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+.. or more contributor license agreements. See the NOTICE file
+.. distributed with this work for additional information
+.. regarding copyright ownership. The ASF licenses this file
+.. to you under the Apache License, Version 2.0 (the
+.. "License"); you may not use this file except in compliance
+.. with the License. You may obtain a copy of the License at
+..
+.. http://www.apache.org/licenses/LICENSE-2.0
+..
+.. Unless required by applicable law or agreed to in writing, software
+.. distributed under the License is distributed on an "AS IS" BASIS,
+.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+.. See the License for the specific language governing permissions and
+.. limitations under the License.
+
+.. _license_compliance:
+
+License Compliance
+******************
+
+
+The target of this document is to provide an overview and guidance how the Apache Cassandra project's source code and
+artifacts maintain compliance with the `ASF Licensing policy `.
+
+The repository contains a LICENSE file, and a NOTICE file.
+
+The Apache Cassandra project enforces and verifies ASF License header conformance on all source files using the Apache RAT tool.
+
+With a few exceptions, source files consisting of works submitted directly to the ASF by the copyright owner or owner's
+agent must contain the appropriate ASF license header. Files without any degree of creativity don't require a license header.
+
+Currently, RAT checks all .bat, .btm, .cql, .css, .g, .hmtl, .iml, .java, .jflex, .jks, .md, .mod, .name, .pom, .py, .sh, .spec, .textile, .yml, .yaml, .xml files for a LICENSE header.
+
+If there is an incompliance, the build will fail with the following warning:
+
+ Some files have missing or incorrect license information. Check RAT report in build/rat.txt for more details!
diff --git a/doc/source/tools/stress-example.yaml b/doc/source/tools/stress-example.yaml
index 17161af27e..4a67102817 100644
--- a/doc/source/tools/stress-example.yaml
+++ b/doc/source/tools/stress-example.yaml
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
spacenam: example # idenitifier for this spec if running with multiple yaml files
keyspace: example
diff --git a/doc/source/tools/stress-lwt-example.yaml b/doc/source/tools/stress-lwt-example.yaml
index fc5db08145..1f12c2491e 100644
--- a/doc/source/tools/stress-lwt-example.yaml
+++ b/doc/source/tools/stress-lwt-example.yaml
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Keyspace Name
keyspace: stresscql
diff --git a/pylib/cqlshlib/test/test_keyspace_init.cql b/pylib/cqlshlib/test/test_keyspace_init.cql
index 26e8daee98..3b9278ac0a 100644
--- a/pylib/cqlshlib/test/test_keyspace_init.cql
+++ b/pylib/cqlshlib/test/test_keyspace_init.cql
@@ -1,3 +1,21 @@
+/*
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+*/
+
CREATE TABLE has_all_types (
num int PRIMARY KEY,
intcol int,
diff --git a/redhat/README.md b/redhat/README.md
index cab42a752e..a1f6f15e7e 100644
--- a/redhat/README.md
+++ b/redhat/README.md
@@ -1,3 +1,23 @@
+
+
# Apache Cassandra rpmbuild
### Requirements:
diff --git a/redhat/cassandra.in.sh b/redhat/cassandra.in.sh
index ecca949e62..1a795b6571 100644
--- a/redhat/cassandra.in.sh
+++ b/redhat/cassandra.in.sh
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
# The directory where Cassandra's configs live (required)
CASSANDRA_CONF=/etc/cassandra/conf
diff --git a/redhat/cassandra.spec b/redhat/cassandra.spec
index a85476783e..ddb73e49c9 100644
--- a/redhat/cassandra.spec
+++ b/redhat/cassandra.spec
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
%define __jar_repack %{nil}
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
diff --git a/relocate-dependencies.pom b/relocate-dependencies.pom
index d6b4265fae..07728dd405 100644
--- a/relocate-dependencies.pom
+++ b/relocate-dependencies.pom
@@ -1,3 +1,23 @@
+
+
4.0.0
diff --git a/test/data/bloom-filter/ka/foo.cql b/test/data/bloom-filter/ka/foo.cql
index 4926e3a2db..6b662fb17a 100644
--- a/test/data/bloom-filter/ka/foo.cql
+++ b/test/data/bloom-filter/ka/foo.cql
@@ -1,3 +1,21 @@
+/*
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+*/
+
create keyspace foo with replication = {'class':'SimpleStrategy', 'replication_factor':1};
use foo ;
create table atable ( pk int primary key, val int);
diff --git a/test/resources/blogpost.yaml b/test/resources/blogpost.yaml
index 13987e0abf..3aea5c8b2a 100644
--- a/test/resources/blogpost.yaml
+++ b/test/resources/blogpost.yaml
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
# Copied from https://gist.github.com/tjake/8995058fed11d9921e31
### DML ###
diff --git a/test/resources/byteman/mutation_limiter.btm b/test/resources/byteman/mutation_limiter.btm
index ca936fcf54..fb33b284d7 100644
--- a/test/resources/byteman/mutation_limiter.btm
+++ b/test/resources/byteman/mutation_limiter.btm
@@ -1,3 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
RULE mutation_limiter
CLASS org.apache.cassandra.db.MutationVerbHandler
METHOD doVerb
@@ -5,4 +23,4 @@ HELPER org.apache.cassandra.utils.TestRateLimiter
AT ENTRY
IF TRUE
DO acquire(1000.0)
-ENDRULE
+ENDRULE
\ No newline at end of file
diff --git a/test/resources/byteman/stream_failure.btm b/test/resources/byteman/stream_failure.btm
index 768c7a35e7..0bb20f16e1 100644
--- a/test/resources/byteman/stream_failure.btm
+++ b/test/resources/byteman/stream_failure.btm
@@ -1,4 +1,21 @@
#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
# Inject streaming failure
#
# Before start streaming files in `StreamSession#prepare()` method,