cassandra/test/unit/org/apache/cassandra
Ata İlhan Köktürk 46b36f23cd
Explicitly localize strings to Locale.US for internal implementation
There is inconsistent usage of toLowerCase/toUpperCase methods in the codebase.
Somewhere we already use Locale.US, somewhere not. That might cause various issues in runtime
as shown in CASSANDRA-19953 ticket when an environment Cassandra runs in has different locale from expected.
In this patch, all such method calls explicitly set their locale to Locale.US. This patch also contains
a checkstyle rule which fails the compilation if toLowerCase or toUpperCase is used.
We prefer calls to methods in LocalizeString class which use US locale.

patch by Ata İlhan Köktürk; reviewed by Stefan Miklosovic, Brandon Williams for CASSANDRA-19953

Co-authored-by: Maxwell Guo <cclive1601@gmail.com>
Co-authored-by: Stefan Miklosovic <smiklosovic@apacheorg>
2024-10-29 08:58:01 +01:00
..
audit Merge branch 'cassandra-5.0' into trunk 2024-10-09 13:53:48 +02:00
auth Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
batchlog Merge branch 'cassandra-5.0' into trunk 2024-10-15 13:47:58 +02:00
cache Fix sstable formats configuration 2023-05-18 12:54:08 +02:00
concurrent Create a fuzz test that randomizes topology changes, cluster actions, and CQL operations 2024-09-04 10:51:09 -07:00
config Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
cql/jdbc
cql3 Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
db Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
dht Merge branch 'cassandra-4.1' into cassandra-5.0 2024-09-17 17:21:16 -05:00
diag Deprecate/forbid constructors for Integer, Long, Float, Byte, Double, and Short 2023-05-02 08:26:10 -05:00
fql Merge branch 'cassandra-4.1' into cassandra-5.0 2023-08-28 09:48:18 -05:00
gms Add cluster metadata id to gossip syn messages 2024-05-03 09:21:10 +01:00
hints Merge branch 'cassandra-5.0' into trunk 2024-05-02 23:34:29 +02:00
index Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
inject Add support for a vector search index in SAI 2023-10-29 12:24:00 +01:00
io Avoid ClassCastException when verifying tables with reversed partitioner 2024-07-10 14:23:55 +01:00
locator Allow CMS reconfiguration to work around DOWN nodes 2024-09-27 08:45:40 +02:00
metrics Merge branch 'cassandra-5.0' into trunk 2024-10-02 15:33:28 +02:00
net Create a fuzz test that randomizes topology changes, cluster actions, and CQL operations 2024-09-04 10:51:09 -07:00
repair Merge branch 'cassandra-5.0' into trunk 2024-09-18 08:50:28 +02:00
schema During TCM upgrade, retain all properties of existing system tables 2024-10-22 10:30:44 +02:00
security Expose auth mode in system_views.clients, nodetool clientstats, metrics 2024-02-13 12:03:06 +01:00
serializers Add ability to read the TTLs and write times of the elements of a collection and/or UDT 2022-08-12 13:00:04 +01:00
service Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
streaming Merge branch 'cassandra-4.1' into cassandra-5.0 2024-09-17 17:21:16 -05:00
tcm Fix ProgressBarrierTest 2024-08-22 16:48:44 +02:00
test/asserts Add metrics and logging to repair retries 2023-10-30 14:47:26 -07:00
tools Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
tracing Add support for a vector search index in SAI 2023-10-29 12:24:00 +01:00
transport Merge branch 'cassandra-5.0' into trunk 2024-10-09 13:53:48 +02:00
triggers Add new TriggersPolicy configuration to allow operators to disable triggers 2024-04-16 11:09:33 +02:00
utils Prevent CQLTester fuzz testing from using illegal commitlog_disk_access_mode combinations 2024-10-12 15:49:22 +02:00
AbstractSerializationsTester.java Introduce 5.1 messaging format that brings in Epoch 2023-12-01 13:02:33 +01:00
CassandraBriefJUnitResultFormatter.java Moved system properties and envs to CassandraRelevantProperties and CassandraRelevantEnv respectively 2023-05-11 07:39:16 +02:00
CassandraIsolatedJunit4ClassRunner.java [CASSANDRA-16926] CEP-10 Phase 1: Mockable Filesystem 2021-10-07 14:28:00 +01:00
CassandraXMLJUnitResultFormatter.java Vector search should be able to restrict on clustering keys when filtering isn't required 2024-04-11 00:25:59 +02:00
ConsoleAppender.java CASSANDRA-18785: Add support for Sonar analysis 2023-11-13 14:48:28 +01:00
JStackJUnitTask.java Add JStackJUnitTask to avoid downloading the jar 2021-07-25 11:37:32 -05:00
LogbackStatusListener.java Moved system properties and envs to CassandraRelevantProperties and CassandraRelevantEnv respectively 2023-05-11 07:39:16 +02:00
MethodComparator.java
RepeatableRunner.java patch by Berenguer Blasi; reviewed by Andrés de la Peña for CASSANDRA-16654 2021-05-18 06:36:49 +02:00
SchemaLoader.java Explicitly localize strings to Locale.US for internal implementation 2024-10-29 08:58:01 +01:00
ServerTestUtils.java Improve setup and initialisation of LocalLog/LogSpec 2024-02-09 15:49:42 +01:00
TeeingAppender.java
UpdateBuilder.java
Util.java Merge branch 'cassandra-5.0' into trunk 2024-10-10 09:41:45 -06:00