Hi, I'm performing an intensive write and read operations using PHT.
Everything works fine but after few minutes I'm getting some
exceptions. (listed below) . Pht database stops at 25MB.

And here are my methods, which are executed:
--------------------
using (var table = new PersistentHashTable(_dataBase))
            {
                table.Initialize();
                table.Batch(actions =>
                                {
                                    foreach (var item in records)
                                    {
                                        actions.Put(new PutRequest
                                        {
                                            Key = item.FetchedUri,
                                            Bytes = new byte[] { 1 },
                                            ExpiresAt =
item.PublishDate.AddMonths(2),
                                            ParentVersions = new
ValueVersion[0],
                                            OptimisticConcurrency =
false,
                                            IsReadOnly = true
                                        });
                                    }

                                    actions.Commit();
                                });
            }
--------------------
 using (var table = new PersistentHashTable(_dataBase))
            {
                table.Initialize();
                table.Batch(actions =>
                {
                    result = actions.Get(new GetRequest { Key =
fetchedUri }).Length == 1;
                });
            }
--------------------
Exceptions:

17:08:30 System.InvalidOperationException: Could not open cache: C:
\GoToWork.Backend\parsing.history\parsing.history --->
Microsoft.Isam.Esent.Interop.EsentErrorException: Error TempPathInUse
(JET_errTempPathInUse, Temp path already used by another database
instance)
   at Microsoft.Isam.Esent.Interop.Api.Fail(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.JetInit(JET_INSTANCE& instance)
   at Rhino.PersistentHashTable.PersistentHashTable.Initialize()
   --- End of inner exception stack trace ---
   at Rhino.PersistentHashTable.PersistentHashTable.Initialize()
   at
GoToWork.Backend.Core.ParsingHistory.ParsingHistoryManager.PutParsingHistoryResults(List`1
records, Boolean failedBatch) in C:\Projects\GoToWork\backend
\GoToWork.Backend.Core\Querying\ParsingHistory
\ParsingHistoryManager.cs:line 24

17:08:06 Microsoft.Isam.Esent.Interop.EsentErrorException: Error
OutOfBuffers (JET_errOutOfBuffers, Out of database page buffers)
   at Microsoft.Isam.Esent.Interop.Api.Fail(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.JetRollback(JET_SESID sesid,
RollbackTransactionGrbit grbit)
   at Microsoft.Isam.Esent.Interop.Transaction.Rollback()
   at Microsoft.Isam.Esent.Interop.Transaction.ReleaseResource()
   at Microsoft.Isam.Esent.Interop.EsentResource.Dispose(Boolean
isDisposing)
   at Microsoft.Isam.Esent.Interop.EsentResource.Dispose()
   at Rhino.PersistentHashTable.PersistentHashTableActions.Dispose()
   at Rhino.PersistentHashTable.PersistentHashTable.Batch(Action`1
action)
   at
GoToWork.Backend.Core.ParsingHistory.ParsingHistoryManager.PutParsingHistoryResults(List`1
records, Boolean failedBatch) in C:\Projects\GoToWork\backend
\GoToWork.Backend.Core\Querying\ParsingHistory
\ParsingHistoryManager.cs:line 25


17:08:55 System.InvalidOperationException: Could not open cache: C:
\GoToWork.Backend\parsing.history\parsing.history --->
Microsoft.Isam.Esent.Interop.EsentErrorException: Error
ConsistentTimeMismatch (JET_errConsistentTimeMismatch, Database last
consistent time unmatched)
   at Microsoft.Isam.Esent.Interop.Api.Fail(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.JetInit(JET_INSTANCE& instance)
   at Rhino.PersistentHashTable.PersistentHashTable.Initialize()
   --- End of inner exception stack trace ---
   at Rhino.PersistentHashTable.PersistentHashTable.Initialize()
   at
GoToWork.Backend.Core.ParsingHistory.ParsingHistoryManager.PutParsingHistoryResults(List`1
records, Boolean failedBatch) in C:\Projects\GoToWork\backend
\GoToWork.Backend.Core\Querying\ParsingHistory
\ParsingHistoryManager.cs:line 24
17:08:58 System.InvalidOperationException: Could not open cache: C:
\GoToWork.Backend\parsing.history\parsing.history --->
Microsoft.Isam.Esent.Interop.EsentErrorException: Error
ConsistentTimeMismatch (JET_errConsistentTimeMismatch, Database last
consistent time unmatched)
   at Microsoft.Isam.Esent.Interop.Api.Fail(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
   at Microsoft.Isam.Esent.Interop.Api.JetInit(JET_INSTANCE& instance)
   at Rhino.PersistentHashTable.PersistentHashTable.Initialize()
   --- End of inner exception stack trace ---
   at Rhino.PersistentHashTable.PersistentHashTable.Initialize()
   at
GoToWork.Backend.Core.ParsingHistory.ParsingHistoryManager.PutParsingHistoryResults(List`1
records, Boolean failedBatch) in C:\Projects\GoToWork\backend
\GoToWork.Backend.Core\Querying\ParsingHistory
\ParsingHistoryManager.cs:line 24

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to