cockroach-go icon indicating copy to clipboard operation
cockroach-go copied to clipboard

Packages for go clients.

Results 20 cockroach-go issues
Sort by recently updated
recently updated
newest added

I'm launching a cockroachdb docker container using image from https://hub.docker.com/r/cockroachdb/cockroach. Then i'm building and testing cockroach-go: ``` #!/bin/bash -ex # Dependency installation microdnf install -y git wget make gcc-c++ #Set...

The retry loop in `ExecuteInTx` does not check ctx.Done to abort the retries if the context is cancelled. Found while working on adding query cancellation in the crdb SQL shell....

The ExecuteTx and ExecuteInTx APIs take a function callback that only takes either no argument or a tx object. We want to pass a callback instead that takes the context...

Currently there is no way to specify the priority of a transaction when using the pgx integration on initialization of the transaction. This results in another round trip to the...

enhancement
help wanted

If the test crashes for whatever reason and does not run the deferred cleanup, then we would like very much for the operating system to kill the subprocess. Linux has...

After replacing `--logtostderr` to `--log="{file-defaults: {dir: tmp/dir/to/log}, sinks: {stderr: {filter: NONE}}}"` , the "cockroach" command does not generate the `listen-url` file in the tmp directory when running tests from `testserver_test.go`....

...for newer versions of Go that support it. It'd help with https://github.com/cockroachdb/cockroach/issues/23558, and generally when clients care what connection their txn runs on.

enhancement
help wanted

> sql: Transaction has already been committed or rolled back ``` go if err := crdb.ExecuteTx(client.DB, func(tx *sql.Tx) error { // do stuff return tx.Commit() // works when returning `nil`...

We should revert #31 once jemalloc/jemalloc#585 is fixed. We may also want to expand the glibc regex to match "EGLIBC" and not just "GLIBC." The internet suggests `ldd --version` may...

In a multi-user system, the testserver binary could have been written by another user and may be malicious. We should include the username in the path (either in the filename...