用自带的缓存,使用memcache等存储,命中旧数据的问题 #341
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#341
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
说下应用场景:
有个定时任务,获取表里未处理的数据(状态是N),然后标记为待处理R,处理完毕后标记为Y
当标记为R的时候,服务重启了,就需要把所有为R的标记为N,然后执行定时任务
重现:
第一次启动服务,修改状态R为N,然后读取状态N的数据,标记为R,异步处理,这时缓存map和memcache都为空,执行正常
重启服务,修改状态R为N,然后读取状态N的数据,发现读不到从状态R改回N的那部分数据,我猜测是读取列表的SQL命中缓存了
后面不断重启服务,都会重现这个问题
This cannot be reproduced so I close this one. Please feel free to reopen it.