Skip to content

Instantly share code, notes, and snippets.

package com.groww;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module;
import com.groww.db.model.Users;
import com.groww.resources.SyncerResource;
import com.groww.resources.auth.GrowwAuthenticator;
import com.groww.resources.auth.GrowwAuthorizer;
import io.dropwizard.Application;
import io.dropwizard.auth.AuthDynamicFeature;
package com.groww.resources.auth;
import com.groww.db.model.Users;
import io.dropwizard.auth.AuthenticationException;
import io.dropwizard.auth.Authenticator;
import io.dropwizard.auth.basic.BasicCredentials;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.mindrot.jbcrypt.BCrypt;
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compilePreprodDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecut
➜ example-servant-minimal git:(master) ✗ cat stack.yaml
resolver: lts-13.8
packages:
- '.'
➜ example-servant-minimal git:(master) ✗ cat reproduce.sh
echo 1 > test.json
for i in {1..100}
do
ab -T 'application/json' -H 'accept: application/json' -n 1000 -c 1 -p test.json http://127.0.0.1:3000/echo 2>&1 | grep "across"
@Allsimon
Allsimon / gist:7bd1ade9b5d18f7fdbf2bfbfa54a166b
Created April 9, 2019 10:17
Servant repro #1167 in Docker for Mac
➜ example-servant-minimal git:(master) ✗ cat stack.yaml
resolver: lts-13.8
packages:
- '.'
➜ example-servant-minimal git:(master) ✗ cat reproduce.sh
echo 1 > test.json
for i in {1..100}
do
ab -T 'application/json' -H 'accept: application/json' -n 1000 -c 1 -p test.json http://127.0.0.1:3000/echo 2>&1 | grep "across"
➜ example-servant-minimal git:(master) ✗ cat post.lua
wrk.method = "POST"
wrk.body = "1"
wrk.headers["Content-Type"] = "application/json"
➜ example-servant-minimal git:(master) ✗ cat reproduce.sh
for i in {1..100}
do
wrk -c 1 -d 5 -t 1 -s post.lua http://127.0.0.1:3000/echo | grep -i "requests"