Commit Graph

1861 Commits

Author SHA1 Message Date
Maximilian Hoffman 4a994d31c6 Read replica update working set fixes (#3471)
* Read replica update working set fixes

Read replica pull updates the session working set after pulling a
filtered set of branches from the tracking database. The original
(buggy) implementation updates the working set to the branch specified
at server-start time. The identity of that branch was fixed for the
duration of the server, so dolt_checkout would (appear to) have no
effect on the new branch's working set. What actually happened was more
pernicious: the working set was updated to the value of the
incorrect branch.

The fix no longer statically sets the active branch for a read replica
database. The active branch is pulled from the `*sql.Context`, so the
correct working set will be updated.

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* add test

* todos

* delete extraeneous line

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-23 15:00:11 -07:00
zachmu 14a751c2e0 [ga-bump-release] Update Dolt version to 0.40.4 and release v0.40.4 2022-05-19 04:16:55 +00:00
AndyA 622eecb9ce Merge pull request #3408 from dolthub/andy/nbf-gate
[no-release-notes] Gate some CLI commands for `__DOLT_1__`
2022-05-18 18:23:49 -07:00
Andy Arthur 0705398333 nil check ddb 2022-05-18 16:18:46 -07:00
Aaron Son 4c37410e54 Merge pull request #3443 from dolthub/aaron/fix-racey-pipeline-finalization
[no-release-notes] go/libraries/utils/pipeline: Fix racey finalization of a pipeline.
2022-05-18 15:41:37 -07:00
Andy Arthur 6d28deda12 Merge remote-tracking branch 'origin/main' into andy/nbf-gate 2022-05-18 14:25:23 -07:00
Aaron Son f4b6b6fe50 go/libraries/utils/pipeline: Fix racey finalization of a pipeline.
Before this change, when an initial stage function returned a non-nil err, it
would return non-nil, resulting in closing its output channel and leaving the
errgroup responsible for canceling the egCtx.

The next transform stage would read `nil, false` on its inCh. That stage would
forward the `nil` down the transform pipeline. If the inCh selects all resolved
down the transform pipeline before any of the `<- ctx.Done()` selects, then the
pipeline would see the exact same behavior for the error case as it would see
for an `io.EOF` being reached in the first stage.

Instead, transform stages in the pipeline should abort without forwarding data
if they see a closed input channel. In turn, input stages should forward one
last `nil` sentinel value to their output channel when the see an `io.EOF`
before they close the channel.
2022-05-18 10:11:27 -07:00
Aaron Son 25d00df834 Merge remote-tracking branch 'origin/main' into aaron/dolt_backup-stored-procedure 2022-05-18 09:02:25 -07:00
Hydrocharged e99fac4030 [ga-bump-release] Update Dolt version to 0.40.3 and release v0.40.3 2022-05-18 04:35:35 +00:00
Maximilian Hoffman f4dd4c7d6b Dolt clean (#3440)
* Dolt clean

CLI and sql clean function. Clears untracked tables by finding the
difference betewen HEAD and the current working set and then deleting
the result.

Optionally specify `--dry-run` to avoid persisting the result root.

Optionally pass a list of table names to filter for deletion if
untracked.

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* zach comments

* need clean func for proc

* fix andy's PR

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-17 18:38:24 -07:00
Andy Arthur b4ccd71c57 Merge branch 'main' into andy/nbf-gate 2022-05-17 17:11:09 -07:00
zachmu 0352b53928 [ga-bump-release] Update Dolt version to 0.40.2 and release v0.40.2 2022-05-17 23:55:21 +00:00
Aaron Son 5a05ed939a Merge remote-tracking branch 'origin/main' into aaron/dolt_backup-stored-procedure 2022-05-17 15:53:12 -07:00
Aaron Son daf2ba280e go/cmd/dolt/commands: backup.go: Fix dropped error on dEnv.GetBackups call. 2022-05-17 15:45:28 -07:00
Aaron Son 661011aa78 go/libraries/doltcore/sqle/dfunctions: dolt_backup.go: Implement dolt_backup("sync", ...). 2022-05-17 15:41:59 -07:00
Aaron Son 46feafd8b8 go/cmd/dolt: commands/backup.go: dolt backup sync ErrDBUpToDate is not an error. Exit success. 2022-05-17 14:25:12 -07:00
Vinai Rachakonda c11db5a55b Make import work with FKs and add disableFks check (#3412) 2022-05-17 14:11:30 -04:00
VinaiRachakonda 9f7944321d [ga-bump-release] Update Dolt version to 0.40.1 and release v0.40.1 2022-05-17 12:18:46 +00:00
Aaron Son 9ee001aeac sqle: Iterate on supporting dolt_backup stored procedure. 2022-05-16 17:10:39 -07:00
Zach Musgrave d11327bee6 Merge pull request #3427 from dolthub/zachmu/upgrade-gms2
Include connected DB in log messages
2022-05-16 14:32:43 -07:00
Maximilian Hoffman 33a679f20b Default branch now database-specific global variable (#3422)
* Default branch now database-specific global variable

* fix bats
2022-05-16 13:21:50 -07:00
Zach Musgrave afc1661fb9 Merge main 2022-05-16 13:11:30 -07:00
Zach Musgrave 69e8b4263a Upgrade gms, fix constant package 2022-05-16 13:10:16 -07:00
Maximilian Hoffman d2196bad9e Restore obfuscated default branch error (#3419) 2022-05-16 09:29:40 -07:00
Andy Arthur 6cc935560b gate diff/merge less aggresively, update BATS 2022-05-13 14:58:53 -07:00
Andy Arthur e84d4798e9 added FormateGatedCommand and gated some commands 2022-05-13 13:28:18 -07:00
Andy Arthur be275b560b remove stale tag migration code 2022-05-13 13:27:23 -07:00
Maximilian Hoffman cf7245f7e9 Touch up reset docs (#3389)
* Touch up reset docs

* PR feedback
2022-05-12 08:48:48 -07:00
Zach Musgrave da61e0ccd5 Yet more type changes 2022-05-11 17:30:02 -07:00
Aaron Son 02c5bb0875 go: Remove some unprincipled usage of types.Format_Default in non-test code. 2022-05-10 12:57:00 -07:00
Jason Fulghum d876a2f78a Fixing revert command usage docs. 2022-05-09 14:29:38 -07:00
Aaron Son 11c2105d91 go/store/types: Remove unused Value.WalkValues method. 2022-05-06 14:00:41 -07:00
bheni ea91de8c7f [ga-bump-release] Update Dolt version to 0.40.0 and release v0.40.0 2022-05-05 18:50:41 +00:00
Dhruv Sringari a04b09c5db Improve merge failure messages (#3347)
* improve merge failure messages

* fix silenced err

* fix bats test
2022-05-05 11:29:29 -07:00
VinaiRachakonda c941ff4f49 [ga-bump-release] Update Dolt version to 0.39.5 and release v0.39.5 2022-04-30 01:56:30 +00:00
Jason Fulghum af8728b13b Merge pull request #3318 from dolthub/fulghum/diff-command
Display schema and data for created and dropped tables in `dolt diff` command
2022-04-28 15:58:58 -07:00
Jason Fulghum 936d55347a Adding err handling 2022-04-28 15:04:33 -07:00
JCOR11599 babc7660a0 [ga-bump-release] Update Dolt version to 0.39.4 and release v0.39.4 2022-04-28 00:07:28 +00:00
Jason Fulghum 178c2ed2de Updating diff command to support better schema diffs for create and delete tables, and to include data in diff when adding or dropping a table. 2022-04-27 15:24:42 -07:00
James Cor 9a5f1955b4 fix probably, but need tests 2022-04-27 10:04:22 -07:00
druvv b66bbb3aa6 [ga-bump-release] Update Dolt version to 0.39.3 and release v0.39.3 2022-04-27 15:18:14 +00:00
Hydrocharged 82a6fc5d72 [ga-bump-release] Update Dolt version to 0.39.2 and release v0.39.2 2022-04-23 03:01:46 +00:00
Hydrocharged ec33613d18 [ga-bump-release] Update Dolt version to 0.39.1 and release v0.39.1 2022-04-22 22:11:26 +00:00
Dhruv Sringari 038aaf0f6e Add create new branch suggestion to dolt checkout {commit_hash} 2022-04-21 19:08:52 -07:00
Zach Musgrave b0a0aa048c Merge pull request #3268 from dolthub/zachmu/sql-docs
Fixed docs for sql command
2022-04-21 11:30:40 -07:00
Zach Musgrave 73b2f80dac Fixed docs for sql command 2022-04-21 09:31:11 -07:00
Vinai Rachakonda 3aad420681 Enable unique indexes on keyless tables (#3245) 2022-04-21 12:23:18 -04:00
James Cor 8ceb83d377 Merge pull request #3225 from dolthub/james/dolt-dump
`dolt dump` should include views, triggers, and procedures
2022-04-18 10:06:32 -07:00
James Cor 0a0e4f9321 Merge pull request #3210 from dolthub/james/dolt-pull
`dolt pull` should do `dolt fetch` before
2022-04-15 15:10:54 -07:00
James Cor bf1f6ef024 please work 2022-04-15 12:24:36 -07:00