apple / apple/foundationdb

Simulator stops working after installing FDB 6

Open
#1,074 2 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

When fdbserver is running, the simulator stops working. This is problematic if someone wants to develop and test on OS X and I stumbled on this while working on #1058.

This is how this problem can be reproduced:

1. Download and install FDB 6 from web page.
2. run a simulation tests.

The output that I got looked roughly like this:
```
/Users/mpilman/Projects/builddirs/foundationdb/bin/fdbserver -r simulation -s 0x2582dd31 -f fast/AtomicBackupCorrectness.txt
Random seed is 629333297...
ERROR: Could not locate shared memory - 'machineId'
```

Even stopping foundationdb does not make the error go away. The only way I could figure out to make the error go away was:

1. uninstall foundationdb with the script
2. restart the machine.

As mentioned in #1058, cmake will try to find an installed foundationdb and warn the user if it can't find one (for running upgrade restart tests with an older binary). But if an installed fdb results in `make test` not working, this is generally problematic.

Contributor guide

Open the contributing guide

Research direction

Start with fdbserver in simulation mode and the make test path described in the report; review how CMake finds an installed FoundationDB and run fast/AtomicBackupCorrectness.txt on OS X with FDB 6 installed. Done means simulation tests run successfully without uninstalling FoundationDB or restarting the machine.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, macos
Domain
build-system, operating-systems, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.