Skip to content

PHOENIX-7623: Add a profile which runs ITs with phoenix ha client#2205

Open
Divneet18 wants to merge 4 commits intoapache:PHOENIX-7623-featurefrom
Divneet18:HA_Enabled_IT
Open

PHOENIX-7623: Add a profile which runs ITs with phoenix ha client#2205
Divneet18 wants to merge 4 commits intoapache:PHOENIX-7623-featurefrom
Divneet18:HA_Enabled_IT

Conversation

@Divneet18
Copy link
Contributor

No description provided.

@virajjasani
Copy link
Contributor

There are some merge conflicts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change to constant in HAGroup

url = haGroup.getRoleRecord().getActiveUrl();
if (url.isPresent()) {
return url.get() + ";" + PHOENIX_TEST_DRIVER_URL_PARAM;
} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove else block

Copy link
Contributor

@lokiore lokiore left a comment

Choose a reason for hiding this comment

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

Took initial look, some comments and questions

one suggestion, if we have failing tests which can't be run in HA Mode, maybe exclude them in pom for HA test profile so that for default they run as it is

Comment on lines 698 to 795
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use runOnConnections() for these methods, we are not using parallel policy for tests but if we want to then it will be helpful?

Copy link
Contributor

Choose a reason for hiding this comment

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

If all the tests in PR here are passing then we can start removing these comments

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make phoenix.ha.profile.active a constant.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this test still failing?

Comment on lines 1194 to 1196
Copy link
Contributor

Choose a reason for hiding this comment

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

If these exceptions are expected, then please add a comment that this is expected.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't use * imports

conf = HBaseConfiguration.create();
hbaseTestUtil = new HBaseTestingUtility(conf);
setUpConfigForMiniCluster(conf);
conf.set(QueryServices.EXTRA_JDBC_ARGUMENTS_ATTRIB, QueryServicesOptions.DEFAULT_EXTRA_JDBC_ARGUMENTS);
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we not passing this prop in conf for HA mode?

Copy link
Contributor

Choose a reason for hiding this comment

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

This test is not being run, no change needed here

Copy link
Contributor

Choose a reason for hiding this comment

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

clean up required here.

Copy link
Contributor

Choose a reason for hiding this comment

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

same here don't ignore for default mode

@Divneet18 Divneet18 requested a review from lokiore October 10, 2025 17:40
@virajjasani
Copy link
Contributor

Does the feature branch have spotless format? i.e. is it upto date with master 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.

3 participants

Comments