CASSANDRA-2525

1. Symptom

Entered an invalid command and received a socket closed error. the correct behavior is the command should be rejected early and return an invalid command exception.

Category (in the spreadsheet):

early termination,

1.1 Severity

Critical

1.2 Was there exception thrown? (Exception column in the spreadsheet)

Socket closed error

 

1.2.1 Were there multiple exceptions?

no

 

1.3 Was there a long propagation of the failure?

no, instant

 

1.4 Scope of the failure (e.g., single client, all clients, single file, entire fs, etc.)

All client performing this action

 

Catastrophic? (spreadsheet column)

no

2. How to reproduce this failure

2.0 Version

0.8.0 beta 2

2.1 Configuration

standard configuration

 

# of Nodes?

1

2.2 Reproduction procedure

enter invalid create keyspace CQL command (feature start) 

 

2.2.1 Timing order (Order important column)

NA

2.2.2 Events order externally controllable? (Order externally controllable? column)

yes

2.3 Can the logs tell how to reproduce the failure?

yes

2.4 How many machines needed?

1

 

Total # of msgs (spreadsheet column)

6

3. Diagnosis procedure

Error msg?

yes

3.1 Detailed Symptom (where you start)

After entering create keyspace invalid command, immediately received a socket closed error

3.2 Backward inference

Found out the command is invalid.

 

4. Root cause

Entered invalid command. No error handling.

4.1 Category:

semantic

4.2 Can we automatically test it?

yes

5. Fix

5.1 How?

Blocked the invalid command and throws InvalidREquestException.