Skip to content
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

PHOENIX-6955 The value of region metric--lastMajorCompactionAge is wrong,when the hfile is buckload file #1606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kerasone
Copy link

No description provided.

Copy link
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

Thanks for the patch. Could we also please have a simple test to confirm that the bug's fixed?

@@ -265,7 +265,8 @@ private WriterLength getNewWriter(final String tableName , byte[] family, Config
.withBytesPerCheckSum(CompatUtil.getBytesPerChecksum(conf))
.withBlockSize(blockSize)
.withDataBlockEncoding(encoding)
.withCellComparator(CellComparatorImpl.COMPARATOR);
.withCellComparator(CellComparatorImpl.COMPARATOR)
.withCreateTime(System.currentTimeMillis());;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be EnvironmentEdgeManager.currentTime() so that tests can override the timestamp correctly.

@Kerasone
Copy link
Author

Kerasone commented Dec 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants