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

add error log for schema admin operation #11427

Merged
merged 1 commit into from
Jul 23, 2021

Conversation

wangjialing218
Copy link
Contributor

Motivation

When I use pulsar-admin schemas to upload schema file with wrong format, I got HTTP 500 Internal Server Error from pulsar-admin-tool.
And I look into broker's log but can not find any related error logs.

Modifications

export error log when schema admin operation failed.

@Anonymitaet
Copy link
Member

@wangjialing218 Thanks for your contribution. For this PR, do we need to update docs?

(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@wangjialing218
Copy link
Contributor Author

I think this PR do not need to update docs

@Anonymitaet Anonymitaet added the doc-not-needed Your PR changes do not impact docs label Jul 23, 2021
@wangjialing218
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

awesome work, very useful

LGTM

I left one minor comment, PTAL

@@ -294,4 +302,6 @@ private void validateDestinationAndAdminOperation(boolean authoritative) {
}
}
}

private static final Logger log = LoggerFactory.getLogger(SchemasResourceBase.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:
please use @Slf4j annotation from lombok

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I just copied this usage from other Class like 'TenantsBase' in same package, we could change to @Slf4j for all those Class in another PR.

@codelipenghui codelipenghui added this to the 2.9.0 milestone Jul 23, 2021
@codelipenghui codelipenghui added release/2.8.1 type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Jul 23, 2021
@codelipenghui codelipenghui merged commit 216623d into apache:master Jul 23, 2021
codelipenghui pushed a commit that referenced this pull request Jul 30, 2021
### Motivation

When I use pulsar-admin schemas to upload schema file with wrong format, I got `HTTP 500 Internal Server Error` from pulsar-admin-tool. 
And I look into broker's log but can not find any related error logs.

### Modifications

export error log when schema admin operation failed.

(cherry picked from commit 216623d)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Jul 30, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
### Motivation

When I use pulsar-admin schemas to upload schema file with wrong format, I got `HTTP 500 Internal Server Error` from pulsar-admin-tool. 
And I look into broker's log but can not find any related error logs.

### Modifications

export error log when schema admin operation failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.8 Archived: 2.8 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.1 type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants