-
Notifications
You must be signed in to change notification settings - Fork 993
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
base: PHOENIX-7210-feature
Are you sure you want to change the base?
Conversation
|
||
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); |
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.
Some initial thoughts -
- Maybe we should use the new naming convention (tablename decorated) only for the distributed case.
- Do the regular ITs pass? when not qualified by a category?
Signed-off-by: Jacob Isaac <jisaac@salesforce.com>
… real distributed cluster
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.
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"); |
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.
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> |
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.
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"
No description provided.