Kun Liu

Results 92 comments of Kun Liu

> The statistics of write point is inaccurate when: > > 1. insert data of which the timestamp already exists > 2. update data > 3. delete data > >...

`bufferwriteCloseAction`是在一个同步操作里面。所以在下次修改`fileNodeProcessorStore`并且backup写磁盘之前,对`lastUpdateTimeMap`的修改虽然影响了`fileNodeProcessorStore`但是最终的结果是不会受到影响的。最终结果只看`fileNodeProcessorStore`被序列化到磁盘的内容是否是同步的信息。因为close操作是同步的,所有不会受到任何的影响。 但是`bufferwriteFlushAction`这内容中会有问题 ``` private Action bufferwriteFlushAction = new Action() { @Override public void act() throws Exception { // update the lastUpdateTime Notice: Thread safe synchronized (fileNodeProcessorStore) { fileNodeProcessorStore.setLastUpdateTimeMap(lastUpdateTimeMap); } }...