clintonhealthaccess / chailmis-android

Android Tablet Application for Logistics Management in the DHIS2 Platform
Other
7 stars 6 forks source link

Server Carry Forward Script value is overwritten (to 0) by the client SOH sync when there is no change in value on the client #269

Open chai-lmis opened 8 years ago

ihassin commented 8 years ago

It may be that this happens when the sync fails and zero is stored on client that is in turn echoed back to the server and zeros it out. To debug, we'd need to cooperate with back-end people. We also have to decide how to handle sync issues, and null values reaching the server. @egwuma - how do you want to handle these kinds of issues and collaboration challenges?

chai-lmis commented 8 years ago

i dont believe this is the case as the test cases i had neither had zero on the client or on the server. However when sync fails, the last carried forward value or the last successful sync should remain on the server, this will continue until a successful sync occurs and the server value is over written by the client value

garymabin commented 8 years ago

@chai-lmis. I think we only syncing zero value to the server in one situation, that is we don't get right value from the server side previously. So to make further investigation possible, we need to reproduce the issue and check the server log just at that time and track the latest syncing and latest retrieving log before that issue occurs.

ihassin commented 8 years ago

@bin - did you get access to the server logs from Jerome? Once logged on, you can tail the logs by: tail -F /home/dhis/tomcat-dhis/logs/catalina.out