Skip to content

[Enhancement] (fe exception) write a java annotation to catch throwable from a method and print log #17238

Closed
@yiguolei

Description

Search before asking

  • I had searched in the issues and found no similar issues.

Description

There are some method in doris that may throw exception but doris does not deal with it. For exmple, FrontendServiceImpl the method getTableNames throws exception, but not print it. If BE call this method and failed, we do not know what happened. And it is very ugly to add try catch in every method. Maybe we could add a java annotation like @LOG_EXCEPITON

@LOG_EXCEPTION
@Override
public TGetTablesResult getTableNames(TGetTablesParams params) throws TException {
    LOG.debug("get table name request: {}", params);
    TGetTablesResult result = new TGetTablesResult();
    List<String> tablesResult = Lists.newArrayList();

Solution

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions