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

Chris M. Hostetter commented on SOLR-16812:
-------------------------------------------

{{TestCborDataFormat}} has been failing 11.17% of all jenkins jobs for days ... 
apparently it's all of the windows jobs?

 
{noformat}
   >     java.lang.AssertionError: expected:<633600> but was:<662629>
   >         at 
__randomizedtesting.SeedInfo.seed([DDB240ABC3CFEFCF:55E67F716D338237]:0)
   >         at app//org.junit.Assert.fail(Assert.java:89)
   >         at app//org.junit.Assert.failNotEquals(Assert.java:835)
   >         at app//org.junit.Assert.assertEquals(Assert.java:647)
   >         at app//org.junit.Assert.assertEquals(Assert.java:633)
   >         at 
app//org.apache.solr.util.TestCborDataFormat.test(TestCborDataFormat.java:186)
{noformat}
 

code...
{code:java}
     Path filmsJson = new File(ExternalPaths.SOURCE_HOME, 
"example/films/films.json").toPath();    long sz = Files.size(filmsJson);
    assertEquals(633600, sz);
{code}
 

Text File sizes on windows are going to be different then on other platforms 
given line endings...
{noformat}
hossman@slate:~/lucene/solr [j11] [main] $ du --bytes 
solr/example/films/films.json
633600    solr/example/films/films.json
hossman@slate:~/lucene/solr [j11] [main] $ git check-attr -a 
solr/example/films/films.json
solr/example/films/films.json: text: auto
{noformat}
 

> Support CBOR format for update/query
> ------------------------------------
>
>                 Key: SOLR-16812
>                 URL: https://issues.apache.org/jira/browse/SOLR-16812
>             Project: Solr
>          Issue Type: Task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Major
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> Javabin is quite efficient and fast . But non-java users have to use JSON 
> exclusively
>  
> [CBOR |http://example.com/] is a widely used format that is supported by most 
> languages. 
>  
> Here is a benchmark of updating using CBOR vs. JSON our films.json
> {code:java}
> Payload Size (bytes)
> ============
>  
> json : 633600
> cbor : 210439  
> javabin: 234520
> time taken to index
> ====================
> JSON: 330ms
> JAVABIN: 216ms
> CBOR: 200ms
> time takes to query *:* 1100 docs
> ==================================
> json: 85 ms
> javabin : 64ms 
> cbor : 53ms{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to