-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Che is always asking if changes made should be overwritten ... #16751
Comments
maybe it is because it is not ephemeral .... |
does it happen only in the non-ephemeral mode? |
just tested it doesn't happen |
does not happen at all? could you please provide more details and steps to repro in the issue description? |
trying to remove some workspaces ... maybe related to the storage and number of files in volumes ... |
OK I have removed some workspaces and it seems to be better
|
mh it's happening again .... even after removed all my workspaces ... |
@sunix is it Hosted Che specific, or happens the very same way in the upstream? |
Hi @ibuziuk I have the feeling that it is happening only on my machine ... I am setting p2 unless someone else is raising the problem... |
I can confirm this happens with myself and colleagues. Seems ok for a bit then will start asking you to confirm overwriting the file. Sometimes closing the file tab and reopening the file fixes it temporarily. |
Developing Magento 2, so a massive codebase, typically ~50,000 files. |
@ibuziuk I don't know how much people are affected. Could we monitor that. I think we should work on that and make that detection a bit more robust ... even on slow storage. |
I'm encountering this pretty constantly when trying to work on the Che docs. I'm using Hosted Che with persistent storage, so I suspect it's a Gluster issue. Edit to add: It's especially frustrating as the notification steals focus from the editor, so even after closing it you can't continue typing in the file. |
i feel your pain |
what i do is disabling auto-save ... or setting 20 seconds .... |
@sunix good suggestion for the mean time -- I've added it to the issue description so that it's easier to find. |
so async storage could be a quickfix to solve that one. |
Having used async storage a fair bit now, it seems to be a good workaround. |
Could be related: #17704 |
@amisevsk How do you enable async storage in che.openshift.io BTW? |
Will post result of investigation of this issue. All the results are actual for the commit eclipse-theia/theia@1e09b81, not for the Theia master head as Che-Theia hasn't been updated to use Theia's master head. So, when user opens file in editor, Theia tries to get setContent's method body. Theia tries to obtain new When there're many changes made in the same file for the short period of time we can observe such situation, provided by the following log: log for the
log for the new
as you can see, Theia transforms this You can observe it in above logs:
against
As the result comparison these two values give us two different values for the modification time in checkInSync method. Thats why method isInSync calls client dialogue to overwrite changes. We can refer to slow i/o of glusterfs when there're a lot modifications come from outside to update the one file and sometimes we have inconsistent modification time for the file that differs in 1 millisecond. As the possible solutions there're two variants how we can resolve this issue:
|
That's a great explanation @vzhukovskii, thanks. |
Thank you @vzhukovskii for an excellent analysis! |
Got it |
update: |
Describe the bug
Editing a file like devfile.yaml in this project: https://che.openshift.io/factory?url=https://github.com/sunix/record-preview-feature-java15
Che version
Steps to reproduce
Workaround
Issue can be helped by either increasing the auto-save interval or disabling auto-save in Theia.
The text was updated successfully, but these errors were encountered: