Comments (1)
Working backwards from innermost stack frame:
mapdb/Volume.java:434
public final DataInput2 getDataInput(long offset, int size) {
return new DataInput2(chunks[(int)(offset >>> chunkShift)], (int) (offset&chunkSizeModMask));
}
offset >>> chunkShift
equates to 136, which is the non-existent array index in chunks
.
chunkShift
seems to be 20 so chunks are 1MB in size?
So the offset
is wrong when passed at mapdb/StoreWAL.java:344:
DataInput2 in = (DataInput2) log.getDataInput(r[0]&LOG_MASK_OFFSET, size);
r[0]
comes from the modified
transaction HashMap (lines 333-334):
//check if record was modified in current transaction
long[] r = modified.get(ioRecid);
Is modified
somehow out of sync?
- cleared in
reloadIndexFile
but this shouldn't cause the issue above where there is a record - set to
PREALLOC
inpreallocate()
but also shouldn't cause issue above - set in
put()
line 228 - set in
update()
line 416 - set in
compareAndSwap()
line 477 - "tombstoned" in
delete()
line 528
Is the log
ByteBufferVol corrupted/reset outside of a write-lock by another thread?
logReset()
only checks forstructuralLock
logReset()
called by:rollback()
- under full write locksreplayLogFile()
twice - called bycommit()
- under full write locksStoreWAL
constructor
Does this situation only occur on Windows and hence something to do with mmap/Windows caching?
Is it possible to store more than chunkSize
in a chunk when ByteBufferVol should put extra bytes into next chunk? (Maybe add assert()
s to mapdb/Volume.java to test this)
from qora.
Related Issues (20)
- How to add SSL Cer-https to Qora VPS
- Wallet sync / DBMap ArrayIndexOutOfBoundsException HOT 2
- NullPointerException during NameStorageMap.remove() HOT 3
- connection error causes unnecessary noise in logs? HOT 1
- Another mapdb/interrupt issue (in Peer) HOT 3
- NPE in WalletTransactionsTableModel.getValueAt() during JSwing repaint
- NPE in BlocksTableModel.getValueAt() during JSwing repaint HOT 3
- JSON issue when repopulating name storage during startup HOT 2
- Client takes ages/hangs during shutdown while displaying "Closing database..." HOT 1
- Don't pin startup splash screen to foreground of viewport HOT 1
- wallet use question HOT 4
- Web-based name-storage page can't handle names with whitespace HOT 1
- Is this project dead? HOT 1
- Support mounted data directory (and dataBak/wallet dirs) HOT 3
- Support headless mode HOT 4
- Database/name service error HOT 3
- ClosedByInterruptException in Pinger HOT 2
- CLI mode broken HOT 1
- ConnectionCreator and ConnectionAcceptor don't shutdown smoothly HOT 1
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 qora.