-
Notifications
You must be signed in to change notification settings - Fork 2
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
NPE when syncing index to disk #12
Comments
You appear to have hit a race condition in public Future<Long> requestSyncToDisk() throws InterruptedException {
if(batchWriteTask == null) {
batchWriteTask = new FutureTask<Long>(new Callable<Long>() {
@Override
public Long call() throws Exception {
return writeCurrentBatch();
}
});
inputQueue.put(DUMP_BATCH);
}
return batchWriteTask;
} and this code (line 1608, the thread that processes the background task requests): if(aDocument == DUMP_BATCH) {
//dump batch was requested
if(batchWriteTask != null){
batchWriteTask.run();
}
batchWriteTask = null; The sync is running to completion between the Fixing this will need careful reasoning about the concurrency properties of AtomicIndex, and may need us to introduce some uses of |
This seems to have worked allright when I tried another time, so not urgent! |
Not sure where to put this, as I got it when running Mimir as pulled in from Prospector.
After running the indexing, I wanted to sync to disk and got a blank screen, and the following on the console:
The text was updated successfully, but these errors were encountered: