Skip to content

Conversation

@Himanshu-g81
Copy link
Contributor

@Himanshu-g81 Himanshu-g81 commented Jan 23, 2026

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.

@Himanshu-g81 Himanshu-g81 force-pushed the PHOENIX-7755-consistency-point-impl branch from 214ae38 to d2e0c49 Compare January 24, 2026 20:18
import org.apache.phoenix.thirdparty.com.google.common.collect.Maps;

@Category(NeedsOwnMiniClusterTest.class)
public class ReplicationLogReplayServiceTestIT extends BaseTest {
Copy link
Contributor

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.

Copy link
Contributor Author

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 {
Copy link
Contributor

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 ?

Copy link
Contributor Author

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();
Copy link
Contributor

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.

@Himanshu-g81 Himanshu-g81 force-pushed the PHOENIX-7755-consistency-point-impl branch from 4ce2c75 to dab2b12 Compare February 10, 2026 07:15
@Himanshu-g81
Copy link
Contributor Author

Force push due to rebase with upstream branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants