[ https://issues.apache.org/jira/browse/BOOKKEEPER-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15978180#comment-15978180 ]
ASF GitHub Bot commented on BOOKKEEPER-816: ------------------------------------------- Github user eolivelli commented on the issue: https://github.com/apache/bookkeeper/pull/80 @sijie in order to load the native library during JUnit tests I have added these lines to bookkeeper-server/pom.xml ``` <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xmx2G -Djava.net.preferIPv4Stack=true -Djava.library.path=${project.build.directory}/native/target/usr/local/lib</argLine> </configuration> </plugin> ``` Now: - no error in logs - tests run like in "production mode" new logs: > 2017-04-21 08:53:51,595 - INFO - [BookieJournal-15001:NativeIO@41] - Loading bookkeeper native library. > 2017-04-21 08:53:51,596 - INFO - [BookieJournal-15001:NativeIO@44] - Loaded bookkeeper native library. Enabled Native IO. Do you think we can add that configuration to the pom.xml ? > use native fallocate & sync_file_range to improve journal allocation > -------------------------------------------------------------------- > > Key: BOOKKEEPER-816 > URL: https://issues.apache.org/jira/browse/BOOKKEEPER-816 > Project: Bookkeeper > Issue Type: Improvement > Components: bookkeeper-server > Reporter: Sijie Guo > Assignee: Sijie Guo > Fix For: 4.5.0 > > > it'd better to leverage filesystem fallocate & sync_file_range for journal > performance. -- This message was sent by Atlassian JIRA (v6.3.15#6346)