Giter Site home page Giter Site logo

Comments (4)

rcoh avatar rcoh commented on May 25, 2024

Pasting my response:

The right answer is to maintain multiple branches for each version -- it's what all the other major ES libraries do. I'd rather not try to extract some shared classes and try to have one piece of code support multiple versions -- given the way we test and build the repo it just isn't pragmatic.

In a world where we were trying to make the best possible public library, we'd maintain a 2.x branch and a 5.x branch. I'm not saying we should necessarily go to that length. Anyone still on 1.x won't be able to use the new releases (full stop). A 1.x branch will be created if it hasn't already to backport changes to 1.x.

from elasticsearch-client.

davidcarltonsumo avatar davidcarltonsumo commented on May 25, 2024

The scenario that I'm worried about with the multiple branch situation is how the client can handle upgrading elasticsearch server versions. Depending on how we do the upgrade, we might actually have the same java binary talking to a 1.x and 2.x server (or 2.x and 5.x) simultaneously; that java code can only have one version of the elasticsearch-client jar in its class path. And even if we do the upgrade in a way that there's only one elasticsearch server version running at any given time, I'd prefer not to structure things so that, when we flip the switch on the server, we also have to change our deployed code in lockstep with flipping the switch on the server.

from elasticsearch-client.

rcoh avatar rcoh commented on May 25, 2024

from elasticsearch-client.

davidcarltonsumo avatar davidcarltonsumo commented on May 25, 2024

yeah, that seems entirely reasonable to me. I don't see any reason to try to support all versions at once, the transitions are what matter.

from elasticsearch-client.

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.