TD-3310
This commit is contained in:
parent
30b2611257
commit
89b913c2bc
|
@ -187,6 +187,8 @@ int32_t* taosGetErrno();
|
|||
|
||||
#define TSDB_CODE_MND_INVALID_TOPIC TAOS_DEF_ERROR_CODE(0, 0x0392) //"Invalid topic name)
|
||||
#define TSDB_CODE_MND_INVALID_TOPIC_OPTION TAOS_DEF_ERROR_CODE(0, 0x0393) //"Invalid topic option)
|
||||
#define TSDB_CODE_MND_INVALID_TOPIC_PARTITONS TAOS_DEF_ERROR_CODE(0, 0x0394) //"Invalid topic partitons num, valid range: [1, 1000])
|
||||
#define TSDB_CODE_MND_TOPIC_ALREADY_EXIST TAOS_DEF_ERROR_CODE(0, 0x0395) //"Topic already exists)
|
||||
|
||||
// dnode
|
||||
#define TSDB_CODE_DND_MSG_NOT_PROCESSED TAOS_DEF_ERROR_CODE(0, 0x0400) //"Message not processed")
|
||||
|
|
|
@ -199,6 +199,8 @@ TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_DB_OPTION_KEEP, "Invalid database opti
|
|||
|
||||
TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_TOPIC, "Invalid topic name")
|
||||
TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_TOPIC_OPTION, "Invalid topic option")
|
||||
TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_TOPIC_PARTITONS, "Invalid topic partitons num, valid range: [1, 1000]")
|
||||
TAOS_DEFINE_ERROR(TSDB_CODE_MND_TOPIC_ALREADY_EXIST, "Topic already exists")
|
||||
|
||||
// dnode
|
||||
TAOS_DEFINE_ERROR(TSDB_CODE_DND_MSG_NOT_PROCESSED, "Message not processed")
|
||||
|
|
|
@ -842,4 +842,28 @@ if $rows != 10 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql drop topic t1
|
||||
|
||||
print ============== create same name topic
|
||||
sql create database d2
|
||||
sql create topic t2
|
||||
|
||||
sql_error create topic d2
|
||||
sql_error create topic if not exists d2
|
||||
sql_error create topic t2
|
||||
sql create topic if not exists t2
|
||||
sql_error create topic t2 partitions 5;
|
||||
sql_error create topic t2 partitions 6;
|
||||
sql_error create topic t2 partitions 3;
|
||||
|
||||
sql_error alter topic t3 partitions 1
|
||||
sql_error alter topic d2 partitions 1
|
||||
sql_error alter topic t2 partitions 0
|
||||
sql_error alter topic t2 partitions 10000
|
||||
|
||||
sql_error drop topic d2
|
||||
sql_error drop topic d3
|
||||
sql drop database d2
|
||||
sql drop database t2
|
||||
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
|
Loading…
Reference in New Issue