Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Srepfler Srdan
@schrepfler
you suspect the broker jar ends up wrongly on the service classpath
Alan Klikić
@aklikic_twitter
It is working for me with 1.4.8 (sbt). Problem could be related to 1.5.x or maven specific. I suggest you try it with 1.4.8 (if possible)
Srepfler Srdan
@schrepfler
more likely maven specific, a problem with the lagom-maven-plugin maybe?
Alan Klikić
@aklikic_twitter
Sorry do not have experience with maven
Srepfler Srdan
@schrepfler
:ok_hand:
Srepfler Srdan
@schrepfler
has anyone been brave enough to run lagom on jdk11?
Samith
@samithbharadwaj_gitlab
Hey. Does anyone know how to repopulate the read side if it's accidentally lost? Let's say that the read side postgres database was accidentally deleted, how would I get my data back by playing out the events again?
Srepfler Srdan
@schrepfler
by restoring it from backup?
:)
Sorry, had to :D
Samith
@samithbharadwaj_gitlab
Haha. Why didn't I think of that ? :P
Srepfler Srdan
@schrepfler
It could be worse… it could be production db
(reference to Frankenstain Jr.)
Samith
@samithbharadwaj_gitlab
It’s pronounced ‘Fronkensteen' ;)
Srepfler Srdan
@schrepfler
:D
Suresh
@Sureshkatweet_twitter
Hello all good people @TimMoore I need to environment specific config files for my microservice.Is there any example or documentation in lagom to help me achieve this
Suresh
@Sureshkatweet_twitter
@TimMoore To get beteer idea of what i wish to achieve lagom/lagom#702
Ignasi Marimon-Clos
@ignasi35
:point_up: September 26, 2018 1:03 AM if you read-side tables were lost, just delete the offsets from the offset table and the readside processors will consume the eventStream again. Read side tables are just a different representation fo the journal. As long as you don’t loose the journal you are fine (you could even delete the snapshots, but I’m not saying that is a good idea).
Sergey Morgunov
@ihostage
:point_up: September 26, 2018 6:34 AM We use k8s ConfigMap for environment specific config. It’s very useful, IMHO.
Matias Partanen
@humpahh_twitter

@humpahh_twitter to configure the Akka HTTP backend inside Play (which is what is powering Lagom under the covers), you need to prefix Akka HTTP settings with play.server. See https://www.playframework.com/documentation/2.6.x/SettingsAkkaHttp . So, in your case, I think you should use: play.server.akka.http.server.parsing.max-chunk-size
@humpahh_twitter you should keep in mind that Lagom’s DevMode uses a custom HTTP server which may ignore the settings in play.server scope.

@ignasi35 Thanks. How/where should I configure the settings or override them somehow if I want them to be in effect in DevMode? Having those configs in play.server {} doesn't seem to do the trick now in DevMode, gives same exception from akka.http

Suresh
@Sureshkatweet_twitter
@ihostage thanks I really appreciate your help i will give it ka try
Romain Halter
@rhalter_gitlab
Hi, i have somes questions about deploying in production. I can't setup docker now. Can i deploy Lagom on classic way ? (without docker). Thanks
Suresh
@Sureshkatweet_twitter
@ihostage Hi Sergery How to inject or override the properties in the config file from configMap of k8s
Sergey Morgunov
@ihostage
@Sureshkatweet_twitter
  1. ConfigMap
    apiVersion: v1
    data:
    conf: |
     foo.bar = "value"
     play.http.secret.key = "play-http-secret-key-test"
    kind: ConfigMap
    metadata:
    name: service-config
  2. Add ConfigMap data to a Volume
    For example volume /opt/docker/conf/config/application.conf
  3. Add include to base configuration file
    include file("/opt/docker/conf/config/application.conf")
  4. Profit! :smile:
    PS: Of cource we have differente ConfigMap for every test (k8s namespace) and production environment.
