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/11/08 07:41:30 UTC

[GitHub] [pulsar] Gustascern opened a new issue, #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file

Gustascern opened a new issue, #18383:
URL: https://github.com/apache/pulsar/issues/18383

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Version
   
   Pulsar version 2.9.1
   Debian 11
   
   ### Minimal reproduce step
   
   I have a cluster of 6 machines. 3 servers run broker and bookkeeper, 3 run zookeeper. Firstly, I configured functions_worker.yml like this on 3 separate broker servers. first one looks like this. config is similar in all three machines.
   
   workerId: "test"
   workerHostname: "vtst-eims-pbb1.corp.rst.lt"
   workerPort: 6750
   workerPortTls: 6751
   configurationMetadataStoreUrl: zk:172.28.80.233:2181,172.28.80.234:2181,172.28.80.235:2181
   
   Then set this parameter in broker.conf and restarted the broker.
   functionsWorkerEnabled=true
   
   
   ### What did you expect to see?
   
   I expected the broker to call the correct zookeeper cluster and display correct values.
   
   ### What did you see instead?
   
   But for some reason my worker id is not changing, 
   {"workerId":"c-pulsartst-fw-vtst-eims-pbb1.corp.rst.lt-8080","workerHostname":"vtst-eims-pbb1.corp.rst.lt","port":8080}
   
   and broker keeps connecting to local zookeeper, which this server doesn't have. My config file has no mention of localhost connection, i have no idea why it keeps doing that
   Nov 03 14:14:33 vtst-eims-pbb1.corp.rst.lt pulsar[2390139]: 2022-11-03T14:14:33,903+0200 [DLM-/pulsar/functions-OrderedScheduler-1-0-SendThread(localhost:2181)] WARN  org.apache.zookeeper.ClientCnxn - Session 0x0 for sever localhost/127.0.0.1:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException..
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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.apache.org

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


Re: [I] [Bug] Pulsar broker doesn't use functions_worker.yml file [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat commented on issue #18383:
URL: https://github.com/apache/pulsar/issues/18383#issuecomment-6386689418

   Thanks @Gustascern for the report. This was reported on Pulsar 2.9, which is no longer supported; the supported releases are 4.0.x, 4.2.x and 5.0.x. Much of the code involved has changed since, and the problem hasn't been confirmed on a current release, so I'm closing it as part of cleaning up old reports. If you still see it on a supported release, please open a new issue with the version and steps to reproduce, and link this one.


-- 
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] nodece commented on issue #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file

Posted by GitBox <gi...@apache.org>.
nodece commented on issue #18383:
URL: https://github.com/apache/pulsar/issues/18383#issuecomment-1307252845

   cc @freeznet, could we support that config?


-- 
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] github-actions[bot] commented on issue #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #18383:
URL: https://github.com/apache/pulsar/issues/18383#issuecomment-1344976111

   The issue had no activity for 30 days, mark with Stale label.


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


Re: [I] [Bug] Pulsar broker doesn't use functions_worker.yml file [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat closed issue #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file
URL: https://github.com/apache/pulsar/issues/18383


-- 
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] Gustascern commented on issue #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file

Posted by GitBox <gi...@apache.org>.
Gustascern commented on issue #18383:
URL: https://github.com/apache/pulsar/issues/18383#issuecomment-1307019889

   > Good catch! The broker config overrides the function worker config!
   > 
   > Do you want to override any values?
   
   Yeah, I will list them here:
   
   - workerId:
   - workerHostname:
   - configurationMetadataStoreUrl:
   - pulsarServiceUrl:
   - pulsarWebServiceUrl:
   - brokerClientAuthenticationPlugin:
   - brokerClientAuthenticationParameters:
   - pulsarFunctionsNamespace:
   - pulsarFunctionsCluster:
   
   Those would be ones for starters :)


-- 
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] freeznet commented on issue #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file

Posted by GitBox <gi...@apache.org>.
freeznet commented on issue #18383:
URL: https://github.com/apache/pulsar/issues/18383#issuecomment-1308128182

   The Functions Worker needs to inhering the configs from Broker if it runs with the Broker. In your case, it is suggested to run Functions Worker separately, which will not be affected by the Broker's config.


-- 
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] nodece commented on issue #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file

Posted by GitBox <gi...@apache.org>.
nodece commented on issue #18383:
URL: https://github.com/apache/pulsar/issues/18383#issuecomment-1306955199

   Good catch! The broker config overrides the function worker config!


-- 
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] Gustascern commented on issue #18383: [Bug] Pulsar broker doesn't use functions_worker.yml file

Posted by GitBox <gi...@apache.org>.
Gustascern commented on issue #18383:
URL: https://github.com/apache/pulsar/issues/18383#issuecomment-1308413827

   Thanks for your help! I tried to run it seperately in the broker machine, and I still get the same error even though im running it using nohup mode. It still picks up the localhost from somewhere. I tried to run it in the zookeeper node, and it worked :) atleast for now


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