Commit Graph

27041 Commits

Author SHA1 Message Date
Nathan Gabrielson f6045a8edc Merge pull request #9433 from dolthub/nathan/upstream
--set-upstream and improved --track for dolt branch
2025-07-08 13:42:31 -07:00
Neil Macneale IV b206b3640c Merge pull request #9462 from dolthub/macneale4/newtoold
[no-release-notes] NewGen -> OldGen admin script
2025-07-08 13:32:05 -07:00
Jason Fulghum 9e9269acab Merge pull request #9465 from dolthub/fulghum/commit_diff_fix
Bug fix: Copy lookup details for `dolt_commit_diff`
2025-07-08 13:16:39 -07:00
macneale4 fa42259035 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-07-08 19:12:31 +00:00
Neil Macneale IV 628c46b1f6 Use a non-racy approach 2025-07-08 12:04:16 -07:00
Neil Macneale IV 170388353f Update go/cmd/dolt/commands/admin/newgen_to_oldgen.go
Co-authored-by: Aaron Son <aaron@dolthub.com>
2025-07-08 11:50:00 -07:00
Neil Macneale IV b8dc8bdec9 Update go/cmd/dolt/commands/admin/newgen_to_oldgen.go
Co-authored-by: Aaron Son <aaron@dolthub.com>
2025-07-08 11:49:41 -07:00
Nathan Gabrielson 42686503e4 whoops forgot to remove echo 2025-07-08 11:45:19 -07:00
Jason Fulghum 4848c0bd8d Copy the index lookup so that we can safely use it when partitions need to be requested multiple times from the dolt_commit_diff system table. 2025-07-08 11:42:51 -07:00
Nathan Gabrielson 795cec6791 More fixes, can track local branches 2025-07-08 11:11:32 -07:00
Nathan Gabrielson ef7c58e833 Merge pull request #9443 from dolthub/nathan/rmCLI
Dolt Rm CLI command
2025-07-08 09:17:42 -07:00
coffeegoddd ec4605479e [ga-bump-release] Update Dolt version to 1.55.5 and release v1.55.5 v1.55.5 2025-07-08 02:04:37 +00:00
Nick Tobey f9891c2218 Merge pull request #9461 from dolthub/nicktobey/delete
Correctly delete rows from DOLT_CONFLICTS_ tables when the table schema has changed from the base.
2025-07-07 18:09:04 -07:00
Neil Macneale IV a280434ea1 Simplify progress message queue 2025-07-07 17:57:40 -07:00
Neil Macneale IV 80c2b4c787 Skip journal file 2025-07-07 17:53:23 -07:00
Neil Macneale IV 8bf73cd409 NewGen -> OldGen admin script 2025-07-07 17:28:50 -07:00
Nick Tobey b8d7acaa8b Compute correct offsets in prollyConflictDeleter when the schema has changed from the base. 2025-07-07 17:10:24 -07:00
Nick Tobey 8eaad424e0 Add test for merge conflicts when the schema has changed from the base. 2025-07-07 17:10:24 -07:00
Aaron Son f7d7d55bda Merge pull request #9459 from dolthub/aaron/auto-gc-enabled-variable
Add @GLOBAL.dolt_auto_gc_enabled system variable to inspect whether auto GC is enabled.
2025-07-07 20:01:12 -04:00
Nathan Gabrielson e62804efd0 More/fixed tests, branch.bats now uses remote server, --track can specify local branches 2025-07-07 16:30:04 -07:00
Aaron Son 1587640e03 Merge remote-tracking branch 'origin/main' into aaron/auto-gc-enabled-variable 2025-07-07 16:13:27 -07:00
Aaron Son d0f60bd0db Merge pull request #9458 from dolthub/aaron/nbs-store-fileTableReaderAt-clone-fix
[no-release-notes] go: store/nbs: file_table_reader.go: Fix clone() so that it actually uses the reference count.
2025-07-07 19:12:35 -04:00
Aaron Son 09e0ee22eb Add @GLOBAL.dolt_auto_gc_enabled system variable to inspect whether auto GC is enabled.
The system variable is read-only. The only way to enable Auto GC remains setting:

behavior:
  auto_gc_behavior:
    enable: true

in the config.yaml file which is given to `dolt sql-server` in its `--config` parameter.
2025-07-07 15:22:40 -07:00
Aaron Son 174b10e364 [no-release-notes] go: store/nbs: file_table_reader.go: Fix clone() so that it actually uses the reference count.
A bug in the usage of dynassert meant that clone() was always opening a new table file, instead of using the existing open file.

There were a few known consequences:

* the window of opportunity when unlocked reads could try to read a closed chunk source and receive an error was much larger than typical. As a result, auto_gc on a standby replica in a cluster was much more likely to fail spuriously.

* the number of file descriptors a running server would churn was higher than typical, and some operations were a bit slower / more prone to context switches than they needed to be.

