[ 
https://issues.apache.org/jira/browse/SENTRY-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985528#comment-15985528
 ] 

Na Li commented on SENTRY-1400:
-------------------------------

I suspect the cause of the issue is that
1) When the keystore path is set in SentryServiceIntegrationBase.setupConf() 
line 186, the path is relative path. 
    "conf.set(ServerConfig.SENTRY_WEB_SSL_KEYSTORE_PATH,
          Resources.getResource("keystore.jks").getPath());"

2) When SentryWebServer.start() is called, the key store path is used to get 
keystore.jks, the absolute path of the key store is wrong because the root 
directory is not the root where the keystore.jks is. In other words, 
"/home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build%402" is not where 
the directory in step 1) is.
the build cannot find 
"/home/jenkins/jenkins-slave/workspace/PreCommit-SENTRY-Build%402/sentry-provider/sentry-provider-db/target/test-classes/keystore.jks
 (No such file or directory)"

3) Some discussion online shows the slave node may use the wrong root 
(top-level) directory.
https://issues.jenkins-ci.org/browse/JENKINS-17563 
java.io.FileNotFoundException: Engineering/iOS/UScapeIt/UScapeIt.app.ipa (No 
such file or directory)
"I believe the directory is fine.
The file reference should be relative to the workspace directory.
The job is running on a mac slave node.
Apparently, unlike the directory organization on the master node, it uses 
workspace instead of jobs as a top-level directory.
Also, instead of having a workspace subdirectory, the directory matching the 
jobname is the workspace."

> [Flaky test] TestSentryWebServerWithSSL times out
> -------------------------------------------------
>
>                 Key: SENTRY-1400
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1400
>             Project: Sentry
>          Issue Type: Test
>            Reporter: Sravya Tirukkovalur
>            Assignee: Na Li
>
> I atleast saw two precommit jobs which failed due to this:
> https://builds.apache.org/job/PreCommit-SENTRY-Build/1872/console
> https://builds.apache.org/job/PreCommit-SENTRY-Build/1874/console
> [~lili] any idea whats going on?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to