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 7211 : Identify IT tests that can be run successfully against real distributed cluster #1875

Open
wants to merge 7 commits into
base: PHOENIX-7210-feature
Choose a base branch
from

Conversation

Divneet18
Copy link
Contributor

No description provided.


public static String generateUniqueName() {
int nextName = NAME_SUFFIX.incrementAndGet();
if (nextName >= MAX_SUFFIX_VALUE) {
throw new IllegalStateException("Used up all unique names");
}
TABLE_COUNTER.incrementAndGet();
return "N" + Integer.toString(MAX_SUFFIX_VALUE + nextName).substring(1);
return phoenixTestTableName.getTableName() + "_" + Integer.toString(MAX_SUFFIX_VALUE + nextName).substring(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Some initial thoughts -

  1. Maybe we should use the new naming convention (tablename decorated) only for the distributed case.
  2. Do the regular ITs pass? when not qualified by a category?

Copy link
Contributor

@jpisaac jpisaac left a comment

Choose a reason for hiding this comment

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

Did an initial pass. Few nits

@@ -975,10 +999,54 @@ private static void deletePriorTables(long ts, Connection globalConn, String url
ResultSet rs = dbmd.getTables(null, null, null, tableTypes);
String lastTenantId = null;
Connection conn = globalConn;
System.out.println("outside");
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Remember to remove these debug lines

<configuration>
<reuseForks>false</reuseForks>
<argLine>@{jacocoArgLine} -enableassertions -Xmx3000m -Djava.security.egd=file:/dev/./urandom "-Djava.library.path=${hadoop.library.path}${path.separator}${java.library.path}" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./target/ -XX:NewRatio=4 -XX:SurvivorRatio=8 -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:CMSInitiatingOccupancyFraction=68</argLine>
<groups>org.apache.phoenix.end2end.SupportsDistributedClusterTest</groups>
Copy link
Contributor

Choose a reason for hiding this comment

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

What category is SupportsDistributedClusterTest? How is it different from SuccessfulSupportsDistributedClusterTest?
Or is the intent to use one or the other? In that case I would vote for "SupportsDistributedClusterTest"

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