Ignasi Marimon-Clos
@ignasi35
:point_up: September 26, 2018 11:20 AM @humpahh_twitter it is possible to tune the dev mode server using the prefix lagom.akka.dev-mode.config in the settings. Note that it is a prefix and it will only affect the server. So, if you tune play.server.akka.http.server.parsing.max-chunk-size I think you’d need to tune lagom.akka.dev-mode.config.akka.http.server.parsing.max-chunk-size with the same values.
Suresh
@Sureshkatweet_twitter
@Sureshkatweet_twitter
  1. ConfigMap
    apiVersion: v1
    data:
    conf: |
     foo.bar = "value"
     play.http.secret.key = "play-http-secret-key-test"
    kind: ConfigMap
    metadata:
    name: service-config
  2. Add ConfigMap data to a Volume
    For example volume /opt/docker/conf/config/application.conf
  3. Add include to base configuration file
    include file("/opt/docker/conf/config/application.conf")
  4. Profit! :smile:
    PS: Of cource we have differente ConfigMap for every test (k8s namespace) and production environment.Thanks for quick reply @ihostage
Sergey Morgunov
@ihostage
@Sureshkatweet_twitter :wink:
Elijah Rippeth
@erip
Anyone have a good way to debug "Empty test suite." in intellij? I'm using a withClient fixture and I seem to be miswiring something, but my tests are being ignored
Specifically, this started happening when I added a stubbed client. :-(
Ignasi Marimon-Clos
@ignasi35
@erip clean, force a recompilation, relaunch the test using right-click on the class name (not just anywhere)… YMMV
Elijah Rippeth
@erip
yeah, I've done that a few times. :-(
I wish there was a way to force a compiler error for missing lazy vals
Elijah Rippeth
@erip
Oh, that's obscure. Found the issue... scalatest/scalatest#991
Fabrice Sznajderman
@Fabszn
Hi All
I wondering something, when a service start, Is persistentEntity replay events for all entities ?
I am not sur about the behavior at start time
Matias Partanen
@humpahh_twitter
@ignasi35 For some reason it is still not overriding the default with lagom.akka.dev-mode.config.akka.http.server.parsing.max-chunk-size = "10m", it still gives the "limit of 1048576 bytes" error in Dev for some reason. https://pastebin.com/4vcb4JxU for what config I have in the impl for that service.
Alan Klikić
@aklikic_twitter
@Fabszn entity restore (replying of the events) is done when first command is send to it.
Fabrice Sznajderman
@Fabszn
Ok That was my feeling but I wanted to be sure.. Thanks
Oğuzhan Saltık
@OguzhanSaltik
Hi everyone,
We recently changed one of the microservice's topic producer's message and we got deserialization exception for newly added field on the message. Any ideas ?
samith
@samithbharadwaj_twitter
You've to do something called as schema evolution to handle changes to any DTO's that you'll have in the write side. https://www.lagomframework.com/documentation/1.4.x/scala/Serialization.html
Jason Pickens
@steinybot
Hmm there is a bit of an issue with PlayJsonSerializer. It uses the runtime class to find the formatter but in many cases this could be anything. For example: Caused by: java.lang.RuntimeException: Missing play-json serializer for [scala.collection.immutable.HashMap$HashTrieMap] when trying to return an immutable.Map. Any solutions without having to catch these one by one and register them (and pray the class is public)?
The good thing is that the test driver usually catches these (bad thing is we didn’t have a test for this case and so didn’t find it)
Srepfler Srdan
@schrepfler
guys, why would an -impl service module which is subscribe-only and only references lagom-javadsl-kafka-client_${scala.binary.version} still have lagom-kafka-broker_2.12-1.5.0-M3 in the libraries? I’m bundling it all following the latest k8s how-to, lagom 1.5.0-M3, and fabric8’s docker-maven-plugin
Srepfler Srdan
@schrepfler
I suspect lagom-javadsl-testkit but it’s in test scope and so are it’s dependencies
Jason Pickens
@steinybot
@schrepfler have you tried using https://github.com/jrudolph/sbt-dependency-graph ?
Per Wiklander
@PerWiklander
I’m writing a service spec where I need to first call one service to create a parent entity and then use the returned ID of that entity when creating a child entity through a different service. The problem is eventual consistency. Should I wait for the parent entity to be available or how do people handle this scenario?
Srepfler Srdan
@schrepfler
Compiling with maven
Tim Moore
@TimMoore
@schrepfler try using mvn dependency:tree to see how the dependency is getting included
Jason Pickens
@steinybot
@PerWiklander how about specifying the ID of the parent in the request rather than waiting for the response? if you need the consistency then your parent has to be the aggregate root