Merge pull request #24286 from taosdata/fix/crash_stream
fix(stream): update the stream error code.
This commit is contained in:
commit
83172f4580
|
@ -792,7 +792,7 @@ static int32_t checkForNumOfStreams(SMnode *pMnode, SStreamObj *pStreamObj) { /
|
|||
if (pStream->targetStbUid == pStreamObj->targetStbUid) {
|
||||
mError("Cannot write the same stable as other stream:%s", pStream->name);
|
||||
sdbCancelFetch(pMnode->pSdb, pIter);
|
||||
terrno = TSDB_CODE_MND_TOO_MANY_STREAMS;
|
||||
terrno = TSDB_CODE_MND_INVALID_TARGET_TABLE;
|
||||
return terrno;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,6 +27,8 @@ class TDTestCase:
|
|||
self.tb_stream_des_table = f'{self.tb_name}{self.tdCom.des_table_suffix}'
|
||||
self.tdCom.date_time = self.tdCom.dataDict["start_ts"]
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
if watermark is not None:
|
||||
watermark_value = f'{self.tdCom.dataDict["watermark"]}s'
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue