[MDEV-26218] connect engine JDBC on Debian 10 missing JavaWrappers.jar Created: 2021-07-22 Updated: 2023-08-30 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Platform Debian, Storage Engine - Connect |
| Affects Version/s: | 10.4.20 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Robert Dyas | Assignee: | Otto Kekäläinen |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Papercut | ||
| Environment: |
Debian 10 buster |
||
| Issue Links: |
|
||||||||
| Description |
|
The JavaWrappers.jar file needed by Connect Engine JDBC is missing on the Debian 10 build. On Centos 7 (from MariaDB upstream) the JavaWrappers.jar file is located in /usr/share/mysql but on Debian 10 it is not anywhere in the filesystem. |
| Comments |
| Comment by Otto Kekäläinen [ 2021-08-04 ] | ||||||||||||
|
What packages do you exactly have installed, what are you reporting this issue about? Please submit the result of this command:
| ||||||||||||
| Comment by Robert Dyas [ 2021-08-04 ] | ||||||||||||
|
Results below. Normally (on centos7 for example) there is a file called JavaWrappers.jar that is included in the plugin directory when the connect-engine package is installed (that file is required to be on the Java classpath for connect engine JDBC).
| ||||||||||||
| Comment by Anel Husakovic [ 2021-08-14 ] | ||||||||||||
|
Based on 3c922d6defcfa6be819fe33794abcf507bb70c25 it should be in mariadb-test-data package. | ||||||||||||
| Comment by Robert Dyas [ 2021-08-14 ] | ||||||||||||
|
No such folder installed when connect itself is installed. | ||||||||||||
| Comment by Robert Dyas [ 2021-08-14 ] | ||||||||||||
|
Are you saying I would need to install the mariadb-test package just to get teh JavaWrappers.jar file? That is a production file, not a test file. Rather than install all that, if it can't be included in the mariadb-plugin-connect package maybe you can make a seperate mariadb-plugin-connect-jdbc package that includes the needed file(s)? I'm not sure I understand. | ||||||||||||
| Comment by Otto Kekäläinen [ 2021-08-16 ] | ||||||||||||
|
WIP: https://github.com/MariaDB/server/pull/1890 I don't fully understand where and how exactly the jar package is build and what are the build-time and run-time dependencies of it. Can anel research and dig around in CMake code how it does it? | ||||||||||||
| Comment by Tuukka Pasanen [ 2021-10-05 ] | ||||||||||||
|
rdyas are you using official packages from MariaDB CentOS 7 not CentOS original RPM packages? As I didn't find original RPM packages that contains JAR-package. | ||||||||||||
| Comment by Robert Dyas [ 2021-10-05 ] | ||||||||||||
|
Sorry, this issue is on Debian 10 not cent os. | ||||||||||||
| Comment by Tuukka Pasanen [ 2021-11-04 ] | ||||||||||||
|
rdyas I understand that this is Debian 10 problem. I just wanted to have clarification as CentOS original MariaDB does not offer these jar-packages | ||||||||||||
| Comment by Robert Dyas [ 2021-11-04 ] | ||||||||||||
|
Aaah. They must have at one time and been dropped from all builds? Just guessing. Connect Engine JDBC can't work without it. | ||||||||||||
| Comment by Tuukka Pasanen [ 2021-11-05 ] | ||||||||||||
|
You said you need JDBC support in ha_connect/Connect Engine? Then it has to be enabled on that also because currently it's not supported and there is no JNI/JDBC support in Connect Enginen it's worth of nothing to have jar file as there is no endpoint for it. | ||||||||||||
| Comment by Robert Dyas [ 2021-11-05 ] | ||||||||||||
|
Tuukka... I'm not sure what you mean. We installed the Connect package on Debian and only use it for Connect JDBC... the only thing we needed to do to get it to work was grab the JavaWrappers.jar from an older install. Connect engine does have JNI/JDBC support if you were not aware... we have been using it for years now. | ||||||||||||
| Comment by Tuukka Pasanen [ 2021-11-12 ] | ||||||||||||
|
rdyas yes that was what I was after as Connect Engine needs support for JDBC/Java connect when linking. Hmm.. strange that is works without but it's kind of good thing. As Debian does not want just 'binary' blobs if source is available so it makes it little more complicated but in PR we'll sort it out. | ||||||||||||
| Comment by Tuukka Pasanen [ 2022-04-12 ] | ||||||||||||
|
otto should we get this on target or should I take this bug ownership? | ||||||||||||
| Comment by Otto Kekäläinen [ 2022-04-12 ] | ||||||||||||
|
illuusio I will dive into this over the weekend and try to finalize https://github.com/MariaDB/server/pull/1890 over the weekend. |