@@ -32,8 +32,6 @@ testDefaultVariables() {
32
32
assertEquals " BK_HOME is not set correctly" " ${BK_HOMEDIR} " " ${BK_HOME} "
33
33
assertEquals " DEFAULT_LOG_CONF is not set correctly" " ${BK_CONFDIR} /log4j2.xml" " ${DEFAULT_LOG_CONF} "
34
34
assertEquals " NETTY_LEAK_DETECTION_LEVEL is not set correctly" " disabled" " ${NETTY_LEAK_DETECTION_LEVEL} "
35
- assertEquals " NETTY_RECYCLER_MAXCAPACITY is not set correctly" " 1000" " ${NETTY_RECYCLER_MAXCAPACITY} "
36
- assertEquals " NETTY_RECYCLER_LINKCAPACITY is not set correctly" " 1024" " ${NETTY_RECYCLER_LINKCAPACITY} "
37
35
assertEquals " BOOKIE_MAX_HEAP_MEMORY is not set correctly" " 1g" " ${BOOKIE_MAX_HEAP_MEMORY} "
38
36
assertEquals " BOOKIE_MIN_HEAP_MEMORY is not set correctly" " 1g" " ${BOOKIE_MIN_HEAP_MEMORY} "
39
37
assertEquals " BOOKIE_MAX_DIRECT_MEMORY is not set correctly" " 2g" " ${BOOKIE_MAX_DIRECT_MEMORY} "
@@ -223,11 +221,12 @@ testBuildLoggingOpts() {
223
221
TEST_CONF_FILE=" test.conf"
224
222
TEST_LOG_DIR=" test_log_dir"
225
223
TEST_LOG_FILE=" test_log_file"
226
- TEST_LOGGER=" INFO,TEST"
224
+ TEST_LOG_LEVEL=" INFO"
225
+ TEST_LOG_APPENDER=" TEST"
227
226
228
227
EXPECTED_OPTS=" -Dlog4j.configurationFile=${TEST_CONF_FILE} \
229
- -Dbookkeeper.log.root.level=${TEST_LOGGER } \
230
- -Dbookkeeper.log.root.appender=${TEST_LOG_DIR } \
228
+ -Dbookkeeper.log.root.level=${TEST_LOG_LEVEL } \
229
+ -Dbookkeeper.log.root.appender=${TEST_LOG_APPENDER } \
231
230
-Dbookkeeper.log.dir=${TEST_LOG_DIR} \
232
231
-Dbookkeeper.log.file=${TEST_LOG_FILE} "
233
232
ACTUAL_OPTS=$( build_logging_opts ${TEST_CONF_FILE} ${TEST_LOG_LEVEL} ${TEST_LOG_APPENDER} ${TEST_LOG_DIR} ${TEST_LOG_FILE} )
@@ -237,15 +236,17 @@ testBuildLoggingOpts() {
237
236
238
237
testBuildCLILoggingOpts () {
239
238
TEST_CONF_FILE=" test.conf"
239
+ TEST_LOG_LEVEL=" INFO"
240
+ TEST_LOG_APPENDER=" TEST"
240
241
TEST_LOG_DIR=" test_log_dir"
241
242
TEST_LOG_FILE=" test_log_file"
242
- TEST_LOGGER=" INFO,TEST"
243
243
244
244
EXPECTED_OPTS=" -Dlog4j.configurationFile=${TEST_CONF_FILE} \
245
- -Dbookkeeper.cli.root.logger=${TEST_LOGGER} \
245
+ -Dbookkeeper.cli.log.root.level=${TEST_LOG_LEVEL} \
246
+ -Dbookkeeper.cli.log.root.appender=${TEST_LOG_APPENDER} \
246
247
-Dbookkeeper.cli.log.dir=${TEST_LOG_DIR} \
247
248
-Dbookkeeper.cli.log.file=${TEST_LOG_FILE} "
248
- ACTUAL_OPTS=$( build_cli_logging_opts ${TEST_CONF_FILE} ${TEST_LOG_DIR } ${TEST_LOG_FILE } ${TEST_LOGGER } )
249
+ ACTUAL_OPTS=$( build_cli_logging_opts ${TEST_CONF_FILE} ${TEST_LOG_LEVEL } ${TEST_LOG_APPENDER } ${TEST_LOG_DIR} ${TEST_LOG_FILE })
249
250
250
251
assertEquals " Logging OPTS is not set correctly" " ${EXPECTED_OPTS} " " ${ACTUAL_OPTS} "
251
252
}
0 commit comments