mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
Handle error in topic creation of rocksmq (#15922)
Reopen for: #14429 Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
parent
6513be5c44
commit
c2fe12bc97
@ -319,7 +319,9 @@ func (rmq *rocksmq) CreateTopic(topicName string) error {
|
|||||||
// Initialize topic id to its creating time, we don't really use it for now
|
// Initialize topic id to its creating time, we don't really use it for now
|
||||||
nowTs := strconv.FormatInt(time.Now().Unix(), 10)
|
nowTs := strconv.FormatInt(time.Now().Unix(), 10)
|
||||||
kvs[topicIDKey] = nowTs
|
kvs[topicIDKey] = nowTs
|
||||||
rmq.kv.MultiSave(kvs)
|
if err = rmq.kv.MultiSave(kvs); err != nil {
|
||||||
|
return retry.Unrecoverable(err)
|
||||||
|
}
|
||||||
|
|
||||||
rmq.retentionInfo.mutex.Lock()
|
rmq.retentionInfo.mutex.Lock()
|
||||||
defer rmq.retentionInfo.mutex.Unlock()
|
defer rmq.retentionInfo.mutex.Unlock()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user