Skip to content

Commit

Permalink
fix: resetting after debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Nov 22, 2024
1 parent b527915 commit 03c276f
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 32 deletions.
1 change: 1 addition & 0 deletions server/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
- "8080:8080"
- "5005:5005"
- "9999:9999"
- "8849:8849"

cadvisor:
image: "gcr.io/cadvisor/cadvisor:v0.47.0"
Expand Down
5 changes: 3 additions & 2 deletions server/docker/logging.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ io.helidon.common.level=INFO
#com.hedera.block.level=FINE
#com.hedera.block.server.level=FINE

# Configure specific loggers
# Configure specific Block Node loggers
#com.hedera.block.server.producer.ProducerBlockItemObserver.level=FINE
#com.hedera.block.server.mediator.LiveStreamMediatorImpl.level=FINE
#com.hedera.block.server.persistence.storage.write.BlockAsDirWriter.level=FINE
#com.hedera.block.server.consumer.ConsumerStreamResponseObserver.level=FINE
#com.hedera.block.server.pbj.PbjBlockStreamServiceProxy.level=FINE

# Helidon PBJ Plugin loggers
#com.hedera.pbj.grpc.helidon.PbjProtocolHandler.level=FINE
com.hedera.pbj.grpc.helidon.level=FINE

# Console handler configuration
handlers = java.util.logging.ConsoleHandler
Expand Down
5 changes: 3 additions & 2 deletions server/docker/update-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ echo "REGISTRY_PREFIX=" >> .env
echo "BLOCKNODE_STORAGE_ROOT_PATH=/app/storage" >> .env

if [ true = "$is_debug" ]; then
# wait for debugger to attach
echo "SERVER_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'" >> .env
# The server will wait for the debugger to attach on port 5005
# JProfiler can attach on port 8849
echo "SERVER_OPTS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005' -agentpath:/path/to/libjprofilerti.so=port=8849 " >> .env
fi

if [ true = "$is_smoke_test" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,4 @@ public void unsubscribeAllExpired() {}
*/
@Override
public void notifyUnrecoverableError() {}

@Override
public int subscriberCount() {
return 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,4 @@ public interface SubscriptionHandler<V> {

/** Unsubscribes all the expired handlers from the stream of events. */
void unsubscribeAllExpired();

int subscriberCount();
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,4 @@ public void unsubscribeAllExpired() {
.filter(BlockNodeEventHandler::isTimeoutExpired)
.forEach(this::unsubscribe);
}

@Override
public int subscriberCount() {
return subscribers.size();
}
}
1 change: 0 additions & 1 deletion server/src/main/resources/app.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ prometheus.endpointPortNumber=9999
# Timeout for consumers to wait for block item before timing out.
# Default is 1500 milliseconds.
#consumer.timeoutThresholdMillis=1500
consumer.timeoutThresholdMillis=100000

#producer.type=NOOP
#mediator.type=NOOP
Expand Down
16 changes: 7 additions & 9 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ plugins {
id("com.gradle.enterprise").version("3.15.1")
}

includeBuild("/Users/mattpeterson/repos/pbj/pbj-core")

// Include the subprojects
include(":common")
include(":suites")
Expand Down Expand Up @@ -49,8 +47,9 @@ dependencyResolutionManagement {

// Define a constant for protobuf version.
val protobufVersion = "4.28.2"

val helidonVersion = "4.1.1"
val grpcIoVersion = "1.65.1"
var pbjVersion = "0.9.10"

// Compile time dependencies
version("io.helidon.webserver.http2", helidonVersion)
Expand All @@ -71,22 +70,21 @@ dependencyResolutionManagement {
version("info.picocli", "4.7.6")

// gRPC dependencies for the stream subproject
version("io.grpc", "1.65.1")
version("io.grpc.protobuf", "1.65.1")
version("io.grpc.stub", "1.65.1")
version("io.grpc", grpcIoVersion)
version("io.grpc.protobuf", grpcIoVersion)
version("io.grpc.stub", grpcIoVersion)

// netty dependency for the simulator subproject
version("io.grpc.netty.shaded", "1.65.1")
version("io.grpc.netty.shaded", grpcIoVersion)

// Reference from the protobuf plugin
version("google.proto", protobufVersion)
version("grpc.protobuf.grpc", "1.65.1")
version("grpc.protobuf.grpc", grpcIoVersion)

// Google protobuf dependencies
version("com.google.protobuf", protobufVersion)
version("com.google.protobuf.util", protobufVersion)

var pbjVersion = "0.9.10-SNAPSHOT"

// PBJ dependencies
plugin("pbj", "com.hedera.pbj.pbj-compiler").version(pbjVersion)
Expand Down
11 changes: 5 additions & 6 deletions simulator/src/main/resources/app.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ prometheus.endpointEnabled=false
# BlockAsFileLargeDataSets config
# ----------------------------------------------
#generator.folderRootPath=/Users/user/Downloads/block-0.0.3-perf
generator.folderRootPath=/Users/mattpeterson/Downloads/BN_Test_Data/block-0.0.3
generator.managerImplementation=BlockAsFileLargeDataSets
#generator.managerImplementation=BlockAsFileLargeDataSets

# Optional range configuration
generator.startBlockNumber=200
generator.endBlockNumber=3000
#generator.startBlockNumber=1
#generator.endBlockNumber=2000

#blockStream.maxBlockItemsToStream=100_000_000
blockStream.streamingMode=MILLIS_PER_BLOCK
blockStream.millisecondsPerBlock=200
#blockStream.streamingMode=MILLIS_PER_BLOCK
#blockStream.millisecondsPerBlock=500
#blockStream.blockItemsBatchSize=1_000
#blockStream.delayBetweenBlockItems=3_000_000

Expand Down

0 comments on commit 03c276f

Please sign in to comment.