elasticio / sailor-jvm

The official elastic.io library for bootstrapping and executing for connectors built on JVM.
0 stars 2 forks source link

Java sailor ignores verification error #60

Closed A3a3e1 closed 3 years ago

A3a3e1 commented 3 years ago

https://github.com/elasticio/elasticio/issues/4977

A3a3e1 commented 3 years ago

Fix works well. Two other (platform-side) bugs have been found during testing

A3a3e1 commented 3 years ago

In sprint 56 we should have a knowledge transfer session with Igor. Sailor 3.3.2 should be published

stas-fomenko commented 3 years ago

Now credentials verification reason is displaying on the UI:

image

logs:

Starting your Docker container ...
[INFO  tini (1)] Spawned child process '/run.sh' with pid '6'
Starting application in apprunner...
Will try to start app at /home/apprunner
13:26:22,314 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@35d176f7 - URL [jar:file:/home/apprunner/build/elasticio/dependencies/sailor-jvm-3.3.2.jar!/logback.xml] is not of type file
13:26:22,251 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
13:26:22,251 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/home/apprunner/build/elasticio/dependencies/sailor-jvm-3.3.2.jar!/logback.xml]
13:26:22,503 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
13:26:22,251 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
13:26:23,141 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
13:26:22,444 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
13:26:22,510 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
13:26:23,141 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
13:26:22,525 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@6:22 - no applicable action for [pattern], current ElementPath  is [[configuration][appender][encoder][pattern]]
13:26:22,510 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
13:26:23,141 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
13:26:22,525 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@6:22 - no applicable action for [pattern], current ElementPath  is [[configuration][appender][encoder][pattern]]
Starting execution of verifyCredentials
Component descriptor from classpath: /component.json
Instantiating class io.elastic.jdbc.JdbcCredentialsVerifier
About to connect to database using given credentials
About to verify credentials
Connecting to connection string
Sending response
Credentials verification failed
Sending POST request to /v2/exec/result/601952facf482b00117920b9
Got 200 response
Successfully posted json 87 bytes length
Received response from server
Java exiting with 0
[INFO  tini (1)] Main child exited normally (with status '0')