zed
zed copied to clipboard
"zed use" accepts KSUID, but the pool still can't be used
Repro is with Zed commit e03665e. This issue was first reported by a community user in a Slack thread.
Start an empty lake in one terminal.
$ zed -version
Version: v1.10.0-20-ge03665e6
$ zed init -lake scratch
lake created: file:///Users/phil/scratch
$ zed serve -lake scratch
{"level":"info","ts":1698349177.6182148,"logger":"core","msg":"Started"}
{"level":"info","ts":1698349177.6186109,"logger":"httpd","msg":"Listening","addr":"[::]:9867"}
...
In another terminal, I can create/use/load to a Pool successfully if I reference it by name.
$ zed create Demo
pool created: Demo 2XJZd6n9VWl5B7poYWCwkHK8cjr
$ zed use Demo
Switched to branch "main" on pool "Demo"
$ echo '{s:"hello, world"}' | zed load -
(12/1) 19B 19B/s
2XJZfdkrIBBLzVQW0Wvj0nlBSCZ committed
And if I try to use a pool that doesn't exist, of course I get a helpful error message.
$ zed use DoesNotExist
"DoesNotExist": pool not found
However, while use accepts the KSUID that was shown for my created pool, I can't actually do things like load to it afterwards. That's the bug.
$ zed use 2XJZd6n9VWl5B7poYWCwkHK8cjr
Switched to branch "main" on pool "2XJZd6n9VWl5B7poYWCwkHK8cjr"
$ echo '{s:"goodbye, world"}' | zed load -
"2XJZd6n9VWl5B7poYWCwkHK8cjr": pool not found