[
https://issues.apache.org/jira/browse/SOLR-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602476#comment-14602476
]
ASF GitHub Bot commented on SOLR-3192:
--------------------------------------
GitHub user chenlb opened a pull request:
https://github.com/apache/lucene-solr/pull/166
Feature/5x netty protocol
netty protocol for branch_5x
https://issues.apache.org/jira/browse/SOLR-3192
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chenlb/lucene-solr feature/5x_netty_protocol
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/166.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #166
----
commit fac69bbbb37423983b58b72aa1c8f75a26fe75bc
Author: chenlb <[email protected]>
Date: 2015-06-26T02:42:35Z
SOLR-3192 : solr support netty protocol NettySolrClient
commit 7bab073521edb12733b2b75ec6385538dd3722e2
Author: chenlb <[email protected]>
Date: 2015-06-26T06:30:36Z
for SOLR-3192 NettySolrCall compatible branch_5x
----
> NettySolrClient (supported by netty/protobuf)
> ---------------------------------------------
>
> Key: SOLR-3192
> URL: https://issues.apache.org/jira/browse/SOLR-3192
> Project: Solr
> Issue Type: New Feature
> Affects Versions: 5.2.1
> Reporter: Linbin Chen
> Labels: netty
> Fix For: Trunk, 5x
>
> Attachments: SOLR-3192-base-5.2.1.patch, SOLR-3192-for-5x.patch
>
>
> solr support netty tcp, netty/tcp can handle asynchronous,efficient,keepalive
> ...
> it's used on solr cloud or solrj
> solr.proto maybe
> {code:java}
> package org.apache.solr.client.solrj.impl.netty.protocol;
> option java_package = "org.apache.solr.client.solrj.impl.netty.protocol";
> option java_outer_classname = "SolrProtocol";
> option optimize_for = SPEED;
> message Param {
> required string key = 1;
> // string[]
> repeated string value = 2;
> }
> message ContentStream {
> optional string name = 1;
> optional string sourceInfo = 2;
> optional string contentType = 3;
> required int64 size = 4;
> required bytes stream = 5;
> }
> message SolrRequest {
> required int64 rid = 1;
> optional string collection =2;
> required string path = 3;
> // multi param
> repeated Param param = 4;
> // multi content stream
> repeated ContentStream contentStream = 5;
> optional string method = 6;
> }
> message ResponseBody {
> required string contentType = 1;
> required bytes body = 2;
> }
> message KeyValue {
> required string key = 1;
> required string value = 2;
> }
> message ExceptionBody {
> required int32 code = 1;
> optional string message = 2;
> repeated KeyValue metadata = 3;
> optional string trace = 4;
> }
> message SolrResponse {
> required int64 rid = 1;
> optional ResponseBody responseBody = 2;
> //maybe multi Exception
> repeated ExceptionBody exceptionBody = 3;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]