Skip to content

Commit fb8d656

Browse files
committed
More minor changes to address build failres for spark. Still cannot replicate in local
1 parent 3cd6184 commit fb8d656

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

aws-serverless-java-container-spark/src/main/java/com/amazonaws/serverless/proxy/spark/embeddedserver/LambdaEmbeddedServer.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ public int ignite(String s, int i, SslStores sslStores, int i1, int i2, int i3)
4949
throws Exception {
5050
log.info("Starting Spark server, ignoring port and host");
5151
sparkFilter = new MatcherFilter(applicationRoutes, staticFilesConfiguration, false, hasMultipleHandler);
52-
//sparkFilter.init(null);
53-
54-
//countDownLatch.countDown();
5552

5653
return i;
5754
}

aws-serverless-java-container-spark/src/test/java/com/amazonaws/serverless/proxy/spark/SparkLambdaContainerHandlerTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.amazonaws.serverless.proxy.spark.filter.CustomHeaderFilter;
1010

1111
import org.junit.AfterClass;
12+
import org.junit.BeforeClass;
1213
import org.junit.Test;
1314
import spark.Spark;
1415

@@ -34,7 +35,7 @@ public void filters_onStartupMethod_executeFilters() {
3435
e.printStackTrace();
3536
fail();
3637
}
37-
38+
3839
handler.onStartup(c -> {
3940
if (c == null) {
4041
System.out.println("Null servlet context");
@@ -64,7 +65,7 @@ public static void stopSpark() {
6465
Spark.stop();
6566
}
6667

67-
private void configureRoutes() {
68+
private static void configureRoutes() {
6869
get("/header-filter", (req, res) -> {
6970
res.status(200);
7071
return RESPONSE_BODY_TEXT;

0 commit comments

Comments
 (0)