IoTKETI / Mobius

oneM2M IoT Server Platform
http://developers.iotocean.org/archives/module/mobius
BSD 3-Clause "New" or "Revised" License
138 stars 87 forks source link

Maximum Number of Instance bug #37

Open andreadetti opened 4 years ago

andreadetti commented 4 years ago

mni property of containers is not properly handled. When the number of content instances in a container becomes greater than mni then any other content instance can not be added (or better it is immediately cleaned). In my opinion, the issue seems related to the fact that in the sql database, cnt table, the cni value is not updated after delete_oldest in sql_actions.js

dima91 commented 3 years ago

Hi guys, do you have any update about this issues? I encountered the same problem.

woorinet commented 3 years ago

이거 버그로 보이네요 수정이 필요합니다 mni 설정을 하면 cni가 mni보다 커지는 순간부터 데이터가 막 사라니다. cnt 테이블의 cni값은 계속해서 증가하고 정작 조회해보면 데이터는 다 삭제되거나 한두개 남아있거나 합니다. 코드를 보면 mbs설정을 해도 동일한 문제가 발생할 것 같습니다.

woorinet commented 3 years ago

sql_action.zip source file that fixed this bug. try this one.