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

ASF GitHub Bot commented on BOOKKEEPER-896:
-------------------------------------------

GitHub user eolivelli opened a pull request:

    https://github.com/apache/bookkeeper/pull/20

    BOOKKEEPER-896: VM-local transport

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/eolivelli/bookkeeper BOOKKEEPER-896

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/bookkeeper/pull/20.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 #20
    
----
commit e33f2e01973f4d82dff8fad3a1d96e9037f4bdbb
Author: eolivelli <[email protected]>
Date:   2015-11-25T16:07:13Z

    BOOKKEEPER-879: Record ledger creation time

commit c43f0b4e0a400ac87acbc278055e582177812e2d
Author: eolivelli <[email protected]>
Date:   2015-11-25T16:15:25Z

    BOOKKEEPER-879: Record ledger creation time

commit 2a8e7008402ca7c1cf9188751b3e21ca2dcce7de
Author: eolivelli <[email protected]>
Date:   2016-01-14T08:02:23Z

    BOOKKEEPER-879: Record ledger creation time

commit 94cdee6a99fb07938cc30806bbe99d78b8bb1b30
Author: eolivelli <[email protected]>
Date:   2016-01-15T15:39:44Z

    BOOKKEEPER-879: Record ledger creation time

commit 227d50c7db634a23bd30cc3478ddfe3c307aaa62
Author: eolivelli <[email protected]>
Date:   2016-01-30T21:51:43Z

    BOOKKEEPER-879: Record ledger creation time

commit 509ad4f31c5f10f96a0272d842120984ce2db04b
Author: eolivelli <[email protected]>
Date:   2016-02-03T07:40:09Z

    BOOKKEEPER-879: Record ledger creation time

commit eb17e3e884a98b91647ecba15e13a8f55aad61e1
Author: eolivelli <[email protected]>
Date:   2016-03-04T09:36:36Z

    Merge branch 'master' of https://github.com/apache/bookkeeper

commit 072dd9d343b5e24d874b3d2c240dfa22aefc3d6d
Author: eolivelli <[email protected]>
Date:   2016-03-04T10:55:38Z

    BOOKKEEPER-896

commit 134be5ddb2bf2a468df9f0f0066fe1f9838c41a8
Author: eolivelli <[email protected]>
Date:   2016-03-04T13:36:50Z

    BOOKKEEPER-896

commit f2611257c50af320a7494b05cd647c4dfbb0121d
Author: eolivelli <[email protected]>
Date:   2016-03-04T13:36:50Z

    BOOKKEEPER-896: VM-local transport

commit 9564d2897426c7ddd807730ec32166623f4e31ce
Author: eolivelli <[email protected]>
Date:   2016-03-04T13:39:38Z

    Merge branch 'BOOKKEEPER-896' of https://github.com/eolivelli/bookkeeper 
into BOOKKEEPER-896

commit 70d5816dddb6ec393eeadbc2e7026a79a2e6f269
Author: eolivelli <[email protected]>
Date:   2016-03-04T13:49:03Z

    BOOKKEEPER-896: VM-local transport

commit 730957730ea5643e23b26c4f6ff1aea9bde0fa2e
Author: eolivelli <[email protected]>
Date:   2016-03-04T13:59:28Z

    BOOKKEEPER-896: VM-local transport

commit c3971e2513c4640e5dde3a721ea1f860479c3407
Author: eolivelli <[email protected]>
Date:   2016-03-04T14:12:53Z

    BOOKKEEPER-896: VM-local transport

commit e4e36c721a07eb091b838a6b63a824ff35e77cc4
Author: eolivelli <[email protected]>
Date:   2016-03-04T14:19:13Z

    BOOKKEEPER-896: VM-local transport

commit 6da9b34d808acba03405a0ee55aae00bb562d717
Author: eolivelli <[email protected]>
Date:   2016-03-04T14:22:31Z

    BOOKKEEPER-896: VM-local transport

commit d93edd87314b17b7ea9f19d86a7bf1f1479c085b
Author: eolivelli <[email protected]>
Date:   2016-03-04T14:23:42Z

    BOOKKEEPER-896: VM-local transport

commit f4778ea55802c4b406ab5ff61a3140c0dab171c2
Author: eolivelli <[email protected]>
Date:   2016-03-04T14:25:18Z

    BOOKKEEPER-896: VM-local transport

----


> VM-local transport
> ------------------
>
>                 Key: BOOKKEEPER-896
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-896
>             Project: Bookkeeper
>          Issue Type: New Feature
>          Components: bookkeeper-client, bookkeeper-server
>    Affects Versions: 4.4.0
>            Reporter: Enrico Olivelli
>            Priority: Minor
>
> Hi,
> I’m wondering if it is feasible to have a way to launch a Bookie and a 
> Bookkeeper client in the same JVM without using network, valid use cases are:
> 1) Unit testing 
> 2) Installations using a single Bookie 
> 1) Unit testing
> For unit testing  I’m using mock classes which reproduce the functions of 
> Bookkeeper but it makes my code more complex. 
> Running network-related libraries limits the possibility of running tests in 
> parallel and slows down the overall throughput of the tests
> 2) Single Bookie deployment
> Sometimes I need to launch software which uses Bookkeeper in a single-machine 
> deployment, in this case using an embedded Bookie will let to have only a 
> single JVM process which runs the full stack of the service.
> For instance when I’m using Bookkeeper as a commit log I need to implement a 
> commit log which uses Bookkeeper for replicated deployments, a simple “file” 
> based commit log  and a pure in-memory commit log for unit testing.
> I think it could be done using Netty LocalServerChannelFactory (and related 
> client-side classes) and some tricks about the use of hostnames, registration 
> on Zookeeper and so on
> Of course the same issue will be on Zookkeeper 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to