Good day ranchers
I have been doing some last minute
testing on my RemoteData class and have come to the following conclusion (please correct me if I am wrong):
I have a RemoteData class which has the Data class as an instance variable, and we all know what Data looks like, most public methods are synchronized.
No here is the problem: I tested the server with 100 concurrent connections doing adds, finds, modifies etc. Then I abnormally killed all 100 clients. I then waited for the RemoteData's unreferenced() method to be called (implementing Unreferenced) then I start up the 100 clients again.
It seems as if the Data objects monitor has not been released, and one of the previous 100 dead clients still has it.
I was wondering if any of you may have experienced this and know of an elegant way to handle this? or maybe I should re-look my design and not synchronize the Data class.
Will this be an issue in terms of the grading process for the assignment?