Theia: [git] "Stopped/Started watching" git repo, on every change

Created on 3 Jun 2019  路  14Comments  路  Source: eclipse-theia/theia

Description

Every time a file is changed, I see a pair of traces in the backend log, saying that the git repo watching has stopped and right after, started again.

I do not know what this exactly means, but it sounds like it could be that the OS file watchers, watching a git repo, are being freed and re-allocated, again and again (hopefully not the case).

Reproduction Steps

  • build and start the browser example
  • watch the terminal where the backend was started
  • open a file in theia's editor.
  • make changes in the file, saving once in a while or letting auto-save do it for you
    -> each time a change is saved, a pair of traces (see below) appears in the B-E log.

OS and Theia version:
ubuntu 16.04, theia browser example app, built from latest master

Diagnostics:

root INFO Stopped watching the git repository: file:///opt/ericsson-dev/theia
root INFO Started watching the git repository: file:///opt/ericsson-dev/theia
bug critical git performance scm

All 14 comments

If it is reproducible we have to fix it asap. Probably another scm PR bug (

yes, i was able to reproduce @vinokurig Can you take care about it today? cc @evidolob

@akosyakov Yes, working on it

@akosyakov Are you sure that this bug is relates to the SCM PR? I've reverted it localy and I could reproduce the bug.

I've prepared a PR about refactor Git module to SCM https://github.com/theia-ide/theia/pull/5339 that fixes this bug

@vinokurig i cannot reproduce it with revision before SCM PR

I've prepared a PR about refactor Git module to SCM #5339 that fixes this bug

checking

5339 is too big and breaking, is there a way for small fix of this issue?

5339 is too big and breaking, is there a way for small fix of this issue?

I'll try to extract a particular fix for it

@akosyakov Looks like it is not possible to extract a particular fix. All the changes are needed. I am working on the comments from the PR.

@marcdumais-work Can we do 7.0.1 without SCM fixes? I won't have time to review today and it will be breaking. And we do later 7.1.0 this week?

@anton yes, we can go ahead today with a 0.7.1 bugfix release, and discuss later this week what we'll do with the SCM fixes (0.7.2 bugfix release?)

Thanks @kittaakos great improvement with issue #5284 , I notice that the watchers with electron for the git repos start about 6 times, then if you wait about ~20-30 secondes, a timer error occurs and then start/stop the git repo occurs in a loop. Was reproduce-able on a window environment this morning (~5-6 times in a row)

Thanks @kittaakos great improvement with issue #5284 , I notice that the watchers with electron for the git repos start about 6 times, then if you wait about ~20-30 secondes, a timer error occurs and then start/stop the git repo occurs in a loop. Was reproduce-able on a window environment this morning (~5-6 times in a row)

I don't believe it has to do with electron, the following can also be seen in the browser app.

Was this page helpful?
0 / 5 - 0 ratings