Create table after failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MagnetoDB |
Fix Released
|
High
|
Dmitriy Ukhlov |
Bug Description
If there is some errors during create table process, next request with same table name fails.
Steps to reproduce:
1. Try to create table in nonexistent keyspace (bug https:/
2. Create keyspace
3. Try to create the table with the same name
Expected response: 200 with table info
Real response:
{
"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.",
"code": 400,
"error": {
"message": "Table 'Thread' already exists",
"type": "TableAlreadyEx
},
"title": "Bad Request"
}
And the table with specified name is absent in Cassandra.
Changed in magnetodb: | |
importance: | Undecided → Low |
milestone: | none → 2.0.3 |
Changed in magnetodb: | |
milestone: | 2.0.3 → 2.0.4 |
Changed in magnetodb: | |
importance: | Low → High |
milestone: | 2.0.4 → 2.0.5 |
Changed in magnetodb: | |
assignee: | nobody → Dmitriy Ukhlov (dukhlov) |
Changed in magnetodb: | |
status: | New → In Progress |
status: | In Progress → New |
Changed in magnetodb: | |
status: | New → In Progress |
Changed in magnetodb: | |
milestone: | 2.0.5 → 2.0.6 |
Changed in magnetodb: | |
milestone: | 2.0.6 → juno-3 |
Changed in magnetodb: | |
status: | Fix Committed → Won't Fix |
status: | Won't Fix → Fix Released |
I believe it may be connected with new table schema: some info about new tables is inserted in the magnetodb. table_info table. If create table command fails the record about failed table remains in the magnetodb. table_info table.