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/12/17 05:34:41 UTC
[GitHub] [pulsar] flowchartsman opened a new issue, #18966: [Bug] Cannot update functions with Package URL
flowchartsman opened a new issue, #18966:
URL: https://github.com/apache/pulsar/issues/18966
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
Pulsar v2.10.2
### Minimal reproduce step
1) build a go function (maybe works with python or java too, don't know)
```
pulsar-admin packages upload function://public/default/myfunction@1.0 --path /full/path/to/function_binary --description "my function"
The package 'function://public/default/myfunction@1.0' uploaded from path '/full/path/to/function_binary' successfully
pulsar-admin functions create --tenant public --namespace default --name myfunc --go "function://public/default/myfunction@1.0" --inputs persistent://public/default/test
Created successfully
pulsar-admin packages upload function://public/default/myfunction@2.0 --path /full/path/to/function_binary_v2 --description "my function, but newer"
The package 'function://public/default/myfunction@2.0' uploaded from path '/full/path/to/function_binary_v2' successfully
pulsar-admin functions update --go "function://public/default/myfunction@2.0" --tenant public --namespace default --name myfunc
null
Reason: java.lang.IllegalArgumentException: File is not a normal file /Users/me/pulsar/function:/public/default/myfunction@2.0
```
### What did you expect to see?
```
Updated successfully
```
### What did you see instead?
```
Reason: java.lang.IllegalArgumentException: File is not a normal file /Users/me/pulsar/function:/public/default/myfunction@2.0
```
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] 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
[GitHub] [pulsar] Technoboy- closed issue #18966: [Bug] Cannot update functions with Package URL
Posted by "Technoboy- (via GitHub)" <gi...@apache.org>.
Technoboy- closed issue #18966: [Bug] Cannot update functions with Package URL
URL: https://github.com/apache/pulsar/issues/18966
--
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] flowchartsman commented on issue #18966: [Bug] Cannot update functions with Package URL
Posted by GitBox <gi...@apache.org>.
flowchartsman commented on issue #18966:
URL: https://github.com/apache/pulsar/issues/18966#issuecomment-1356380796
It's worth noting that the docs explicitly say you can do this with `function` and `file` urls:
```
--go
Path to the main Go executable binary for the function (if the function
is written in Go). It also supports URL path [http/https/file (file
protocol assumes that file already exists on worker host)/function
(package URL from packages management service)] from which worker can
download the package.
```
`file` does not work either.
--
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] flowchartsman commented on issue #18966: [Bug] Cannot update functions with Package URL
Posted by GitBox <gi...@apache.org>.
flowchartsman commented on issue #18966:
URL: https://github.com/apache/pulsar/issues/18966#issuecomment-1356057985
Deleting and re-creating the function with `function create` might work under certain circumstances, but if you have your function set to clean up subscriptions when it is deleted, then this would essentially wipe its cursor and create a new one at "earliest/latest" depending, and my functions are set up in this way, so the workaround won't work for me, sadly.
--
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 #18966: [Bug] Cannot update functions with Package URL
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #18966:
URL: https://github.com/apache/pulsar/issues/18966#issuecomment-1384742460
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
[GitHub] [pulsar] jiangpengcheng commented on issue #18966: [Bug] Cannot update functions with Package URL
Posted by "jiangpengcheng (via GitHub)" <gi...@apache.org>.
jiangpengcheng commented on issue #18966:
URL: https://github.com/apache/pulsar/issues/18966#issuecomment-1480479511
This is a pulsar-admin bug, could you try with https://github.com/streamnative/pulsarctl? it is a pulsar cli written in g
--
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