Git Product home page Git Product logo

storeit's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

storeit's Issues

IndexMissingException

I've got a IndexMissingException when I use a storage & the given index is missing. It's a runtime exception and cannot be catch.

This exception should be wrapped in a StorageException, or the index should be created when it does not exist.

play.api.UnexpectedException: Unexpected exception[IndexMissingException: [index] missing]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:194) ~[play_2.11-2.4.0-M3.jar:2.4.0-M3]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:148) ~[play_2.11-2.4.0-M3.jar:2.4.0-M3]
    at scala.Option.map(Option.scala:146) ~[scala-library-2.11.5.jar:na]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:148) ~[play_2.11-2.4.0-M3.jar:2.4.0-M3]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:146) ~[play_2.11-2.4.0-M3.jar:2.4.0-M3]
    at scala.util.Success.flatMap(Try.scala:230) ~[scala-library-2.11.5.jar:na]
    at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:146) ~[play_2.11-2.4.0-M3.jar:2.4.0-M3]
    at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:138) ~[play_2.11-2.4.0-M3.jar:2.4.0-M3]
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) ~[scala-library-2.11.5.jar:na]
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) ~[scala-library-2.11.5.jar:na]
    at scala.concurrent.forkjoin.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1361) ~[scala-library-2.11.5.jar:na]
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) ~[scala-library-2.11.5.jar:na]
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) ~[scala-library-2.11.5.jar:na]
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) ~[scala-library-2.11.5.jar:na]
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) ~[scala-library-2.11.5.jar:na]
Caused by: org.elasticsearch.indices.IndexMissingException: [index] missing
    at org.elasticsearch.cluster.metadata.MetaData.convertFromWildcards(MetaData.java:828) ~[elasticsearch-1.5.0.jar:na]
    at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:685) ~[elasticsearch-1.5.0.jar:na]
    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.<init>(TransportSearchTypeAction.java:113) ~[elasticsearch-1.5.0.jar:na]
    at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:70) ~[elasticsearch-1.5.0.jar:na]
    at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:64) ~[elasticsearch-1.5.0.jar:na]
...

Bulk store

We should be able to have a bulk store with a list of the StoredEntity.

Cannot perform update

I've got an error when trying an update:

Caused by: com.ingensi.data.storeit.InternalStorageException: Unable to index entity com.ingensi.data.storeit.entities.ChunkStoredEntity@6f26dadf (not created)
    at com.ingensi.data.storeit.ElasticsearchStorage.createOrUpdate(ElasticsearchStorage.java:139) ~[storeit-elasticsearch-1.0.2.jar:na]
    at com.ingensi.data.storeit.ElasticsearchStorage.update(ElasticsearchStorage.java:109) ~[storeit-elasticsearch-1.0.2.jar:na]
    at com.ingensi.data.storeit.ElasticsearchStorage.update(ElasticsearchStorage.java:103) ~[storeit-elasticsearch-1.0.2.jar:na]
...

The other methods works great, so it is not a configuration problem. Eventually a workaround is to use delete and store after.

Push version 1.0.2 to maven central

Artifact should be available on maven central repository as:

  • groupId = com.ingensi
  • artifactId = storeit-{core,elasticsearch}
  • version = 1.0.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.