When is the document's cas proceduced,and where?

Hi,
I have a surprising problem:
source code is above.
and aysn writing.
duriablity: PerstTo.ONE

start writing 1000 items:
insert ===>start
success: casId:1732515897200159; docId:Price_85646069
touch’s result: true
insert===>end
.
.
.

insert ===>start
success: casId:1732515904932821; docId:Price_85646084
touch’s result: true
insert===>end

but i found the item count(999) wrong,
and finally I found the document(casId:1732515904932821; docId:Price_85646084) lost in admin web console.

Why?