Skip to content

Commit

Permalink
[NOID] Kernel debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
loveleif authored Oct 31, 2024
1 parent 7a5ec7e commit 8b0eb3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ subprojects {
'neo4jDockerImage': project.hasProperty("neo4jDockerEeOverride") ? project.getProperty("neo4jDockerEeOverride") : 'neo4j:5.26.0-enterprise-debian',
'neo4jCommunityDockerImage': project.hasProperty("neo4jDockerCeOverride") ? project.getProperty("neo4jDockerCeOverride") : 'neo4j:5.26.0-debian',
'coreDir': 'core',
'testDockerBundle': project.hasProperty("testDockerBundle") ? true : false
'testDockerBundle': project.hasProperty("testDockerBundle") ? true : false,
'org.neo4j.io.pagecache.tracing.cursor.DefaultPageCursorTracer.CHECK_REPORTED_COUNTERS': 'true' // Extra assertions in kernel

maxHeapSize = "5G"
forkEvery = 50
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/apoc/warmup/Warmup.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public Stream<WarmupResult> run(

List<PagedFile> pagedFiles = pageCache.listExistingMappings();

Map<String, PageResult> records = pagedFiles.parallelStream()
Map<String, PageResult> records = pagedFiles.stream()
.filter(pF -> {
String name = pF.path().toFile().getName();
if (isSchema(pF.path().toFile()) && !loadIndexes) return false;
Expand Down
4 changes: 4 additions & 0 deletions test-utils/src/main/java/apoc/util/TestContainerUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ private static Neo4jContainerExtension createNeo4jContainer(
.withNeo4jConfig("dbms.logs.http.enabled", "true")
.withNeo4jConfig("dbms.logs.debug.level", "DEBUG")
.withNeo4jConfig("dbms.routing.driver.logging.level", "DEBUG")
// Additional kernel assertions
.withNeo4jConfig(
"server.jvm.additional",
"-Dorg.neo4j.io.pagecache.tracing.cursor.DefaultPageCursorTracer.CHECK_REPORTED_COUNTERS=true")
.withFileSystemBind(logsDir.toString(), "/logs")
.withFileSystemBind(
canonicalPath, "/var/lib/neo4j/import") // map the "target/import" dir as the Neo4j's import dir
Expand Down

0 comments on commit 8b0eb3e

Please sign in to comment.