Giter VIP home page Giter VIP logo

Comments (5)

CysOrion avatar CysOrion commented on May 27, 2024 1

I scrolled through the issue list in this repo and found a post that has similar bug:

https://github.com/JanusGraph/janusgraph/issues/2433#issuecomment-878311810

He provided a workaround which is removing Mixed index backend in graph configuration, I will use that work around for now.

from janusgraph.

FlorianHockmann avatar FlorianHockmann commented on May 27, 2024

I think this is really something that should be fixed in 1.0.0. The problem before 1.0.0 was that JanusGraph used the same mixed index in Elasticsearch for all graphs created by the ConfiguredGraphFactory. This has been changed in 1.0.0. JanusGraph now uses the graph.graphname as the name of the index for Elasticsearch by default.

So, before 1.0.0, JanusGraph couldn't only delete mixed indices of one graph since they weren't stored separately.
I'm just wondering why this isn't happening consistently for you. Do you maybe simply have some indices that are not present in all of your graphs?

But in general, please check whether this works as expected with JanusGraph 1.0.0.

from janusgraph.

CysOrion avatar CysOrion commented on May 27, 2024

@FlorianHockmann Thank you so much for your reply! From the release note you referenced it says same Elasticsearch index is used for all graphs if the same index names were used across different graphs, well in my case I always use unique index name for each graph. If delete graph works properly, it should only delete the mixed index that matches the names, which are the indices belongs to the graph, right?

And yes, this problem happens randomly for me, because there are times where ConfiguredGraphFactory.drop() deleted the correct indices, so I guess it was a bug?

Since the graph database is used in production, updating to 1.0.0 is something we want to avoid. We will still test this in 1.0.0 in a testing environment.

Do you know if there is a configuration that can disable mixed index deletion? That would solve the issue since we are ok to delete the indices manually. I looked through the configuration and I cannot find it, so maybe you can enlighten me, thanks!

from janusgraph.

porunov avatar porunov commented on May 27, 2024

If you have a test which reproduces the problem it would be much more efficient and faster to fix.
Some things to notice:

  1. Any release below 1.0 are EOL. Meaning new bug fixes are not pushed automatically to those releases. However, maintainers don’t object to backport those fixes if users open PRs on the relative branches (v0.6 in your case).
  2. As far as I remember JanusGraph below 1.0 didn’t have ability to remove the indices (a.k.a. tables) from ElasticSearch. Thus, if the bug on JanusGraph side then it would remove mixed index from the schema only and not delete actual data from ElasticSearch. Thus, as a workaround, you can create your missing indices with the same names you used and they will use the existing data from ElasticSearch (unless you manually removed data from ElasticSearch).

from janusgraph.

CysOrion avatar CysOrion commented on May 27, 2024

#2433

from janusgraph.

Related Issues (20)

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.