-
Notifications
You must be signed in to change notification settings - Fork 1k
PHOENIX-7755 Add support for Consistency Point calculation in Replication Log Replay on StandBy Cluster #2356
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
base: PHOENIX-7562-feature-new
Are you sure you want to change the base?
Conversation
214ae38 to
d2e0c49
Compare
| import org.apache.phoenix.thirdparty.com.google.common.collect.Maps; | ||
|
|
||
| @Category(NeedsOwnMiniClusterTest.class) | ||
| public class ReplicationLogReplayServiceTestIT extends BaseTest { |
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.
Can you instead extend from HABaseIT ? Trying to ensure that all HA ITs extend the same base class. Feel free to enhance it.
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.
Sure, looks like it's recently added. Have updated this class to extend HABaseIT instead. Thanks.
| } | ||
|
|
||
| @After | ||
| public void tearDown() throws IOException { |
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.
Do you need a teardown ?
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.
We are not creating any file so not required, have removed it. Thanks.
| private PhoenixHAAdmin peerHaAdmin; | ||
|
|
||
| @Rule | ||
| public TestName testName = new TestName(); |
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.
The convention we are following in other ITs is to use testName.getMethodName as the HA group name. This way each test creates its own HA group and there is no interference from one test to another.
4ce2c75 to
dab2b12
Compare
|
Force push due to rebase with upstream branch. |
Definition of consistency point - https://docs.google.com/document/d/1usap8PCYFU0Z4orznUPvk0tnSv0X-vnbgD_QZejrnv0/edit?tab=t.0#bookmark=id.c1dczn86acar
Note: The lastRoundInSync & lastRoundProcessed are already initialized based on cluster state, i.e. (DEGRADED / sync replication) when RS starts (code reference) - including fetching the last round in sync from HA Store if cluster is in DEGRADED state.