opensearch-project / opensearch-project/sql-odbc

[BUG] OpenSearch ODBC driver installer conflicts with already installed OpenDistro ODBC driver

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
10
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
OpenSearch and OpenDistro ODBC drivers conflicts with each other. It is impossible to install both of the on the computer.
Furthermore, it is impossible to install 32 bit driver if 64 bit one is already installed and otherwise.

To Reproduce
Steps to reproduce the behavior:

  1. Install OpenDistro ODBC driver taken from https://opendistro.github.io/for-elasticsearch/downloads.html
  2. Download OpenSearch ODBC driver with the same bitness. I used artifacts from this workflow run: https://github.com/opensearch-project/sql/actions/runs/1343276721
  3. Try to install it
  4. Error says that a newer version is already installed

Test 2

  1. Install OpenSearch ODBC 32-bit
  2. Try installing OpenSearch ODBC 64-bit
  3. Install succeeds, but the first driver is deleted

Expected behavior
OpenSearch ODBC driver is installed and co-exist with OpenDistro ODBC driver. No conflicts between them.
OpenSearch ODBC 32-bit driver is installed and co-exist with OpenSearch ODBC 64-bit driver. No conflicts between them.

Host/Environment (please complete the following information):

md5sum *.msi
82604ef8a21b3e048ed3e45545f38839  opendistro-sql-odbc-1.13.0.1-windows-x64.msi
69217d4692d91221700388f48649f16a  opendistro-sql-odbc-1.13.0.1-windows-x86.msi
52c3a8aa2214880cf480ed5208c13048  OpenSearch SQL ODBC Driver 32-bit-1.1.0.0-Windows.msi
94f078df2bb41b95dd7b13f5469b71cb  OpenSearch SQL ODBC Driver 64-bit-1.1.0.0-Windows.msi

Additional context
I guess this happened because both OpenSearch and OpenDistro ODBC drivers are registered as the same product in the system.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the Windows MSI installer configuration used for the 32-bit and 64-bit ODBC artifacts linked in the issue, focusing on product identity and registration. Reproduce the reported installs on Windows, then verify that OpenDistro and OpenSearch drivers, and both OpenSearch bitness variants, can coexist without one being removed or rejected.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.