Skip to content

ShrinkToSN called to often and System.IO.IOException & others #6

Description

@ricardok1

Hi there,

I'm trying to use DensoDB as one of many DB providers but I'm getting random errors:

  1. ShrinkToSN called many times and sometimes gets System.IO.IOException on Insert or on Get something
    using (var readerfs = File.Open(FileName, FileMode.Open, FileAccess.Read, FileShare.Write))
    here» using (var writerfs = File.Open(FileName, FileMode.Open, FileAccess.Write, FileShare.Read))

Initially was using in a multithread env but even single-thread keeps happening

Detail:
{"The process cannot access the file 'C:\denso.jnl' because it is being used by another process."}

  1. How to delete a DB?

  2. How to delete a record?

  3. How to make a kind of Insert or Update

  4. Getting no results from:

a) define a class for my data

 private class KeyDataStruct
        {
            public string Tablename;
            public string Key;
            public string Data;
            public DateTime DateTimeMask;
        }

b) save the data

DeNSo.Session denso = d.Session.New;
                DeNSo.EventCommandStatus command;

                command = denso.Set(
                                    new KeyDataStruct()
                                    {
                                        Tablename = tablename,
                                        Key = key,
                                        Data = data,
                                        DateTimeMask = System.DateTime.Now
                                    }

                    );

c) file contains:
* "_action":"denso_builtin_set","_value":{"Tablename":"test","Key":"0000","Data":"0000-BJsWzPLnsjFFGq5************

d) but running this with tablename = test and key = 0000

 DeNSo.Session denso = d.Session.New;

            List<KeyDataStruct> result = denso.Get<KeyDataStruct>(
                        c => 
                            c.Tablename == tablename &&
                            c.Key == key
                            ).ToList<KeyDataStruct>();

get empty results;

Thanks
Ricardo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions