-
Notifications
You must be signed in to change notification settings - Fork 1.7k
db: remove wal disabling / fast-and-loose option. #8963
Conversation
I'd actually say we remove it since this is really unsafe and will just give us trouble (more issues with database corruption). It's better to just provide a bigger cache size for performance. |
Hold on. |
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.
I think we can remove the wal
from all types that currently have it and also the handling for it in kvdb-rocksdb
. A grep for wal: bool
should help :)
parity/cli/mod.rs
Outdated
@@ -883,6 +879,10 @@ usage! { | |||
"--warp", | |||
"Does nothing; warp sync is enabled by default. Use --no-warp to disable.", | |||
|
|||
FLAG flag_fast_and_loose: (bool) = false, or |_| None, | |||
"--fast-and-loose", | |||
"Does nothing. DB WAL is always activated.", |
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.
Maybe mention here that the option is deprecated?
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.
This is just a placeholder really since --help
does not print these options anymore.
@andresilva done 😊 |
|
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 👍 Will merge after we deal with deprecation handling.
ok, added to deprecated::does_nothing() 👍 |
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
(When this is merged I need to update parity-common
with the changes to kvdb-rocksdb
)
parity/deprecated.rs
Outdated
// Removed in 2.0. | ||
|
||
if args.flag_fast_and_loose { | ||
result.push(Deprecated::DoesNothing("--fast-and-loose")); |
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.
Minor nit, but why DoesNothing
instead of Removed
?
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.
I guess in theory it could "do nothing" but not be removed?
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.
They're both correct I guess, but DoesNothing
seems to be used when there's another opposite option e.g. --warp
and --no-warp
.
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.
Correct. It should be removed.
FFFFFFFFFFFUUU... 🤣 |
NOTE We should merge paritytech/parity-common#7 before merging this. If you came here to review, please consider reviewing that one instead. |
fix #8779
ref #1765