Error current heartbeatlag (9223372036.85s) is too high

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

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

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

評価

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

調査の方向性

まず gh-ost 1.1.6 の TimeSinceLastHeartbeatOnChangelog() と heartbeat-lag パスを調査し、次に指定されたタイムゾーン設定で MariaDB 11.4 を使用して報告を再現します。タイムスタンプが 0001-01-01 のままになる理由を特定し、完了したマイグレーションが 9223372036.85 秒ではなく実際の heartbeat lag を報告することを確認します。

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

説明

Hi all, I want to ask about gh-ost migration.
When I run gh-ost migration on my virtual machine and the progress reached 100%, it got error log current heartbeatlag 9223372036.85s is too high, it needs to be less than both --max-lag-millis (1.50s) and --cut-over-lock-timeout-seconds (3.00) to continue.
Here is the current specification:

  1. gh-ost version is 1.1.6
  2. using MariaDB version 11.4

What I have done are:

  1. Upgrading the gh-ost version from 1.1.5 into 1.1.6
  2. Running the gh-ost command without --max-lag-millis
  3. Reseting the master database to refresh the replica
  4. Run ANALYZE TABLE to refresh the performance schema
  5. Also I have set the timezone setting into UTC+7 to comply with my current timezone in Indonesia by running this SQL: SET GLOBAL time_zone = '+07:00'; and SET time_zone = '+07:00';

So I'm curious about the printed value of TimeSinceLastHeartbeatOnChangelog(), I decide to debug it on my local by print its value, but it shows 0001-01-01 00:00:00 +0000 UTC, hence the heartbeat lag value become extremely huge.

Do you have any idea why this happens? Will appreciate any help given for this issue.
Thanks in advance!

Attachments:
Screen Shot 2024-08-19 at 12 53 59

主要言語
Go
スター
13.6k
フォーク
1.4k
平均マージ
9日 19時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

github/gh-ost のほかの issue

github/gh-ost の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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