Is SSH.Net safe for 2 competitive cross process (not threads) concurrent access.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- csharp
- 領域
- networking
調査の方向性
SftpClient.RenameFile と AutoResetEvent を使用する SSH.NET のソースコードから始めてください。別々のプロセスまたは Kubernetes ポッドからの同時リネームを再現し、観測された上書き動作が想定されたものかどうかを判断したうえで、明確な結果とともに文書化するか対処してください。
索引モデルが issue の本文から書いたものです。
説明
Issue case:
- upload 2 or more files to SFTP (e.g. file-1.txt & file-2.txt)
- try to rename them simultaneously to the same name (e.g. file-3.txt) -- SftpClient.RenameFile
- renaming should be done from different processes (e.g. from 2 different K8S pods)
Result:
- expectation—there should be error, - like 'the file with the same name already exist' for some of pods (the last one)
- actual result - time to time, both file successfully renamed in sequence, and the first file will override by last one
I believe that the root cause is that ssh.net is leveraging 'AutoResetEvent' for synchronization base on source code.
But, as I know AutoResetEvent cannot be used for interprocess synchronization
The question:
Am I right with my clue, or I'm just using ssh.net not in the right way ?
- 主要言語
- C#
- スター
- 4.4k
- フォーク
- 993
- 平均マージ
- 9日 21時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sshnet/SSH.NET のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
sillsdev/languageforge-lexbox#2665 ·
-
bug documentation frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
azurenoops/spin_agent#975 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
dotnet/AspNetCore.Docs#37699 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SubtitleEdit/subtitleedit#15108 · コメント 1 件 ·