HirakAri shutdown in Refresh endpoint

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

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

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

評価

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

調査の方向性

バッチマイグレーションの実行中に、Spring Boot 2.7.0、Spring Batch 4.3.6、Hikari 4.0.3、@RefreshScope、および refresh エンドポイントを使って、まず問題を再現します。refresh の前後で datasource の動作を比較します。進行中のバッチジョブが Hikari のシャットダウンによって中断されなければ完了です。

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

説明

waiting-for-triage

Describe the bug
We are using spring boot 2.7.0 , spring batch 4.3.6 and hikari 4.0.3 .

Our batch application is used to migrate data from ORACLE DB to POSTGRES DB and we are using @Refreshscope to update both DB credentials.

So when ever the refresh endpoint invoked , Hikari is shutting down even then batch job is in progress .

I tried various work around 1. Graceful Shutdown 2. refreshable property , but nothing seems to be working.

Sample
If possible, please provide a test case or sample application that reproduces
the problem. This makes it much easier for us to diagnose the problem and to verify that
we have fixed it.

主要言語
Java
スター
751
フォーク
748
平均マージ
1日 1時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

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

spring-cloud/spring-cloud-commons のほかの issue

spring-cloud/spring-cloud-commons の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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