This PR also updates some errors to be slightly more verbose about their origin.

This PR also updates TestAutoGC in go-sql-server-tests to run less iterations in CI and in -test.short mode. The iterations should be able to be lower since auto GC will fail less often now.
2025-07-07 14:34:35 -07:00
Elian 643dbcbbc0 Revert "Update test expectations for improved enum error messages"
This reverts commit 50bb704b09.
2025-07-07 20:48:30 +00:00
Elian 5e9c72a180 Revert "Fix auto-increment counter advancement issue during failed INSERTs"
This reverts commit 8711e4a744.
2025-07-07 20:48:29 +00:00
Elian 8711e4a744 Fix auto-increment counter advancement issue during failed INSERTs
The previous implementation incorrectly advanced auto-increment counters
during INSERT expression evaluation, causing failed INSERT operations
to advance the counter. This resulted in auto-increment ID mismatches
in CI tests (expected InsertID: 1,2 but got 3,4).

Fixed by:
- Extracting the actual auto-increment value from the sqlRow
- Only advancing the counter after successful INSERT operations
- Properly coordinating between expression evaluation and storage layers

This ensures failed INSERT operations do not advance auto-increment
counters, matching MySQL behavior exactly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 20:44:50 +00:00
Elian 50bb704b09 Update test expectations for improved enum error messages
- Fixed test expectations to match enhanced error messages with column names
- Updated script tests to expect 'Data truncated for column 'e'' instead of empty string
- Fixed SET statement result expectations in insert ignore tests
- All enum-related tests now pass with improved error message format

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 20:44:23 +00:00
Nathan Gabrielson 15b3996d6a Forgot to change one thing 2025-07-07 10:01:35 -07:00
Nathan Gabrielson 838f717f5b Small changes + more clear result statements 2025-07-07 09:57:55 -07:00
angelamayxie cbf57e4f00 Merge pull request #9455 from dolthub/angelamayxie-de1be10b
[auto-bump] [no-release-notes] dependency by angelamayxie
2025-07-07 09:53:53 -07:00
Neil Macneale IV 07c389edbc More overflow fixes (#9442) 2025-07-07 09:40:37 -07:00
angelamayxie f3d769b056 [ga-bump-dep] Bump dependency in Dolt by angelamayxie 2025-07-07 15:55:42 +00:00
James Cor d9fe7eab5d Only print Query Ok results in interactive shell. (#9441) 2025-07-04 19:05:55 -07:00
Neil Macneale IV 5d7e2c1504 Flush outputs in archive command. Fixes flaky test (#9446) 2025-07-03 16:57:41 -07:00
angelamayxie 68cd6087bc Merge pull request #9450 from dolthub/angelamayxie-1af0f6e0
[auto-bump] [no-release-notes] dependency by angelamayxie
2025-07-03 15:42:35 -07:00
Neil Macneale IV 90e14bc6fa Merge pull request #9445 from dolthub/macneale4/gc-err
Swallow gc NoOp err
2025-07-03 15:11:08 -07:00
angelamayxie ede0b3c4ec [ga-bump-dep] Bump dependency in Dolt by angelamayxie 2025-07-03 21:30:27 +00:00
Neil Macneale IV 71c9fd70c8 Remove error check which is no longer returned by procedure
Remove no-op function call
2025-07-03 11:04:25 -07:00
Neil Macneale IV d3d9e5ef49 Swallow NothingToCollect error from dolt_gc() 2025-07-03 11:04:25 -07:00
Neil Macneale IV c5a10ba60e [NoOp] Clarify sides of merge (#9412) 2025-07-03 09:53:15 -07:00
NathanGabrielson 56adc30622 [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2025-07-03 01:02:28 +00:00
Nathan Gabrielson c894eefe6e Fixing up stuff for git rm 2025-07-02 17:52:41 -07:00
coffeegoddd 73e5013bbd [ga-bump-release] Update Dolt version to 1.55.4 and release v1.55.4 v1.55.4 2025-07-02 23:33:56 +00:00
Dustin Brown 4652749603 [ga-bump-dep] Bump dependency in Dolt by angelamayxie (#9440) 2025-07-02 16:02:05 -07:00
James Cor 8d80f6507c Match quoted and unquoted check definitions during merge. (#9437) 2025-07-02 14:39:49 -07:00
Nathan Gabrielson 0cdf212173 Small changes 2025-07-02 12:46:53 -07:00
Nathan Gabrielson e632a17a67 Requested changes 2025-07-02 12:30:02 -07:00
Nick Tobey a4a1ee7b27 Merge pull request #9419 from dolthub/nicktobey/index
Add indexes to dolt_commit_diff_ tables that include the primary key of the underlying table
2025-07-01 19:00:26 -07:00
Nathan Gabrielson eaaba8ea67 First pass dolt rm cmd 2025-07-01 17:18:52 -07:00