Comments (4)
So first you start the container like this:
docker run --rm -it swift:5.1 bash
(I got it failing exactly on 5.1, but probably it also fails on 5.2+)
Then you setup it (you would probably also want to fetch & checkout your branch with extended logging):
git clone https://github.com/kirilltitov/FDBSwift.git && \
cd FDBSwift && \
apt-get update && \
apt-get install -y wget && \
wget https://www.foundationdb.org/downloads/6.2.22/ubuntu/installers/foundationdb-clients_6.2.22-1_amd64.deb && \
wget https://www.foundationdb.org/downloads/6.2.22/ubuntu/installers/foundationdb-server_6.2.22-1_amd64.deb && \
dpkg -i foundationdb-clients_6.2.22-1_amd64.deb foundationdb-server_6.2.22-1_amd64.deb && \
service foundationdb start && \
chmod +x scripts/install_pkgconfig.sh && \
./scripts/install_pkgconfig.sh
and then well you roll the swift test
until it fails :)
from fdbswift.
It's kinda tricky to catch it (I think it's somewhat 10% to catch), but I managed to do it in swift:5.1 Docker image (didn't really try to grind it in macOS):
2020-09-10T10:03:06+0000 debug testlogger : trid=-4646291429502527929 [FDB.Transaction] Started transaction on EmbeddedEventLoop
2020-09-10T10:03:06+0000 error testlogger : An incomplete version stamp was not found while parsing [2, 116, 101, 115, 116, 32, 55, 52, 48, 54, 48, 57, 49, 56, 54, 56, 56, 48, 51, 54, 49, 49, 48, 57, 51, 0, 2, 97, 116, 111, 109, 105, 99, 95, 118, 101, 114, 115, 105, 111, 110, 115, 116, 97, 109, 112, 0, 1, 2, 116, 101, 115, 116, 32, 55, 52, 48, 54, 48, 57, 49, 56, 54, 56, 56, 48, 51, 54, 49, 49, 48, 57, 51, 0, 255, 2, 97, 116, 111, 109, 105, 99, 95, 118, 101, 114, 115, 105, 111, 110, 115, 116, 97, 109, 112, 0, 255, 50, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 0, 255, 1, 0, 255, 2, 2, 97, 83, 121, 110, 99, 75, 101, 121, 0, 255, 0, 2, 97, 110, 65, 115, 121, 110, 99, 75, 101, 121, 0]
2020-09-10T10:03:06+0000 debug testlogger : Failing future with error 'missingIncompleteVersionstamp' (9800): 'UNKNOWN_ERROR'
2020-09-10T10:03:06+0000 error testlogger : No fail closure, caught error missingIncompleteVersionstamp at /FDBSwift/Sources/FDB/Future.swift:87
from fdbswift.
I'll take a look, that certainly looks bizarre...
from fdbswift.
So I did spot an error with the key I was writing to, but it was still logging an error even before (as designed), so I'm not sure what is causing the deadlock that leaves the tests running until they timeout. I did add some logs to see if we can see where it's occurring - would it be possible to share a docker file that I can run locally to see if I can get it to reproduce? I'm still new to docker, so I'm afraid I have no idea what I'm doing for the most part 😅 (alternatively, re-running travis works too if you get a chance!)
from fdbswift.
Related Issues (20)
- Incorrect null escape unpack
- Make TuplePackable non-optional
- Proper namespace
- Safer Tuple unpack HOT 1
- Even more verbose
- Transaction options HOT 1
- Implement own precondition function for all assertions
- FDBTuplePackable's methods' names and definitions are too wide
- `'foundationdb/fdb_c.h' file not found` when building in Xcode HOT 11
- Support for version stamps in keys HOT 3
- Some tests pollute the local cluster HOT 1
- Why not use an additional package instead of requiring manual installation steps HOT 3
- No License HOT 2
- Implement Directory layer HOT 2
- Issues running tests with Xcode 12 HOT 10
- FDB.NetworkOption.TLSVerifyPeers should have String associated value instead of Bytes HOT 1
- Omit password string when logging FDB.NetworkOption.TLSPassword setting HOT 1
- Transaction `set` is ambiguous. HOT 5
- Subspace.subspace is internal but readme suggests otherwise. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdbswift.