You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/01/06 03:14:33 UTC
[GitHub] [skywalking] andyzzl commented on issue #6136: ReadWriteSafeCache simultaneous read-write support
andyzzl commented on issue #6136:
URL: https://github.com/apache/skywalking/issues/6136#issuecomment-755048937
In previous implemention, I swap the buffer every time write operation has finished. If two write operations happen continuously, read-buffer will be not empty at second write operation.
1. At beginning:
read-buf[], write-buf[]
2. first write method finished, swap:
read-buf[data1], write-buf[]
3. second write method finished, swap:
read-buf[data2], write-buf[data1]
4. read:
read data2. out of order.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org