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

Suppress 404 Not Found error in xxxTableIfExists methods #101

Open
xerial opened this issue Nov 1, 2017 · 0 comments
Open

Suppress 404 Not Found error in xxxTableIfExists methods #101

xerial opened this issue Nov 1, 2017 · 0 comments

Comments

@xerial
Copy link
Member

xerial commented Nov 1, 2017

If we know 404 can be returned, we should be able to configure expected error types in TDHttpClient to suppress error messages like this:

2017-11-01 08:44:52.462 DEBUG [main] TDHttpClient [404:Not Found] API request to /v3/table/delete/_tdclient_test/sample2_20171101084452261 has failed: Resource not found 
2017-11-01 08:44:52.463 WARN  [main] TDHttpClient API request failed 
com.treasuredata.client.TDClientHttpNotFoundException: [TARGET_NOT_FOUND] [404:Not Found] API request to /v3/table/delete/_tdclient_test/sample2_20171101084452261 has failed: Resource not found
	at com.treasuredata.client.TDHttpClient.handleHttpResponseError(TDHttpClient.java:510) [classes/:na]
	at com.treasuredata.client.TDHttpClient.submitRequest(TDHttpClient.java:399) [classes/:na]
	at com.treasuredata.client.TDHttpClient.submitRequest(TDHttpClient.java:465) [classes/:na]
	at com.treasuredata.client.TDHttpClient.call(TDHttpClient.java:575) [classes/:na]
	at com.treasuredata.client.TDClient.doPost(TDClient.java:251) [classes/:na]
	at com.treasuredata.client.TDClient.deleteTable(TDClient.java:458) [classes/:na]
	at com.treasuredata.client.TDClient.deleteTableIfExists(TDClient.java:466) [classes/:na]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant