tursodatabase / tursodatabase/libsql-client-ts

"ROLLBACK statement stops execution of batch" test failure with embedded replica

Open
#130 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
576
Forks
69
PR merge metrics
No merged PRs in 30d

Description

  ● batch() › ROLLBACK statement stops execution of batch

    expect(received).toStrictEqual(expected) // deep equality

    Expected: 0
    Received: 1

      208 |
      209 |         const rs = await c.execute("SELECT COUNT(*) FROM t");
    > 210 |         expect(rs.rows[0][0]).toStrictEqual(0);
          |                               ^
      211 |     }));
      212 | });
      213 |

      at src/__tests__/client.test.ts:210:31
      at Object.<anonymous> (src/__tests__/client.test.ts:41:13)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the failing batch() test in src/tests/client.test.ts, especially the ROLLBACK case around line 210, and run it with the embedded replica configuration. Trace how the batch and rollback are handled, then confirm the test finishes with SELECT COUNT(*) returning 0 without affecting other batch tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite, typescript
Domain
databases, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.