Skip to content

Compatibility needs hacking to work (Client 7.3 ==> Server 6.8) #198

@truj

Description

@truj

I'm trying to use Search::Elasticsearch 7.3 together with Elasticsearch 6.8.
Referring to this comment, I've tried

my $es = Search::Elasticsearch->new(
    client => '6_0::Direct',
    %other_settings,
);

But I get this error:
Can't locate Search/Elasticsearch/Client/6_0/Direct.pm

Checking the install, I found out that there is indeed no file 6_0.pm inside of blib/lib/Search/Elasticsearch/Client/.
So I copied Search/Elasticsearch/Client/6_0.pm and (recursively) Search/Elasticsearch/Client/6_0/ from an old installation (Client version 6.8) to the new installation (Client version 7.3).
Now it seems to work.

My suggestion:
Include the newest 6.x client code into the 7.x client as well, so that the compatibility mode is working without hacks.
This is especially useful for upgrade scenarios like ours.
We try to minimize our down time during the upgrade. So we upgrade in several steps:

  • status quo: client 6.8 + server 6.8
  • client 7.3 in compatibility mode + server 6.8
  • client 7.3 in normal mode + server 6.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions