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

`/v3/app` delete does not wait until service binding are unbound

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

メンテナーはふだん 3 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ruby
領域
api, backend

調査の方向性

まず、参照されている呼び出し箇所で app/actions/mixins/bindings_delete.rb と app/actions/app_delete.rb を読み、非同期の service-binding の削除が app の削除ジョブにどのような影響を与えるかを追跡します。削除は unbinding が完了するまで待つべきなのか、それとも処理中に失敗しないようにすべきなのかを判断し、その後、選択した動作によって報告された失敗ジョブが発生しなくなったことを確認します。

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

説明

unscheduled

Issue

User tries to call DELETE v3/app/<guid> for an app with a service binding where the service broker does not reply synchronously.
This can result in a failed v3 app deletion job although the service binding is deleted eventually.
App delete job:

{
   "guid":"<guid>",
   "created_at":"2023-06-28T18:46:13Z",
   "updated_at":"2023-06-28T18:46:16Z",
   "operation":"app.delete",
   "state":"FAILED",
   "errors":[
      {
         "detail":"An operation for the service binding between app myapp and service instance slow-broker-service is in progress.",
         "title":"CF-UnprocessableEntity",
         "code":10008
      }
   ],
   "warnings":[
      
   ],
   "links":{
      "self":{
         "href":"https://api.cf.bommel/v3/jobs/<guid>"
      },
      "app":{
         "href":"https://api.cf.bommel/v3/apps/<guid>"
      }
   }
}

Context

The binding deletion is implemented here:
https://github.com/cloudfoundry/cloud_controller_ng/blob/main/app/actions/mixins/bindings_delete.rb#L19-L24

Which is called during app delete:
https://github.com/cloudfoundry/cloud_controller_ng/blob/main/app/actions/app_delete.rb#L101-L104

Possible Expected Results

  • Current behavior
  • App deletion job should wait
  • App deletion job should NOT wait for binding deletion BUT not fail

-> Needs to be discussed

Current result

App deletion job fails although the binding is deleted eventually

主要言語
Ruby
スター
207
フォーク
374
平均マージ
3日 6時間
マージ済み PR(30日)
44

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

cloudfoundry/cloud_controller_ng のほかの issue

cloudfoundry/cloud_controller_ng の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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