cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

Cannot start insecure node on windows

Open JackHerring opened this issue 9 years ago • 14 comments

When starting an insecure node on windows 10 64bit I am getting the following error:

Not implemented: SyncWAL() is not supported for this implementation of WAL file

JackHerring avatar Aug 04 '17 15:08 JackHerring

@tamird and/or @BramGruneir I'm not sure if this is an oversight or intentional in RocksDB. WinWritableFile does not implement IsSyncThreadSafe and thus gets the default of false. From my brief perusal of the implementation, it seems like it is thread safe.

petermattis avatar Aug 04 '17 15:08 petermattis

Does this also mean that our CI never actually starts a windows server nor runs any tests that use an on-disk instance of RocksDB?

tbg avatar Aug 04 '17 16:08 tbg

We have no Windows CI.

On Fri, Aug 4, 2017 at 12:28 PM, Tobias Schottdorf <[email protected]

wrote:

Does this also mean that our CI never actually starts a windows server nor runs any tests that use an on-disk instance of RocksDB?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cockroachdb/cockroach/issues/17442#issuecomment-320293179, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdsPGVrb4StPGm1mtQL-RdbnH-dQILeks5sU0atgaJpZM4Ot2FQ .

tamird avatar Aug 04 '17 16:08 tamird

We kind of do. https://github.com/benesch/bincheck

benesch avatar Aug 04 '17 18:08 benesch

Hmm, I suppose bincheck shouldn't use in-memory stores.

benesch avatar Aug 04 '17 18:08 benesch

FWIW, this isn't caught by RocksDB's Windows CI because they don't run the db_wal_test on Appveyor: https://github.com/facebook/rocksdb/blob/627c9f1abb263ab8d2072a1ac9d30a6e4bc3dde4/appveyor.yml#L14.

benesch avatar Aug 04 '17 18:08 benesch

Sorry for the quadruple-post, but I just discovered a comment in the source that suggests WinWritableFile is not always thread safe: https://github.com/facebook/rocksdb/blob/72502cf2270db7323d447cc7a504dbea251d432a/db/column_family_test.cc#L3132-L3133.

benesch avatar Aug 04 '17 18:08 benesch

@petermattis, thoughts on working around this by having the sync loop issue an empty write with write_options.sync = true on Windows instead of calling SyncWAL? (I haven't actually verified that this fixes the problem.)

benesch avatar Aug 07 '17 15:08 benesch

@benesch That seems like a reasonable workaround to me. Care to implement it?

petermattis avatar Aug 07 '17 16:08 petermattis

This is blocking me from using a recent version of cockroachdb alpha on Windows. Currently testing using a July version.

My uses require a uuid data type so that's why I'm on the alpha version.

fire avatar Aug 13 '17 16:08 fire

@fire For development purposes, you can disable the WAL sync:

set cluster setting kv.raft_log.synchronize = false

petermattis avatar Aug 13 '17 16:08 petermattis

How do you enter the sql client if you can't do:

.\cockroach.exe start --insecure

fire avatar Aug 13 '17 17:08 fire

@JackHerring, @fire This fix was too late for our next alpha release, but it will be in, in the one after that. You can also compile from source or I can provide a build if needed to unblock you right now if needed.

BramGruneir avatar Aug 17 '17 21:08 BramGruneir

@BramGruneir Perfect, we can wait for the next release - thank you.

JackHerring avatar Aug 22 '17 07:08 JackHerring