Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Conversation

flyingsilverfin
Copy link
Member

@flyingsilverfin flyingsilverfin commented May 13, 2019

What is the goal of this PR?

Properly close transactions that was leading to failing client-python tests, and ensure that tests that are failing clean up properly rather than exiting without closing transactions.

What are the changes implemented in this PR?

  • Exhaust the gRPC iterator when the transaction is closed to ensure that onCompleted() is called on the server. Previously, we were emptying the input iterator and adding None to its queue, but this was not being consumed. Thus, the transactions was not being cleaned up on the server as the transaction(stream) RPC call was never completed cleanly.
  • Utilise addCleanup to close transactions even if the tests fail - this is always executed regardless of test status.

Closes #44

@flyingsilverfin flyingsilverfin added this to the 1.5.3 milestone May 13, 2019
@flyingsilverfin flyingsilverfin requested a review from vmax May 13, 2019 11:20
@flyingsilverfin flyingsilverfin self-assigned this May 13, 2019
@flyingsilverfin flyingsilverfin changed the title Proper test cleanup Close Transactions Properly May 13, 2019
@flyingsilverfin flyingsilverfin requested a review from lolski May 13, 2019 17:10
@flyingsilverfin flyingsilverfin merged commit a76af4e into typedb:master May 13, 2019
@flyingsilverfin flyingsilverfin deleted the proper-test-cleanup branch May 13, 2019 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flakey test failing to frequently
2 participants