Comments (7)
@pkorotkov Thanks for adding the bug report. LMDB has the Windows mmap calls in there but I decided to forgo Windows support for the v0.1.0 release. It shouldn't be hard to add though since the syscalls are fairly isolated but I want to make sure the Bolt design is solid first.
I also need to find a good Windows CI that I can run continuous tests against. Do you know of any?
from bolt.
@benbjohnson Oh, cool! I wish you push the support somewhat quicker :)
Well, our in-company Windows (along with Linux) CI is made on drone.io. We didn't even seek for Windows-only solution in the wild. Just created a few instances with Lin-n-Win (with Windows 7 X86_64) and coupled them with the drone.io service. That's it. Perhaps there is a better way but we are still fine with that one.
from bolt.
Any movement on this? Bolt looks like the nicest Go KV store, but dropping Windows support by using is not always an option. :/
from bolt.
@calmh I tried adding in Windows support this morning to this branch but I'm hitting an error on the file mapping. I'm not entirely sure why. It's been a while since I've even booted my Windows VM so I'm a little rusty.
Here's the error:
Not enough storage is available to process this command.
And the full stack trace from the test:
Y:\>go test -v github.com/boltdb/bolt
seed: 26500
quick settings: count=5, items=1000, ksize=1024, vsize=1024
=== RUN TestBucket_Get_NonExistent
--- FAIL: TestBucket_Get_NonExistent (4.42 seconds)
panic: cannot open db: CreateFileMapping: Not enough storage is available to process this command. [recovered]
panic: cannot open db: CreateFileMapping: Not enough storage is available to process this command.
goroutine 3 [running]:
runtime.panic(0x542e80, 0xc084004620)
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease155988687/go/src/pkg/runtime/panic.c:266 +0xc8
testing.func┬╖005()
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease155988687/go/src/pkg/testing/testing.go:385 +0xeb
runtime.panic(0x542e80, 0xc084004620)
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease155988687/go/src/pkg/runtime/panic.c:248 +0x11b
github.com/boltdb/bolt.func┬╖205(0xc0840067c0, 0x33)
Y:/go/src/github.com/boltdb/bolt/db_test.go:497 +0xda
github.com/boltdb/bolt.withTempPath(0x3acf28)
Y:/go/src/github.com/boltdb/bolt/db_test.go:489 +0x6d
github.com/boltdb/bolt.withOpenDB(0x3acf48)
Y:/go/src/github.com/boltdb/bolt/db_test.go:509 +0x4d
github.com/boltdb/bolt.TestBucket_Get_NonExistent(0xc084039000)
Y:/go/src/github.com/boltdb/bolt/bucket_test.go:27 +0x4d
testing.tRunner(0xc084039000, 0x782f40)
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease155988687/go/src/pkg/testing/testing.go:391 +0x8e
created by testing.RunTests
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease155988687/go/src/pkg/testing/testing.go:471 +0x8b5
goroutine 1 [chan receive]:
testing.RunTests(0x5f6508, 0x782f40, 0x7e, 0x7e, 0x1)
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease155988687/go/src/pkg/testing/testing.go:472 +0x8d8
testing.Main(0x5f6508, 0x782f40, 0x7e, 0x7e, 0x783c60, ...)
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease155988687/go/src/pkg/testing/testing.go:403 +0x87
main.main()
github.com/boltdb/bolt/_test/_testmain.go:313 +0x9f
exit status 2
FAIL github.com/boltdb/bolt 4.458s
I don't have any more time this morning to commit to this. If you have any ideas, let me know. Some of the mmap code is borrowed from @edsrzf's mmap-go and merged with LMDB's Windows mapping code. I'll try to take another look tomorrow.
from bolt.
Support for Windows added: #191
from bolt.
I landed the Windows Support PR this morning. You should be good to go. :)
from bolt.
Awesome! 👍
from bolt.
Related Issues (20)
- C/C++ binding for key/value storage HOT 3
- Security at rest HOT 1
- Can I use the same key for nested bucket and filed in a bucket/ HOT 1
- Document for New Contributors?
- page already freed HOT 5
- How to check if a file is a valid boltdb database without panicing HOT 2
- Check is a database open HOT 1
- what kind fo key can enhance write speed HOT 1
- concurrent writes and deadlocks HOT 2
- [RFE] change sequence number HOT 2
- [RFE] Database Generation ID HOT 7
- Database file size not updating after reaching 1GB HOT 3
- Meta2 make DBFile invalid HOT 1
- how to get the value that the current cursor points to HOT 3
- how to use boltdb for multiple files HOT 2
- page already freed on certain builds
- Not able to create subbucket inside loop
- Tons of compilation errors HOT 1
- permission denied in user home directory when open boltdb path HOT 1
- Cursor.Last() returns nil for non-empty bucket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt.