Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Azure by-hash publish fails while reacquiring a source blob lease

オープン
#1,654 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
azure, go
領域
backend, cloud

調査の方向性

Start with internalCopyOrMoveBlob in azure/public.go and trace how it acquires and breaks the source blob lease during repeated by-hash copies. Reproduce the publish command against Azurite and inspect the returned lease state and error. Done means the initial publish completes through writing Release without the second hash copy failing to acquire the lease.

索引モデルが issue の本文から書いたものです。

説明

An initial by-hash publish to Azurite doesn't finish. I used a fresh local repository with one generated package and an empty Azure container, with no endpoint or publication prefix:

aptly -config=aptly.json publish repo -skip-signing=true -skip-contents=true -acquire-by-hash=true repo azure:test:

The first hash copy works, but the next copy of the same index fails:

ERROR: unable to publish: unable to build hash file: Acquire-By-Hash: error creating hardlink dists/noble/main/binary-amd64/by-hash/SHA256/c3a74cd3f913af199ec980e1e183015b8afa0a3b9b0088c3c8fce08bc685a2cd: error acquiring lease on source blob dists/noble/main/binary-amd64/Packages

Azurite returns 409 / LeaseAlreadyPresent from LeaseBreakingState.acquire. After copying, internalCopyOrMoveBlob breaks the source lease with a nonzero break period. The next hash copy then tries to lease the blob while that lease is still breaking, so publishing stops before writing Release.

This might be related:

主要言語
Go
スター
2.9k
フォーク
436
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aptly-dev/aptly のほかの issue

aptly-dev/aptly の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。