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

Minor changes. #390

Merged
merged 1 commit into from
May 18, 2020
Merged

Minor changes. #390

merged 1 commit into from
May 18, 2020

Conversation

ajoymajumdar
Copy link
Contributor

Modified the 429 errors as RetryableException for the client to retry on HTTP 429. Fixed issue where druid getTable was throwing an HTTP 500 and not HTTP 404 on table not found.

…client to retry on HTTP 429. Fixed issue where druid getTable was throwing an HTTP 500 and not HTTP 404 on table not found.
@ajoymajumdar ajoymajumdar added this to the 1.3.0 milestone May 18, 2020
final ObjectNode node = this.druidClient.getLatestDataByName(name.getTableName());
final DataSource dataSource = DruidConverterUtil.getDatasourceFromLatestSegmentJsonObject(node);
return this.druidConnectorInfoConverter.getTableInfoFromDatasource(dataSource);
} catch (MetacatException e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any metacat exception is rethrown as a TableNotFound?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Method getLatestDataByName throws this specific error when segments are not found.

@ajoymajumdar ajoymajumdar merged commit cccc72b into Netflix:master May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants