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

   <!--
   ### Contribution Checklist
     
     - PR title format should be *[type][component] summary*. For details, see 
*[Guideline - Pulsar PR Naming 
Convention](https://docs.google.com/document/d/1d8Pw6ZbWk-_pCKdOmdvx9rnhPiyuxwq60_TrD68d7BA/edit#heading=h.trs9rsex3xom)*.
 
   
     - Fill out the template below to describe the changes contributed by the 
pull request. That will give reviewers the context they need to do the review.
     
     - Each pull request should address only one issue, not mix up code from 
multiple issues.
     
     - Each commit in the pull request has a meaningful commit message
   
     - Once all items of the checklist are addressed, remove the above text and 
this checklist, leaving only the filled out template below.
   
   **(The sections below can be removed for hotfixes of typos)**
   -->
   
   *(If this PR fixes a github issue, please add `Fixes #<xyz>`.)*
   
   Fixes #<xyz>
   
   Master Issue: #<xyz>
   
   ### Motivation
   
   Pulsar Function will run failed when pulsar standalone restart, the reason 
is function work service start before package management service.  
   
   Had enable package management and got the error of `Package Management 
Service is not enabled in the broker`.
   
   ```
   lanrendeMacBook-Pro:~ lanren$ pulsarctl functions status --name win
   {
     "numInstances": 1,
     "numRunning": 0,
     "instances": [
       {
         "instanceId": 0,
         "status": {
           "running": false,
           "error": "Package Management Service is not enabled in the broker.",
           "numRestarts": 0,
           "numReceived": 0,
           "numSuccessfullyProcessed": 0,
           "numUserExceptions": 0,
           "latestUserExceptions": null,
           "numSystemExceptions": 0,
           "latestSystemExceptions": null,
           "averageLatency": 0,
           "lastInvocationTime": 0,
           "workerId": "c-standalone-fw-localhost-8080"
         }
       }
     ]
   }
   ```
   
   ### Modifications
   
   Let package management service start before function work service.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   1. run pulsar standalone
   2. create function
   3. restart pulsar standalone
   4. check function status
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (yes / no)
     - The public API: (yes / no)
     - The schema: (yes / no / don't know)
     - The default values of configurations: (yes / no)
     - The wire protocol: (yes / no)
     - The rest endpoints: (yes / no)
     - The admin cli options: (yes / no)
     - Anything that affects deployment: (yes / no / don't know)
   
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
     
   - [x] `doc-not-needed` 
   
   Bug Fix
     
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)


-- 
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]

Reply via email to