lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chaitanya (JIRA)" <>
Subject [jira] Commented: (LUCENENET-383) System.IO.IOException: read past EOF while deleting the file from upload folder of filemanager.
Date Mon, 06 Dec 2010 06:46:11 GMT


chaitanya commented on LUCENENET-383:

The error is throwing from  Lucene.Net.Store.BufferedIndexInput.Refill() method.
please check below for the code
throw new IOexception("read past EOF");

But we don't know when this bufferlength becoming Zero.

Neal mentioned that .....It is possible that the document "id" that they are attempting to
delete from the Lucene index does not exist.May be the above error comes in this case.

But the file exists in upload folder.And what we found is when deleting the file..we are getting
above eroor,but  anyhow the file is deleted..only annoying thing here is if the file deletion
happens successfully also..we are getting this error.

What i felt is once after deleting the file...lucene again searching for the "ID" for second
time..that time "id" is not available..hence the error coming.

if this is the situation , why Lucene is searching for this "Id"..two times..for only one

> System.IO.IOException: read past EOF while deleting the file from upload folder of filemanager.
> -----------------------------------------------------------------------------------------------
>                 Key: LUCENENET-383
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: production
>            Reporter: chaitanya
> We are getting System.IO.IOException: read past EOF when deleting the file from upload
folder of filemanager.It used to work fine earlier.But from fast few days we are getting this
> We are using episerver content management system and episerver inturn uses Lucene for
> Please find the following stack trace of the error.Help me inorder to overcome this error.Thanks
in advance
> [IOException: read past EOF]
>    Lucene.Net.Store.BufferedIndexInput.Refill() +233
>    Lucene.Net.Store.BufferedIndexInput.ReadByte() +21
>    Lucene.Net.Store.IndexInput.ReadInt() +13
>    Lucene.Net.Index.SegmentInfos.Read(Directory directory) +60
>    Lucene.Net.Index.AnonymousClassWith.DoBody() +45
>    Lucene.Net.Store.With.Run() +67
>    Lucene.Net.Index.IndexReader.Open(Directory directory, Boolean closeDirectory) +110
>    Lucene.Net.Index.IndexReader.Open(String path) +65
>    EPiServer.Web.Hosting.Versioning.Store.FileOperations.DeleteItemIdFromIndex(String
filePath, Object fileId) +78
>    EPiServer.Web.Hosting.Versioning.Store.FileOperations.DeleteFile(Object dirId, Object
fileId) +118
>    EPiServer.Web.Hosting.Versioning.VersioningFileHandler.Delete() +28
>    EPiServer.Web.Hosting.VersioningFile.Delete() +118
>    EPiServer.UI.Hosting.UploadFile.ConfirmReplaceButton_Click(Object sender, EventArgs
e) +578
>    EPiServer.UI.WebControls.ToolButton.OnClick(EventArgs e) +107
>    EPiServer.UI.WebControls.ToolButton.RaisePostBackEvent(String eventArgument) +135
>    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String
eventArgument) +13
>    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
>    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +1565

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message