Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

och.redisMessageBatches.OnComplete #3083

Open
jsn4ke opened this issue Jan 23, 2025 · 1 comment
Open

och.redisMessageBatches.OnComplete #3083

jsn4ke opened this issue Jan 23, 2025 · 1 comment
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@jsn4ke
Copy link

jsn4ke commented Jan 23, 2025

OpenIM Server Version

master

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

1.消息是批处理
2.消息组按key分组
3.och.do 处理客户端上行的消息
4.func (och *OnlineHistoryRedisConsumerHandler) handleMsg 此时网络波动异常

		lastSeq, isNewConversation, userSeqMap, err := och.msgTransferDatabase.BatchInsertChat2Cache(ctx, conversationID, storageMessageList)
		if err != nil && !errors.Is(errs.Unwrap(err), redis.Nil) {
			log.ZWarn(ctx, "batch data insert to redis err", err, "storageMsgList", storageMessageList)
			return
		}

5.b.OnComplete(lastMessage, totalCount)这批消息就异常丢失了

Screenshots Link

No response

@jsn4ke jsn4ke added the bug Categorizes issue or PR as related to a bug. label Jan 23, 2025
@OpenIM-Robot
Copy link

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants