Commit Graph

12795 Commits

Author SHA1 Message Date
zachmu
72b67b575a [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh 2022-05-24 21:41:24 +00:00
Zach Musgrave
d46920ef37 Fixed bug in table rewrites during primary key change: always flush new working set to disk even if we didn't write any rows. This matters when we've rewritten a table with no rows, but still need to persist the schema change. 2022-05-24 14:39:35 -07:00
Zach Musgrave
4f822170ef Change the order of operations on insert: first primary index, then secondaries 2022-05-24 14:04:48 -07:00
Zach Musgrave
76ea2f1885 Fix tests to make them actually drain iterators 2022-05-24 11:49:59 -07:00
Zach Musgrave
7c21057d9d Fixed test with new error 2022-05-24 11:06:05 -07:00
Zach Musgrave
f1f93c19d0 Removing a debug print message, fixing noms show output 2022-05-24 11:01:05 -07:00
Zach Musgrave
da6169b173 Removed debug print statements 2022-05-24 10:10:29 -07:00
Zach Musgrave
bf350af9cc Merge main 2022-05-24 10:04:08 -07:00
AndyA
14e54ed631 Merge pull request #3475 from dolthub/andy/value-store-validation
[no-release-notes] Fix chunk corruption for keyless tables
2022-05-23 16:45:56 -07:00
Andy Arthur
f848a963a1 fix chunker overwrite for keyless tables, add valuestore validate to enginetests 2022-05-23 15:51:29 -07:00
Andy Arthur
b16182bb9a added hash validation to NewTestNodeStore 2022-05-23 15:27:27 -07:00
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
Andy Arthur
d7f477656e added value store validation 2022-05-23 14:53:46 -07:00
James Cor
a98e4a58ee Merge pull request #3464 from dolthub/JCOR11599-e432fd42
[auto-bump] [no-release-notes] dependency by JCOR11599
2022-05-23 13:22:07 -07:00
Daylon Wilkins
079ab06a38 Added indexing for keyless tables + keyless foreign keys 2022-05-23 06:28:03 -07:00
Zach Musgrave
e0627b4b9c More debug messages 2022-05-20 16:28:56 -07:00
Zach Musgrave
fd8c60e1bb Fixes for missing hash marks 2022-05-20 15:23:48 -07:00
Zach Musgrave
af29e93fb3 Fixes for null refs and missing hash marks 2022-05-20 15:23:35 -07:00
JCOR11599
fdf04b228f [ga-bump-dep] Bump dependency in Dolt by JCOR11599 2022-05-20 21:55:37 +00:00
Zach Musgrave
7682492f61 More debug printing 2022-05-20 14:45:51 -07:00
Zach Musgrave
bd411827e2 Hitting a wall with this approach, need to back out to cmd package 2022-05-20 14:16:48 -07:00
Zach Musgrave
047d592841 More debug printing 2022-05-20 11:41:49 -07:00
Zach Musgrave
79e7f1f19c More debug printing 2022-05-20 11:28:04 -07:00
Andy Arthur
ae2fd4ec4f Merge branch 'main' of github.com:dolthub/dolt into main 2022-05-20 11:02:44 -07:00
Andy Arthur
3b1212fa20 update test names 2022-05-20 11:02:36 -07:00
Dustin Brown
6dc63afcf8 [ga-bump-dep] Bump dependency in Dolt by max-hoffman (#3461)
Co-authored-by: max-hoffman <maximilian.wolfgang1@gmail.com>
Co-authored-by: Max Hoffman <max@dolthub.com>
2022-05-20 08:34:14 -07:00
Maximilian Hoffman
8a7bc85bf8 [no-release-notes] New enginetest harness (#3452)
* [no-release-notes] New enginetest harness

* touch ups

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

* missing dep

* fix new storage engine tests

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

* missing go.sum

* refactor setup package

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

* refactor setup package again

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

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-19 20:07:00 -07:00
Zach Musgrave
8817a8baef Debug printing and debug printing bug fixes 2022-05-19 17:02:11 -07:00
Aaron Son
ae2ca28611 Merge pull request #3456 from dolthub/aaron/flatbuffers-no-write-buffering
[no-release-notes] store/types: value_store.go: Disable write buffering locality optimization in value store when using __DOLT_* formats.
2022-05-19 14:25:03 -07:00
Jason Fulghum
a2522edbdf Merge pull request #3444 from dolthub/fulghum/multi-db-test-fix
[no-release-notes] Changing Dolt Harness to track a MultiRepoEnv
2022-05-19 13:32:04 -07:00
Jason Fulghum
504cd47e82 Adding a new function to create a test environment with configuration params separate from other test environments and using that new function for creating databases in Dolt Harness. 2022-05-19 11:49:22 -07:00
Aaron Son
bb05f7e8b4 store/types: value_store.go: Disable write buffering locality optimization in value store when using __DOLT_* formats. 2022-05-19 11:07:54 -07:00
Jason Fulghum
57c5e293e1 Minor tweaks to tidy up a little more 2022-05-19 11:07:06 -07:00
Aaron Son
4784b51cb3 store/types: value_store.go: Remove panics on err in bufferChunk; just return errors. 2022-05-19 10:43:05 -07:00
Zach Musgrave
7f3f7e3d2b Moved backup foreign key index logic into alterSchema, added drop primary key functionality to rewrite logic 2022-05-19 10:19:00 -07:00
Zach Musgrave
25ce2194e6 Moved foreign index update logic to foreign key collection type 2022-05-19 09:20:59 -07:00
Dhruv Sringari
fefb7d9683 go/store/types: add types.UnionMaps (#3448)
* add types.UnionMaps

* caller can choose value when key collision occurs

* fix comment
2022-05-19 09:19:20 -07:00
Zach Musgrave
779a8d1ea8 Merge branch 'main' into zachmu/ddl3 2022-05-19 08:59:32 -07:00
Zach Musgrave
c1d21f1e3a Merge pull request #3455 from dolthub/zachmu/db-drop-panic
[no-release-notes] Additional tests for drop database panic
2022-05-19 08:55:12 -07:00
Zach Musgrave
43fd1404b5 Skipped drop test failing on windows: 2022-05-19 08:07:33 -07:00
zachmu
14a751c2e0 [ga-bump-release] Update Dolt version to 0.40.4 and release v0.40.4 v0.40.4 go/v0.40.4 2022-05-19 04:16:55 +00:00
Zach Musgrave
40c7f67dd0 Merge pull request #3454 from dolthub/zachmu/db-drop-panic
Fixed panic when dropping a database with active branches in use
2022-05-18 21:04:17 -07:00
Zach Musgrave
8934137ebc Added skipped tests for case sensitivity in db connection strings 2022-05-18 19:42:49 -07:00
Zach Musgrave
837a9f6ac8 Added test for dropping a branch-qualified DB 2022-05-18 19:24:55 -07:00
Zach Musgrave
964dfc361b Skipping new test on new format 2022-05-18 19:02:21 -07:00
AndyA
70e9b0dc6b Merge pull request #3449 from dolthub/andy/fix-diff-table-time
[no-release-notes] Maybe deref commit time value
2022-05-18 18:24:21 -07: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
Zach Musgrave
c491e777a0 Fixed panic when dropping a database with active branches in use 2022-05-18 18:17:25 -07:00
Zach Musgrave
35a40ab02b Rewrite on primary column drop 2022-05-18 17:22:06 -07:00
Zach Musgrave
6c938e61fa Merge pull request #3447 from dolthub/zachmu/ddl3
[no-release-notes] Always rewrite tables with the new code path on drop column
2022-05-18 16:28:54 -07:00