-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only rebase transaction start for read replica #3722
Conversation
#benchmark |
#newbenchmark |
…/dolt into max/only-rebase-for-read-replica
|
2 similar comments
|
|
|
These still aren't bad perf wine ~5-10% on most metrics. |
} | ||
|
||
// IsLocked returns true if this database's lockfile exists | ||
func (dEnv *DoltEnv) IsLocked() bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these be mutex protected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
As a followup, you need to extend this to all dolt
commands which can update db state.
@@ -35,6 +36,8 @@ import ( | |||
"github.com/dolthub/dolt/go/libraries/doltcore/sqlserver" | |||
) | |||
|
|||
var ErrActiveServerLock = errors.New("database locked by another sql-server; either clone the database to run a second server, or delete the '.dolt/sql-server.lock' if no other sql-servers are active") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error message should have the absolute path to the lock file
@@ -32,6 +33,8 @@ import ( | |||
"github.com/dolthub/dolt/go/libraries/utils/filesys" | |||
) | |||
|
|||
var ErrActiveServerLock = errors.New("database locked by another sql-server; either clone the database to run a second server, or delete the '.dolt/sql-server.lock' if no other sql-servers are active") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's with the duplicate error def?
@@ -2,7 +2,7 @@ | |||
set -e | |||
set -o pipefail | |||
|
|||
SYSBENCH_TEST="oltp_point_select" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert?
Changes:
.dolt/sql-server.lock
that is deleted when the server is terminated.ReadOnly
mode. Bulk table import does not appear to respect read only mode, so it has an additional check.