Andrew Kyle Purtell created PHOENIX-8116:
--------------------------------------------
Summary: VarBinaryEncoded1IT should drop tables after each test
Key: PHOENIX-8116
URL: https://issues.apache.org/jira/browse/PHOENIX-8116
Project: Phoenix
Issue Type: Test
Components: test
Affects Versions: 5.3.2
Reporter: Andrew Kyle Purtell
Assignee: Andrew Kyle Purtell
Fix For: 5.4.0, 5.3.3
{{VarBinaryEncoded1IT}} often fails. The class rus for 3000 s and the 50 min
class timeout fires.
One OMID case of {{testUpsertSelectBinaryIntoVarBinaryEncoded}} also hung for
1465 s in the rollback of a failed commit:
{noformat}
org.junit.runners.model.TestTimedOutException: test timed out after 50 minutes
...
at
org.apache.hadoop.hbase.client.ConnectionImplementation.locateRegionInMeta(ConnectionImplementation.java:1027)
...
at
org.apache.omid.transaction.HBaseTransaction.flushMutations(HBaseTransaction.java:57)
at
org.apache.omid.transaction.HBaseTransaction.cleanup(HBaseTransaction.java:95)
at
org.apache.omid.transaction.AbstractTransactionManager.rollback(AbstractTransactionManager.java:302)
at
org.apache.phoenix.transaction.OmidTransactionContext.abort(OmidTransactionContext.java:147)
at
org.apache.phoenix.execute.MutationState.commit(MutationState.java:2153)
...
at
org.apache.phoenix.end2end.VarBinaryEncoded1IT.testUpsertSelectBinaryIntoVarBinaryEncoded(VarBinaryEncoded1IT.java:2451){noformat}
The cause is heap exhaustion in the test JVM.
{noformat}
java.lang.OutOfMemoryError: Java heap space
Dumping heap to ./target/java_pid29075.hprof ...
Heap dump file created [3154823116 bytes in 3.856 secs]
...
[ERROR] Tests run: 253, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3721
s <<< FAILURE! -- in org.apache.phoenix.end2end.VarBinaryEncoded1IT
[ERROR] org.apache.phoenix.end2end.VarBinaryEncoded1IT -- Time elapsed: 2491 s
<<< ERROR!
java.lang.OutOfMemoryError: Java heap space {noformat}
The {{OutOfMemoryError}} also shows up[ in the uncaught exception handlers of
the {{{}RequestThrottler{}}}, {{{}ConnnectionExpirer{}}}, region server
{{leaseChecker}} and {{IndexCDCConsumer}} threads.
This is a test defect in {{{}VarBinaryEncoded1IT{}}}.
Phoenix and HBase behave as designed.
*The class keeps every table open.* The class is in the
{{ParallelStatsDisabledTest}} group. Classes in this group share one mini
cluster in a reused fork. The class has 16 test methods and 16 parameter sets,
so it runs 256 cases. In total the class creates about 367 tables. It does not
drop any of them until {{{}@AfterClass{}}}.
*A Phoenix drop does not drop the HBase table in tests.* The test driver sets
{{dropMetaData}} to false ({{{}QueryServicesTestImpl{}}}
{{{}DEFAULT_DROP_METADATA{}}}). {{BaseTest}} sets it to true only in
distributed cluster mode. Thus {{DROP TABLE}} removes only the Phoenix
metadata, and the HBase table and its regions stay open.
*Each open region holds heap.* Each region keeps an active 2 MB MSLAB chunk.
The memstores are small and never flush.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)