[
https://issues.apache.org/jira/browse/IMPALA-14306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016254#comment-18016254
]
Quanlong Huang commented on IMPALA-14306:
-----------------------------------------
The reason that the query still succeeds and returns an empty list is that the
exception is caught in LocalCatalog.getDataSources():
{code:java}
public List<? extends FeDataSource> getDataSources(PatternMatcher matcher) {
try {
List<DataSource> dataSrcs = metaProvider_.loadDataSources();
return Catalog.filterCatalogObjectsByPattern(dataSrcs, matcher);
} catch (Exception e) {
LOG.info("Unable to load DataSource objects, ", e);
// Return empty list.
return Lists.newArrayList();
}
} {code}
https://github.com/apache/impala/blob/2fb56afb5e645a0c4e2b9bc3ab55e52cbee9fac0/fe/src/main/java/org/apache/impala/catalog/local/LocalCatalog.java#L248-L251
> TestExtDataSources.test_catalogd_ha_failover failed
> ---------------------------------------------------
>
> Key: IMPALA-14306
> URL: https://issues.apache.org/jira/browse/IMPALA-14306
> Project: IMPALA
> Issue Type: Bug
> Reporter: Xuebin Su
> Assignee: Quanlong Huang
> Priority: Critical
>
> h3. Stacktrace
> {code:java}
> custom_cluster/test_ext_data_sources.py:170: in test_catalogd_ha_failover
> assert "FailoverInSyncJdbcDataSource" in result.get_data()
> E assert 'FailoverInSyncJdbcDataSource' in ''
> E + where '' = <bound method ImpylaHS2ResultSet.get_data of
> <tests.common.impala_connection.ImpylaHS2ResultSet object at
> 0x7f4b7adfcad0>>()
> E + where <bound method ImpylaHS2ResultSet.get_data of
> <tests.common.impala_connection.ImpylaHS2ResultSet object at 0x7f4b7adfcad0>>
> = <tests.common.impala_connection.ImpylaHS2ResultSet object at
> 0x7f4b7adfcad0>.get_data{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]