-
Notifications
You must be signed in to change notification settings - Fork 2k
[Enhancement] Change time-related column type to datetime in FeTabletSchedules system table #59813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Change time-related column type to datetime in FeTabletSchedules system table #59813
Conversation
686abd1
to
b59c86c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it cause issue during rolling upgrade? The there are new BE and old version FE, what will happen to the cluster?
Yes, the query will fail with error |
Did you give it a try? |
…Schedules system table Signed-off-by: wyb <wybb86@gmail.com>
8d532b3
to
c6bf7f4
Compare
I tested this yesterday, but i find a solution now, please review. |
9119be9
to
707b1d6
Compare
Signed-off-by: wyb <wybb86@gmail.com>
707b1d6
to
ea86695
Compare
Co-authored-by: alvin <115669851+alvin-celerdata@users.noreply.github.com> Signed-off-by: wyb <wybb86@gmail.com>
Co-authored-by: alvin <115669851+alvin-celerdata@users.noreply.github.com> Signed-off-by: wyb <wybb86@gmail.com>
|
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 3 / 3 (100.00%) file detail
|
[BE Incremental Coverage Report]❌ fail : 21 / 29 (72.41%) file detail
|
…Schedules system table (StarRocks#59813) ## Why I'm doing: `CREATE_TIME, SCHEDULE_TIME, FINISH_TIME` column types are double. ``` mysql> select * from fe_tablet_schedules; +----------+--------------+-----------+--------+----------+-----------+----------------+----------------+----------------+----------------+-----------+------------+-------------+----------------+-------------------------------------+ | TABLE_ID | PARTITION_ID | TABLET_ID | TYPE | PRIORITY | STATE | TABLET_STATUS | CREATE_TIME | SCHEDULE_TIME | FINISH_TIME | CLONE_SRC | CLONE_DEST | CLONE_BYTES | CLONE_DURATION | MSG | +----------+--------------+-----------+--------+----------+-----------+----------------+----------------+----------------+----------------+-----------+------------+-------------+----------------+-------------------------------------+ | 52033 | 52032 | 52036 | REPAIR | HIGH | CANCELLED | DISK_MIGRATION | 1749609761.376 | 1749609762.384 | 1749609762.384 | -1 | -1 | 0 | 0 | there is no replica need to migrate | ``` ## What I'm doing: change double to datetime. ``` mysql> select * from fe_tablet_schedules; +----------+--------------+-----------+--------+----------+-----------+----------------+---------------------+---------------------+---------------------+-----------+------------+-------------+----------------+-------------------------------------+ | TABLE_ID | PARTITION_ID | TABLET_ID | TYPE | PRIORITY | STATE | TABLET_STATUS | CREATE_TIME | SCHEDULE_TIME | FINISH_TIME | CLONE_SRC | CLONE_DEST | CLONE_BYTES | CLONE_DURATION | MSG | +----------+--------------+-----------+--------+----------+-----------+----------------+---------------------+---------------------+---------------------+-----------+------------+-------------+----------------+-------------------------------------+ | 52033 | 52032 | 52036 | REPAIR | HIGH | CANCELLED | DISK_MIGRATION | 2025-06-11 10:42:41 | 2025-06-11 10:42:42 | 2025-06-11 10:42:42 | -1 | -1 | 0 | 0 | there is no replica need to migrate | ``` Signed-off-by: wyb <wybb86@gmail.com> Co-authored-by: alvin <115669851+alvin-celerdata@users.noreply.github.com> Signed-off-by: AntiTopQuark <AntiTopQuark1350@outlook.com>
Why I'm doing:
CREATE_TIME, SCHEDULE_TIME, FINISH_TIME
column types are double.What I'm doing:
change double to datetime.
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: