You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/13 09:26:15 UTC

[GitHub] [pulsar] massakam opened a new pull request, #15583: [bug][broker] Create "standalone" cluster when starting standalone server

massakam opened a new pull request, #15583:
URL: https://github.com/apache/pulsar/pull/15583

   ### Motivation
   
   Up to version 2.10.0, we could create any tenant as soon as we started the standalone server. However, the current master cannot do that.
   ```sh
   $ ./bin/pulsar-admin tenants create foo
   
   2022-05-13T13:33:21,852+0900 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/tenants/foo] Failed to perform http put request: javax.ws.rs.ClientErrorException: HTTP 412 Clusters can not be empty
   Clusters can not be empty
   
   Reason: Clusters can not be empty
   
   $ ./bin/pulsar-admin tenants create -c standalone foo
   
   2022-05-13T13:33:37,011+0900 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/tenants/foo] Failed to perform http put request: javax.ws.rs.ClientErrorException: HTTP 412 Clusters do not exist
   Clusters do not exist
   
   Reason: Clusters do not exist
   ```
   
   ### Modifications
   
   The reason why tenant creation fails is that the "standalone" cluster does not actually exist.
   ```sh
   $ grep 'clusterName' conf/standalone.conf
   
   clusterName=standalone
   
   $ ./bin/pulsar-admin clusters get standalone
   
   Cluster does not exist
   
   Reason: Cluster does not exist
   ```
   The process of creating this cluster has been removed in https://github.com/apache/pulsar/pull/15186, but it seems that there is no need to remove it. So, I added the process of creating the "standalone" cluster again.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   ### Documentation
   
   - [ ] `no-need-doc`


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] Technoboy- merged pull request #15583: [fix][broker] Create "standalone" cluster when starting standalone server

Posted by GitBox <gi...@apache.org>.
Technoboy- merged PR #15583:
URL: https://github.com/apache/pulsar/pull/15583


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] codelipenghui commented on pull request #15583: [fix][broker] Create "standalone" cluster when starting standalone server

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on PR #15583:
URL: https://github.com/apache/pulsar/pull/15583#issuecomment-1126614380

   /pulsarbot run-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] merlimat commented on pull request #15583: [fix][broker] Create "standalone" cluster when starting standalone server

Posted by GitBox <gi...@apache.org>.
merlimat commented on PR #15583:
URL: https://github.com/apache/pulsar/pull/15583#issuecomment-1126213108

   @massakam The CPP tests are failing because the script is creating the `standalone` cluster again: 
   
   ```
   2022-05-13T10:28:38,588+0000 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.BaseResource - [https://localhost:8443/admin/v2/clusters/standalone] Failed to perform http put request: javax.ws.rs.ClientErrorException: HTTP 409 Cluster already exists
   [42](https://github.com/apache/pulsar/runs/6420579337?check_suite_focus=true#step:11:42)
   Cluster already exists
   [43](https://github.com/apache/pulsar/runs/6420579337?check_suite_focus=true#step:11:43)
   ```


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] massakam commented on pull request #15583: [fix][broker] Create "standalone" cluster when starting standalone server

Posted by GitBox <gi...@apache.org>.
massakam commented on PR #15583:
URL: https://github.com/apache/pulsar/pull/15583#issuecomment-1126649952

   /pulsarbot run-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] massakam commented on pull request #15583: [fix][broker] Create "standalone" cluster when starting standalone server

Posted by GitBox <gi...@apache.org>.
massakam commented on PR #15583:
URL: https://github.com/apache/pulsar/pull/15583#issuecomment-1126658739

   > @massakam The CPP tests are failing because the script is creating the `standalone` cluster again:
   
   Fixed the script to create the standalone cluster only if it doesn't exist.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org