Technoboy- opened a new issue #11649: URL: https://github.com/apache/pulsar/issues/11649
**Describe the bug** Cluster didn't respond error messages when hitting the resource limit **To Reproduce** Set the limit of number of tenants to 4, create a new tenant when there're already 4 tenants. **Expected behavior** Respond valid error messages. **Screenshots** > curl -v -XPUT -H "Authorization: Bearer $TOKEN" https://xxx.com/admin/v2/tenants/abc -d '{"allowedClusters": ["free"],"adminRoles":["admin"]}' > * Trying 198.18.8.55... > * TCP_NODELAY set > * Connected to xxx.com (x.x.x.x) port 443 (#0) > * ALPN, offering h2 > * ALPN, offering http/1.1 > * successfully set certificate verify locations: > * CAfile: /etc/ssl/cert.pem > CApath: none > * TLSv1.2 (OUT), TLS handshake, Client hello (1): > * TLSv1.2 (IN), TLS handshake, Server hello (2): > * TLSv1.2 (IN), TLS handshake, Certificate (11): > * TLSv1.2 (IN), TLS handshake, Server key exchange (12): > * TLSv1.2 (IN), TLS handshake, Request CERT (13): > * TLSv1.2 (IN), TLS handshake, Server finished (14): > * TLSv1.2 (OUT), TLS handshake, Certificate (11): > * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): > * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): > * TLSv1.2 (OUT), TLS handshake, Finished (20): > * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1): > * TLSv1.2 (IN), TLS handshake, Finished (20): > * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-SHA384 > * ALPN, server did not agree to a protocol > * Server certificate: > * subject: CN=xxx.com > * start date: Nov 10 07:21:31 2020 GMT > * expire date: Feb 8 07:21:31 2021 GMT > * subjectAltName: host "xxx.com" matched cert's "xxx.com" > * issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3 > * SSL certificate verify ok. > > PUT /admin/v2/tenants/abc HTTP/1.1 > > Host: xxx.com > > User-Agent: curl/7.64.1 > > Accept: */* > > Authorization: Bearer > > Content-Length: 52 > > Content-Type: application/x-www-form-urlencoded > > > * upload completely sent off: 52 out of 52 bytes > < HTTP/1.1 401 Unauthorized > < Content-Length: 0 > < Server: Jetty(9.4.29.v20200521) > < > * Connection #0 to host xxxx left intact > * Closing connection 0 **Additional context** Add any other context about the problem here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
