sijie commented on a change in pull request #781: Issue 780: change
BK_statsProviderClass in to NullStatsProvider in Docker file
URL: https://github.com/apache/bookkeeper/pull/781#discussion_r153593969
##########
File path: docker/scripts/entrypoint.sh
##########
@@ -37,10 +37,13 @@ export
BK_journalDirectory=${BK_journalDirectory:-${BK_DATA_DIR}/journal}
export BK_ledgerDirectories=${BK_ledgerDirectories:-${BK_DATA_DIR}/ledgers}
export BK_indexDirectories=${BK_indexDirectories:-${BK_DATA_DIR}/index}
+export BK_statsProviderClass=org.apache.bookkeeper.stats.NullStatsProvider
Review comment:
@ivankelly I think you misunderstood what the change is doing.
I believe that the change is here the correct behavior. If I understand
correctly, in 4.5.1, none of the stats providers are packaged into the release
binary and docker image. setting this to `NullStatsProvider` is to avoid people
overriding this to other stats providers, and cause `ClassNotFoundException`
exception.
@eolivelli changed that in the makefile only #746 , which only applies to
dockers run by the Makefile. but that change doesn't prevent the error when
people use the docker image in other environment, e.g. gke. I think the change
here is overriding this stats provider and avoid user trying to customize other
stats providers.
I also think this change is only need in 4.5, but it isn't needed in 4.6 and
onwards. because 4.6 switch to bookkeeper-dist for release package and docker
image, it will package the stats providers in the package.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services