oscript-library / oscript-library/gitsync

Ошибка монопольного чтения plugins.json

Open
#238 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
1C Enterprise
Stars
333
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Описание ошибки
При одновременной работе нескольких линий дженкинса происходит ошибка при попытке монопольного чтения файла: gitsync\plugins\plugins.json
{Модуль C:\Program Files\OneScript\lib\gitsync\src\core\Классы\internal\files\Модули\РаботаСФайлами.os / Ошибка в строке: 5 / Внешнее исключение (System.IO.IOException): Процесс не может получить доступ к файлу "C:\Users\jenkins_uat\AppData\Local\gitsync\plugins\plugins.json", так как этот файл используется другим процессом.}

Сценарий воспроизведения
Шаги по воспроизведению:
Одновременно запускаем два или более задания:
gitsync --v8version 8.3.12.1529 -C /Fs:/1c/ibase -t s:/gitsync -v sync -u user -p pass -l 1 -R -F tcp://repo-serv:1529/ibase ./src/cf/ https://mygitlab.ru/ibase

Ожидаемое поведение если бы ошибки не было
отсутствие исключения

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with gitsync\plugins\plugins.json and the file-handling module at src/core/Классы/internal/files/Модули/РаботаСФайлами.os, then reproduce the failure by running the provided command concurrently. Done means two or more simultaneous jobs can access plugins.json without the reported System.IO.IOException.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.