-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious concurrent modification exception in annotation editor #4454
Comments
Environment Detail:
|
On the mailing list, you wrote that you see lost annotations. To what extend do you see those? Is only the last action performed lost or is the document actually reset to a much older state or even looses all of its annotations. On the mailing list, you note that Azure Defender might mess with the timestamp. IMHO Azure Defender should not change files, right? So it should not change the "last modified" timestamp of the file that INCEpTION uses - if anything, it should only change the "last access" timestamp. |
Out of 7, 4 files had annotation lost up to 80% approx. About Azure Defender, sorry I am not sure. |
Could you set the log level of Do you get the error message suddenly during annotation or e.g. after a while of not having done anything (e.g. after a pause)? |
@77neel a user on the mailing list reported that time stamp problems on azure disappeared when using an Azure VM with attached storage. Maybe that is an option that you could try. |
@reckart I faced (above mentioned) error message suddenly during annotation when "cas-storage.file-system-timestamp-accuracy" value was not increased (to 30 minutes). After increasing value, No error appeared. Missing of annotated data where there before and after changing property value. I faced one error appeared in log recently while curating file :
|
The "predictions is null" error is likely unrelated - but can you provide a stack strace for it please? That would help locating the problem in the code. |
@77neel If you increase Also, if you get the error message and have set |
@77neel In your case, the problem appears on writing and at least according to the timestamps, the data that is going to be written appears to be way newer than the data on disk. So what we could try is to add an option to relax the check a bit in such a way that no error is generated if the data to be written remembers a newer timestamp - because hopefully the data in fact is newer. That may remove the problem for you. However, in general, I would not find this a particularly satisfactory solution because the we still do not know the root cause of the problem... |
@reckart I decreased "cas-storage.file-system-timestamp-accuracy" value to 500ms but I haven't encounter that error again and no data lost. I am also not sure why it working fine now. Will let you know once I find more details on this matter. |
Describe the bug
Occasionally, when performing an action in the annotation editor, a concurrent modification of the CAS is detected.
To Reproduce
At the moment it is unclear how to provoke this action.
Expected behavior
Unless any of of the following situations occur, no concurrent modification should be reported:
I was observed that the file timestamps on certain Azure shared storages are
not fully reliable. For this reason, the "cas-storage.file-system-timestamp-accuracy"
property was introduced allow INCEpTION to work on such systems. Basically, it
suppresses the error when the delta between the remembered timestamp and the
on-disk timestamp is smaller than the value set in the property.
When a user opens a document in multiple browser windows or browsers. A document
must only be open by one user in one browser window at a time. A special case
is curation where only one curator may curate a document at a time since all
curation data is normally written to the same file on disk. Such a mode of use
is not supported.
When a user uses forward/backwards buttons in the browser to navigate from/to
the annotation page. Access the annotation/curation pages only through
the respective links in the browser.
When you try running multiple INCEpTION instances accessing the same database
and data folder on disk. Such a deployment mode is not supported.
When a project managed performs certain actions such as changing the layer/feature
configuration or running CAS Doctor repairs. Such actions should be performed when
there is low risk that annotators are currently working on the affected project.
Screenshots
Please complete the following information:
Additional context
The text was updated successfully, but these errors were encountered: