Data import/export

Hi,

I am try to export my storage and the import it again, using scala language. Export operation seems successfull: I can obtain both bin and csv files. But when I try to import data in a new location, I get this error:

Exception in thread "Thread-9" one.microstream.storage.exceptions.StorageException: Exception while reading import file /tmp/export-dir/scala.collection.immutable.HashMap_1000070.bin

    at one.microstream.storage.types.StorageRequestTaskImportData$Default.readFiles(StorageRequestTaskImportData.java:137)

    at java.lang.Thread.run(Thread.java:748)

Caused by: one.microstream.storage.exceptions.StorageException: currentFilePosition = 0. nextEntityLength = 0

    at one.microstream.storage.types.StorageDataFileItemIterator$Default.processInputFile(StorageDataFileItemIterator.java:237)

    at one.microstream.storage.types.StorageDataFileItemIterator$Default.iterateStoredItems(StorageDataFileItemIterator.java:314)

    at one.microstream.storage.types.StorageRequestTaskImportData$Default.readFiles(StorageRequestTaskImportData.java:131)

    ... 1 more

Caused by: one.microstream.storage.exceptions.StorageException: TypeId not resolvable via type dictionary: 1000070

    at one.microstream.storage.types.StorageTypeDictionary.lookupTypeHandlerChecked(StorageTypeDictionary.java:32)

    at one.microstream.storage.types.StorageEntityCache$Default.addNewType(StorageEntityCache.java:364)

    at one.microstream.storage.types.StorageEntityCache$Default.getType(StorageEntityCache.java:353)

    at one.microstream.storage.types.StorageEntityCache$Default.validateEntity(StorageEntityCache.java:593)

    at one.microstream.storage.types.StorageRequestTaskImportData$Default$ItemReader.accept(StorageRequestTaskImportData.java:216)

    at one.microstream.storage.types.StorageDataFileItemIterator$Default.processBufferedEntities(StorageDataFileItemIterator.java:282)

    at one.microstream.storage.types.StorageDataFileItemIterator$Default.processInputFile(StorageDataFileItemIterator.java:225)

    ... 3 more

 

What's wrong? I also tried to remove _numeric suffix from all file names, but I still get the same error.

 

Thank you,

Rita

Could you create for us sample project in Github, to demonstrate this problem? From this stack i can see just only, that there some Type what is not present in Type Dictionary, but i cannot recognize why?


In our experience, this is the easiest way to move this issue to a solution as quickly as possible.