File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
main/java/com/solacecoe/connectors/spark/streaming/partitions
test/java/com/solacecoe/connectors/spark/oauth Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,6 @@ private void registerTaskListener() {
339339 logShutdownMessage (context );
340340 } else if (context .isCompleted ()) {
341341 String processedMessageIDs = SolaceMessageTracker .getProcessedMessagesIDs (this .solaceInputPartition .getId ());
342- System .out .println (this .solaceInputPartition .getId () + " - " + processedMessageIDs );
343342 if (processedMessageIDs != null && !processedMessageIDs .isEmpty ()) {
344343 try {
345344 Path path = Paths .get (this .checkpointLocation + "/" + this .solaceInputPartition .getId () + ".txt" );
Original file line number Diff line number Diff line change 11package com .solacecoe .connectors .spark .oauth ;
22
33import com .github .dockerjava .api .command .InspectContainerResponse ;
4+ import com .github .dockerjava .api .model .Ulimit ;
45import org .testcontainers .containers .GenericContainer ;
56import org .testcontainers .containers .wait .strategy .Wait ;
67import org .testcontainers .images .builder .Transferable ;
@@ -59,12 +60,15 @@ public SolaceOAuthContainer(String dockerImageName) {
5960 public SolaceOAuthContainer (DockerImageName dockerImageName ) {
6061 super (dockerImageName );
6162 dockerImageName .assertCompatibleWith (DEFAULT_IMAGE_NAME );
63+ Ulimit ulimit = new Ulimit ("nofile" , 2448 , 1048576 );
64+ List <Ulimit > ulimitList = new ArrayList <>();
65+ ulimitList .add (ulimit );
6266 withCreateContainerCmdModifier (cmd -> {
6367 cmd .withUser ("1000" );
6468 cmd .getHostConfig ()
6569 .withShmSize (SHM_SIZE )
66- .withMemorySwap (- 1L )
67- .withMemoryReservation ( 0L );
70+ .withUlimits ( ulimitList )
71+ .withCpuCount ( 1l );
6872 });
6973 this .waitStrategy = Wait .forLogMessage (SOLACE_READY_MESSAGE , 1 ).withStartupTimeout (Duration .ofSeconds (60 ));
7074 withExposedPorts (8080 );
You can’t perform that action at this time.
0 commit comments