Category: Uncategorized
-
Graceful shutdown of Kubernetes pod when using istio
Recently I worked on a project for which we noticed a lot of database connection errors when a new version of the pod was deployed on Kubernetes. At first we thought that the during the shutdown the application cleaned up the database connection pool too soon, but it appeared the application had database connection errors…
-
Combining fixed arguments with variable arguments in Mockito with Scala
When you use Mockito to mock an object and add behavior, you sometimes need to combine variable arguments with fixed arguments. When you do that in this way when(client.execute(“myId1”, any[String]) You get as error Invalid use of argument matchers with the explanation that you should use eq as a matcher for the fixed argument. However,…