Coder Social home page Coder Social logo

Comments (2)

PierreZ avatar PierreZ commented on June 10, 2024
Incorrect result: 
  rust   - ('tester_output', 'stack', 50, 386) = b'\x01RESULT_NOT_PRESENT\x00'
  python - ('tester_output', 'stack', 50, 386) = b'\x01\x01ERROR\x00\xff\x011020\x00\xff\x00'

Python is failing with 1020 error code: which means Transaction not committed due to conflict with another transaction. Rust has RESULT_NOT_PRESENT, which means everything is fine 🤔

For seed 4275610547, we have:

  1. Instruction is COMMIT
  2. Instruction is WAIT_FUTURE
  3. Instruction is RESET // New transaction
  4. Instruction is PUSH
  5. Instruction is DIRECTORY_CHANGE
  6. Instruction is PUSH
  7. Instruction is PUSH
  8. Instruction is PUSH
  9. Instruction is PUSH
  10. Instruction is DIRECTORY_MOVE
  11. Instruction is PUSH
  12. Instruction is DIRECTORY_CHANGE
  13. Instruction is PUSH
  14. Instruction is PUSH
  15. Instruction is DIRECTORY_OPEN
  16. Instruction is PUSH
  17. Instruction is PUSH
  18. Instruction is DIRECTORY_MOVE_TO_DATABASE
  19. Instruction is WAIT_FUTURE
  20. Instruction is RESET

All faulty seeds seems to occured before an DIRECTORY_MOVE_TO_DATABASE, which is runned in a standalone transaction.

from foundationdb-rs.

PierreZ avatar PierreZ commented on June 10, 2024

Adding new seed:

+ ./bindings/bindingtester/bindingtester.py --num-ops 1000 --api-version 630 --test-name directory --concurrency 1 rust --no-directory-snapshot-ops --compare python

Creating test at API version 630
Generating directory test at seed 2665254911 with 1000 op(s) and 1 concurrent tester(s)...

Inserting test into database...

Running tester '/home/runner/work/foundationdb-rs/foundationdb-rs/target/debug/bindingtester test_spec 630'...

Reading results from '('tester_output', 'stack')'...
Reading results from '('tester_output', 'directory_log', 'directory')'...
Reading results from '('tester_output', 'directory_log', 'subspace')'...

Inserting test into database...

Running tester 'python /home/runner/work/foundationdb-rs/foundationdb-rs/target/foundationdb_build/foundationdb/bindings/bindingtester/../python/tests/tester.py test_spec 630'...

Reading results from '('tester_output', 'stack')'...
Reading results from '('tester_output', 'directory_log', 'directory')'...
Reading results from '('tester_output', 'directory_log', 'subspace')'...

Comparing results from '('tester_output', 'stack')'...

Incorrect result: 
  rust   - ('tester_output', 'stack', 476, 4361) = b'\x01RESULT_NOT_PRESENT\x00'
  python - ('tester_output', 'stack', 476, 4361) = b'\x01\x01ERROR\x00\xff\x011020\x00\xff\x00'

Comparing results from '('tester_output', 'directory_log', 'directory')'...
Comparing results from '('tester_output', 'directory_log', 'subspace')'...

Test with seed 2665254911 and concurrency 1 had 1 incorrect result(s) and 0 error(s) at API version 630
Completed directory test with random seed 2665254911 and 1000 operations

from foundationdb-rs.

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.