Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Here are the following tests failing while checking whether stats enabled or not. To check it we try to pick a proper region but some times we may get wrong region like system table region or meta region from the RS online regions for which stats won't be enabled. So we need to pick the right region to check for it.
[ERROR] Tests run: 26, Failures: 0, Errors: 2, Skipped: 4, Time elapsed: 71.826 s <<< FAILURE! - in org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT [ERROR] testGuidePostWidthUsedInDefaultStatsCollector[mutable = true, transactional = false, isUserTableNamespaceMapped = false, columnEncoded = true](org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT) Time elapsed: 2.307 s <<< ERROR! java.lang.ClassCastException: org.apache.phoenix.schema.stats.NoOpStatisticsCollector cannot be cast to org.apache.phoenix.schema.stats.DefaultStatisticsCollector [ERROR] testGuidePostWidthUsedInDefaultStatsCollector[mutable = true, transactional = false, isUserTableNamespaceMapped = true, columnEncoded = true](org.apache.phoenix.end2end.ColumnEncodedMutableNonTxStatsCollectorIT) Time elapsed: 2.506 s <<< ERROR! java.lang.ClassCastException: org.apache.phoenix.schema.stats.NoOpStatisticsCollector cannot be cast to org.apache.phoenix.schema.stats.DefaultStatisticsCollector [ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 4, Time elapsed: 85.923 s <<< FAILURE! - in org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT [ERROR] testGuidePostWidthUsedInDefaultStatsCollector[mutable = false, transactional = true, isUserTableNamespaceMapped = false, columnEncoded = true](org.apache.phoenix.end2end.ColumnEncodedImmutableTxStatsCollectorIT) Time elapsed: 2.3 s <<< ERROR! java.lang.ClassCastException: org.apache.phoenix.schema.stats.NoOpStatisticsCollector cannot be cast to org.apache.phoenix.schema.stats.DefaultStatisticsCollector
[ERROR] Tests run: 26, Failures: 0, Errors: 1, Skipped: 4, Time elapsed: 85.686 s <<< FAILURE! - in org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT [ERROR] testGuidePostWidthUsedInDefaultStatsCollector[mutable = true, transactional = true, isUserTableNamespaceMapped = false, columnEncoded = true](org.apache.phoenix.end2end.ColumnEncodedMutableTxStatsCollectorIT) Time elapsed: 2.305 s <<< ERROR! java.lang.ClassCastException: org.apache.phoenix.schema.stats.NoOpStatisticsCollector cannot be cast to org.apache.phoenix.schema.stats.DefaultStatisticsCollector
[ERROR] Tests run: 26, Failures: 0, Errors: 2, Skipped: 4, Time elapsed: 72.432 s <<< FAILURE! - in org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT [ERROR] testGuidePostWidthUsedInDefaultStatsCollector[mutable = false, transactional = true, isUserTableNamespaceMapped = false, columnEncoded = false](org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT) Time elapsed: 2.303 s <<< ERROR! java.lang.NullPointerException [ERROR] testGuidePostWidthUsedInDefaultStatsCollector[mutable = false, transactional = true, isUserTableNamespaceMapped = true, columnEncoded = false](org.apache.phoenix.end2end.NonColumnEncodedImmutableTxStatsCollectorIT) Time elapsed: 2.513 s <<< ERROR! java.lang.NullPointerException