Skip to content
Permalink
Branch: master
Commits on May 21, 2019
  1. Merge pull request #999 from square/keefer/0521-guice-servicegraphbui…

    keeferrourke committed May 21, 2019
    …lder
    
    Guice EDSL for ServiceGraphBuilder
  2. Merge pull request #1001 from square/jayestrella/20190521-add-rebalan…

    swankjesse committed May 21, 2019
    …cinginterceptor
    
    Add RebalancingInterceptor in misk to randomly close connections
  3. tightened up API and documentation w @swankjesse

    keeferrourke committed May 21, 2019
  4. Add RebalancingInterceptor in misk to randomly close connections with…

    Jonathan Estrella
    Jonathan Estrella committed May 21, 2019
    … a configurable percent chance
  5. removed extra whitespace

    keeferrourke committed May 21, 2019
  6. allowed annotations to be specified and documented new EDSL

    keeferrourke committed May 21, 2019
  7. added Guice provider method for ServiceGraphBuilder

    keeferrourke committed May 17, 2019
    ServiceGraphs may now be built by installing special modules in a
    KAbstractModule#configure() method via a simple API.
    
    e.g. If we have Services{A,B,C,D,E} in the following configuration:
    
    ```
    ServiceA
      depended on by ServiceB
        enhanced by ServiceC
      depended on by ServiceD
        depended on by ServiceE
    ```
    
    Then we can register these services in that configuration with a module
    as follows:
    
    ```
    val injector = Guice.createInjector(object: KAbstractModule() {
      override fun configure() {
        install(service<ServiceA>())
        install(service<ServiceB>()
            .dependsOn<ServiceA>()
            .enhancedBy<ServiceC>()
        )
        install(service<ServiceC>())
        install(service<ServiceD>().dependsOn<ServiceA>())
        install(service<ServiceE>().dependsOn<ServiceD>())
      }
    })
    ```
    
    And obtain a service manager by:
    
    ```
    val builder = injector.getInstance<ServiceGraphBuilder>()
    val serviceManager = builder.build()
    ```
    
    In future commits:
     - Once everything in Misk is migrated to be provided a
       ServiceGraphBuilder, change the implementation of
       provideServiceManager to obtain and build the ServiceGraph instead of
       requiring modules to build the serviceManager themselves
Commits on May 20, 2019
  1. Merge pull request #997 from square/jontirsen/2019-05-20/validate-once

    tirsen committed May 20, 2019
    Validate each database only once
  2. Validate each database only once

    tirsen committed May 20, 2019
  3. Merge pull request #996 from square/jontirsen/2019-05-19/service-logging

    tirsen committed May 20, 2019
    Log error when service fails
  4. Log error when service fails

    tirsen committed May 19, 2019
Commits on May 19, 2019
  1. Duplex gRPC via Jetty (#995)

    oldergod committed May 19, 2019
Commits on May 17, 2019
  1. Bump MySQL connector (#993)

    jjestrel committed May 17, 2019
  2. Remove Gradle localdb custom task (#992)

    adrw committed May 17, 2019
    * Broadly unused and can be replaced with using a bash function / alias as below
    
    ```
    function dbup {
        docker run -d --rm --name "$(basename "$(pwd)")-mysql-57" -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:5.7
    }
    ```
Commits on May 16, 2019
  1. rename jetty_ metrics to http_ (#988)

    mightyguava committed May 16, 2019
    So these http metrics are framework-agnostic
  2. Make UserType function parameters nullable in BoxedStringType (#990)

    hamdanjaveed authored and adrw committed May 16, 2019
  3. ServiceGraphBuilder (#984)

    keeferrourke authored and swankjesse committed May 16, 2019
    * WIP
    
    * WIP: start order correct
    
    infinite looping on the stop order when stopping enhancements
    
    * enhanced coordinated services working!
    
    * started porting over old tests to CoordinatedService2
    
    * check dependency map and small code cleanup
    
    * reduce test boilerplate and stub new tests
    
    * WIP: most tests passing
    
    TODO:
     - merge cycle checks
     - ensure enhanced services shutdown completely before the dependent
       services
    
    * WIP: most tests passing again
    
    TODO: Graph with only transitive enhancements is looping infinitely for
    some reason :(
    TODO: Failure to detect cycle when created by combo of enhancements and
    dependencies.
    
    * WIP: cycle detection broken when enhancement loop
    
    * all tests passing!!
    
    * cleaned up and documented classes
    
    * formatted code and made minor updates to documentation
    
    * finalized API and clarified docs
    
    * removed stray empty class
    
    * updated docs and cleaned up implementation a bit
    
    (pairing session with Jesse Wilson)
    
    * addressed comments from @swankjesse
    
    * changed SGBuilder.enhancementMap to mutableMap
    
    The key-value relationship in ServiceGraphBuilder.enhancementMap has been
    swapped.
    
    Consequences of this:
     + this would've meant that each enhancement (value) would have been
       wrapped in listOf to fit the call to CS2.addEnhancements()
     + to keep the API symmetric for addEnhancements and addDependencies,
       these functions have been changed to take vararg parameters
       - I think this is nicer, but maybe it's not :shrug:
    
    * prevented adding dependencies once graph is built
    
    Added checks to `addDependencies()` and `addEnhancements()` methods to
    ensure that neither the service nor the dependent services are running
    when modifying the dependency graph.
    
    Added a check to ensure that a CoordinatedService2 only wraps NEW
    services.
Commits on May 14, 2019
  1. Merge pull request #982 from square/jwilson.0514.moshi_kotlin

    swankjesse committed May 14, 2019
    Install the Kotlin JSON adapter by default
  2. Install the Kotlin JSON adapter by default

    swankjesse committed May 14, 2019
  3. Add clients for calling other members in an app's cluster (#973)

    alecholmes committed May 14, 2019
  4. Revert "Upgrade to the latest publish plugin" (#983)

    adrw authored and nbroyles committed May 14, 2019
    This reverts commit f0856c2.
  5. Added extension functions in misk-crypto and encrypting hibernate cac…

    yoavamit committed May 14, 2019
    …he (#981)
  6. Merge pull request #956 from square/jesse+jem/streaming-grpc

    swankjesse committed May 14, 2019
    Jesse+jem/streaming grpc
Commits on May 13, 2019
  1. Connect to Zookeeper using EnsembleProvider instead of connection str…

    nbroyles committed May 13, 2019
    …ing (#975)
Commits on May 10, 2019
  1. Merge pull request #980 from square/jwilson.0510.latest_publish_plugin

    swankjesse committed May 10, 2019
    Upgrade to the latest publish plugin
  2. Upgrade to the latest publish plugin

    swankjesse committed May 10, 2019
    Running into duplicate signature problems
    gradle/gradle#8213
  3. Merge pull request #979 from square/yivnitskiy/support-deaed

    yan committed May 10, 2019
    Support DAEAD encryption and use it by default.
  4. Address comments

    Yan Ivnitskiy
    Yan Ivnitskiy committed May 10, 2019
  5. Add new SecretColumn tests

    yan
    yan committed May 10, 2019
  6. Add new "indexable" attribute to SecretColumn which selects between A…

    yan
    yan committed May 10, 2019
    …EAD and DAEAD encryption
  7. Add new testing DAEAD key

    yan
    yan committed May 10, 2019
  8. Make sure to register DAEAD in misk-crypto

    yan
    yan committed May 10, 2019
Older
You can’t perform that action at this time.