You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "klesh (via GitHub)" <gi...@apache.org> on 2023/03/15 07:33:29 UTC

[GitHub] [incubator-devlake] klesh commented on issue #4188: [Bug][Gitex] Unable to cancel gitextractor when preparing data

klesh commented on issue #4188:
URL: https://github.com/apache/incubator-devlake/issues/4188#issuecomment-1469492253

   > Maybe just leave `gitextractor` running, and ignore its output ? Can we do like this?
   
   It is one way to go... however, It is not reliable, there is a chance that too many Git Clone operations are stuck in the background and eating out the system file descriptors.
   
   I prefer the following options:
   - Get rid of the `git2go` and use the `gogit` only which supports `context`. `git2go` has always been problematic since it depends on the `libgit2` C library. However, doing so would require a huge rewrite.
   - Find a way for `git2go` to support cancellation, I found interesting discussion of the topic, it might be possible to add cancellation support for `git2go`
     - [git - libgit2 - clone operation with Github - Stack Overflow](https://stackoverflow.com/questions/25207194/libgit2-clone-operation-with-github)
     - [Error when cancel a Repository.Clone · Issue #780 · libgit2/libgit2sharp](https://github.com/libgit2/libgit2sharp/issues/780)
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org