nowinkeyy commented on issue #5184: URL: https://github.com/apache/rocketmq/issues/5184#issuecomment-1264679040
> In fact, the specific implementation of this MAG table has not been decided, and I intend to avoid the situation of locking. ThreadLocal can be a good idea. IMO, the MSG table needs to be shared globally, so Threadlocal is not a good idea. And msg written to CQ cannot be concurrent (obviously concurrency errors), so the thread needs to acquire CQ's lock first. Because access is serialized for a single CQ, the MSG table request from this thread does not conflict with the requests from reputMessageService and other threads. So MSG table may be lock-free. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
