apple / apple/foundationdb

Can't use fdb.bash instead of create_cluster_file.bash

Open
#6,063 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

start.bash of Go and Python official samples calls create_cluster_file.bash (renamed to fdb.bash) in the client (app) server.

https://github.com/apple/foundationdb/blob/master/packaging/docker/samples/golang/app/start.bash

But fdb.bash uses unnecessary fdbserver command which isn't installed and isn't used in create_cluster_file.bash:

https://github.com/apple/foundationdb/blob/124e7eb4f251903b90d5b8addc8742bcafc9e5ae/packaging/docker/fdb.bash#L66

So we can't use fdb.bash instead of create_cluster_file.bash.

```console
/fdb.bash: line 66: fdbserver: command not found
```

How can we resolve this error? And how can we update the official samples?

Contributor guide

Open the contributing guide

Research direction

Start with packaging/docker/fdb.bash, especially the command at line 66, and compare it with packaging/docker/samples/golang/app/start.bash and the corresponding Python sample entry point. Run the official samples to reproduce the fdbserver command-not-found error. Done means both Go and Python samples use the available client tooling successfully without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, docker, go, python
Domain
databases, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.