Skip to content

HIVE-25862: Persist the time of last run of the initiator#2945

Merged
asinkovits merged 1 commit intoapache:masterfrom
asinkovits:HIVE-25862
Jan 17, 2022
Merged

HIVE-25862: Persist the time of last run of the initiator#2945
asinkovits merged 1 commit intoapache:masterfrom
asinkovits:HIVE-25862

Conversation

@asinkovits
Copy link
Contributor

What changes were proposed in this pull request?

Store the last run timestamp in the MT_KEY2 column of the AUX table for the initiator, so that its persisted across restarts.

Why are the changes needed?

The time of last run is used as a filter when finding compaction candidates.
Because it's only stored in memory, we lose this filtering capability if the service restarts, so it would make sense to persist it.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual testing was done.

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than minor comments it LGTM

Change-Id: Id49e0ef7c721585864b9831278ce40ad55313dc7
@asinkovits asinkovits merged commit eabe8ae into apache:master Jan 17, 2022
DongWei-4 pushed a commit to DongWei-4/hive that referenced this pull request Oct 28, 2022
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants