Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

feat: add more exception info on synchronous APIs #62

Merged
merged 3 commits into from
Nov 4, 2019

Conversation

neverchanje
Copy link

@neverchanje neverchanje commented Nov 1, 2019

In most synchronous APIs of PegasusTable, when Future.await throws InterruptedException and TimeoutException, they are wrapped under PException with simply coded ERR_TIMEOUT. This makes it hard to distinguish the real problem.

So here we add more details on each exception, InterruptedException is coded ERR_THREAD_INTERRUPTED, and information like "tableName" and "timeout ms" is complemented.

@foreverneverer
Copy link
Contributor

foreverneverer commented Nov 1, 2019

这个pr就不加版本信息了是吗?

@neverchanje
Copy link
Author

下个PR加吧,版本很重要,在新的PR加比较好

foreverneverer
foreverneverer previously approved these changes Nov 2, 2019
@neverchanje neverchanje merged commit 592bcde into XiaoMi:thrift-0.11.0-inlined Nov 4, 2019
@neverchanje neverchanje deleted the exceptioninfo branch November 4, 2019 03:15
foreverneverer pushed a commit to foreverneverer/pegasus-java-client that referenced this pull request Nov 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants