[
https://issues.apache.org/jira/browse/SOLR-11722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16321433#comment-16321433
]
Gus Heck commented on SOLR-11722:
---------------------------------
Hmm I seem to have a reproducable intermitent failure in my test, I had seen
this earlier, but it didn't look related and I didn't see it after updating,
but now it's back...
ant test -Dtestcase=CreateRoutedAliasTest -Dtests.method=testV1
-Dtests.seed=25994AC1D6CA0163 -Dtests.locale=th-TH-u-nu-thai-x-lvariant-TH
-Dtests.timezone=Pacific/Johnston -Dtests.asserts=true
-Dtests.file.encoding=UTF-8
leads to:
{code}
[junit4] ERROR 0.16s | CreateRoutedAliasTest.testV1 <<<
[junit4] > Throwable #1: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
[junit4] > at
__randomizedtesting.SeedInfo.seed([25994AC1D6CA0163:8A578DB19727ADF3]:0)
[junit4] > at
sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
[junit4] > at
sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)
[junit4] > at
sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
[junit4] > at
sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
[junit4] > at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)
[junit4] > at
sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
[junit4] > at
sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
[junit4] > at
sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
[junit4] > at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
[junit4] > at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
[junit4] > at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
[junit4] > at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
[junit4] > at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
[junit4] > at
org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
[junit4] > at
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
[junit4] > at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
[junit4] > at
org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
[junit4] > at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
[junit4] > at
org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
[junit4] > at
org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
[junit4] > at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
[junit4] > at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
[junit4] > at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
[junit4] > at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
[junit4] > at
org.apache.solr.cloud.CreateRoutedAliasTest.testV1(CreateRoutedAliasTest.java:164)
[junit4] > at java.lang.Thread.run(Thread.java:748)
[junit4] > Caused by: sun.security.validator.ValidatorException: PKIX
path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
[junit4] > at
sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
[junit4] > at
sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
[junit4] > at
sun.security.validator.Validator.validate(Validator.java:260)
[junit4] > at
sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
[junit4] > at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
[junit4] > at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
[junit4] > at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
[junit4] > ... 59 more
[junit4] > Caused by:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
[junit4] > at
sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
[junit4] > at
sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
[junit4] > at
java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
[junit4] > at
sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
[junit4] > ... 65 more
{code}
> API to create a Time Routed Alias and first collection
> ------------------------------------------------------
>
> Key: SOLR-11722
> URL: https://issues.apache.org/jira/browse/SOLR-11722
> Project: Solr
> Issue Type: Sub-task
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCloud
> Reporter: David Smiley
> Attachments: SOLR-11722.patch, SOLR-11722.patch
>
>
> This issue is about creating a single API command to create a "Time Routed
> Alias" along with its first collection. Need to decide what endpoint URL it
> is and parameters.
> Perhaps in v2 it'd be {{/api/collections?command=create-routed-alias}} or
> alternatively piggy-back off of command=create-alias but we add more options,
> perhaps with a prefix like "router"?
> Inputs:
> * alias name
> * misc collection creation metadata (e.g. config, numShards, ...) perhaps in
> this context with a prefix like "collection."
> * metadata for TimeRoutedAliasUpdateProcessor, currently: router.field
> * date specifier for first collection; can include "date math".
> We'll certainly add more options as future features unfold.
> I believe the collection needs to be created first (referring to the alias
> name via a core property), and then the alias pointing to it which demands
> collections exist first. When figuring the collection name, you'll need to
> reference the format in TimeRoutedAliasUpdateProcessor.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]