Code Monkey home page Code Monkey logo

Comments (4)

kirilltitov avatar kirilltitov commented on June 30, 2024 1

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.

kirilltitov avatar kirilltitov commented on June 30, 2024

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.

dimitribouniol avatar dimitribouniol commented on June 30, 2024

I'll take a look, that certainly looks bizarre...

from fdbswift.

dimitribouniol avatar dimitribouniol commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.