forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix minor watcher bug, unmute test, add additional debug logging
This commit unmutes the org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT test suite, fixes a bug [1] that was introduced while the test was muted, and adds some additional debug logging, and enables debug for the ES instance used in this Watcher test. The bug fixed here is minor and unlikely to happen. It requires ES to be started with ILM disabled, Watcher enabled, and Watcher explicitly stopped and restarted. Due to validation Watcher does not fully start and can result in a partially started state. This is an unlikely scenerio outside of the testing framework. Optimistically closing the following Fixes elastic#35361 Fixes elastic#30777 Fixes elastic#35361 Fixes elastic#33291 Fixes elastic#29893 If this does not fully fix the issue, there will now be better debug logging.
- Loading branch information
1 parent
46d25e6
commit 11521bc
Showing
6 changed files
with
191 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
183 changes: 183 additions & 0 deletions
183
x-pack/qa/smoke-test-watcher-with-security/custom-log4j2.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
|
||
status = error | ||
|
||
# log action execution errors for easier debugging | ||
logger.action.name = org.elasticsearch.action | ||
logger.action.level = debug | ||
|
||
|
||
# bump up watcher logging | ||
logger.watcher.name = org.elasticsearch.xpack.watcher | ||
logger.watcher.level = debug | ||
|
||
logger.core-watcher.name = org.elasticsearch.xpack.core.watcher | ||
logger.core-watcher.level = debug | ||
|
||
appender.console.type = Console | ||
appender.console.name = console | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n | ||
|
||
######## Server JSON ############################ | ||
appender.rolling.type = RollingFile | ||
appender.rolling.name = rolling | ||
appender.rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_server.json | ||
appender.rolling.layout.type = ESJsonLayout | ||
appender.rolling.layout.type_name = server | ||
|
||
appender.rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}-%i.json.gz | ||
appender.rolling.policies.type = Policies | ||
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy | ||
appender.rolling.policies.time.interval = 1 | ||
appender.rolling.policies.time.modulate = true | ||
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.rolling.policies.size.size = 128MB | ||
appender.rolling.strategy.type = DefaultRolloverStrategy | ||
appender.rolling.strategy.fileIndex = nomax | ||
appender.rolling.strategy.action.type = Delete | ||
appender.rolling.strategy.action.basepath = ${sys:es.logs.base_path} | ||
appender.rolling.strategy.action.condition.type = IfFileName | ||
appender.rolling.strategy.action.condition.glob = ${sys:es.logs.cluster_name}-* | ||
appender.rolling.strategy.action.condition.nested_condition.type = IfAccumulatedFileSize | ||
appender.rolling.strategy.action.condition.nested_condition.exceeds = 2GB | ||
################################################ | ||
######## Server - old style pattern ########### | ||
appender.rolling_old.type = RollingFile | ||
appender.rolling_old.name = rolling_old | ||
appender.rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}.log | ||
appender.rolling_old.layout.type = PatternLayout | ||
appender.rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n | ||
|
||
appender.rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}-%d{yyyy-MM-dd}-%i.log.gz | ||
appender.rolling_old.policies.type = Policies | ||
appender.rolling_old.policies.time.type = TimeBasedTriggeringPolicy | ||
appender.rolling_old.policies.time.interval = 1 | ||
appender.rolling_old.policies.time.modulate = true | ||
appender.rolling_old.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.rolling_old.policies.size.size = 128MB | ||
appender.rolling_old.strategy.type = DefaultRolloverStrategy | ||
appender.rolling_old.strategy.fileIndex = nomax | ||
appender.rolling_old.strategy.action.type = Delete | ||
appender.rolling_old.strategy.action.basepath = ${sys:es.logs.base_path} | ||
appender.rolling_old.strategy.action.condition.type = IfFileName | ||
appender.rolling_old.strategy.action.condition.glob = ${sys:es.logs.cluster_name}-* | ||
appender.rolling_old.strategy.action.condition.nested_condition.type = IfAccumulatedFileSize | ||
appender.rolling_old.strategy.action.condition.nested_condition.exceeds = 2GB | ||
################################################ | ||
|
||
rootLogger.level = info | ||
rootLogger.appenderRef.console.ref = console | ||
rootLogger.appenderRef.rolling.ref = rolling | ||
rootLogger.appenderRef.rolling_old.ref = rolling_old | ||
|
||
######## Deprecation JSON ####################### | ||
appender.deprecation_rolling.type = RollingFile | ||
appender.deprecation_rolling.name = deprecation_rolling | ||
appender.deprecation_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.json | ||
appender.deprecation_rolling.layout.type = ESJsonLayout | ||
appender.deprecation_rolling.layout.type_name = deprecation | ||
|
||
appender.deprecation_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation-%i.json.gz | ||
appender.deprecation_rolling.policies.type = Policies | ||
appender.deprecation_rolling.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.deprecation_rolling.policies.size.size = 1GB | ||
appender.deprecation_rolling.strategy.type = DefaultRolloverStrategy | ||
appender.deprecation_rolling.strategy.max = 4 | ||
################################################# | ||
######## Deprecation - old style pattern ####### | ||
appender.deprecation_rolling_old.type = RollingFile | ||
appender.deprecation_rolling_old.name = deprecation_rolling_old | ||
appender.deprecation_rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.log | ||
appender.deprecation_rolling_old.layout.type = PatternLayout | ||
appender.deprecation_rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n | ||
|
||
appender.deprecation_rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\ | ||
_deprecation-%i.log.gz | ||
appender.deprecation_rolling_old.policies.type = Policies | ||
appender.deprecation_rolling_old.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.deprecation_rolling_old.policies.size.size = 1GB | ||
appender.deprecation_rolling_old.strategy.type = DefaultRolloverStrategy | ||
appender.deprecation_rolling_old.strategy.max = 4 | ||
################################################# | ||
logger.deprecation.name = org.elasticsearch.deprecation | ||
logger.deprecation.level = warn | ||
logger.deprecation.appenderRef.deprecation_rolling.ref = deprecation_rolling | ||
logger.deprecation.appenderRef.deprecation_rolling_old.ref = deprecation_rolling_old | ||
logger.deprecation.additivity = false | ||
|
||
######## Search slowlog JSON #################### | ||
appender.index_search_slowlog_rolling.type = RollingFile | ||
appender.index_search_slowlog_rolling.name = index_search_slowlog_rolling | ||
appender.index_search_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs\ | ||
.cluster_name}_index_search_slowlog.json | ||
appender.index_search_slowlog_rolling.layout.type = ESJsonLayout | ||
appender.index_search_slowlog_rolling.layout.type_name = index_search_slowlog | ||
|
||
appender.index_search_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs\ | ||
.cluster_name}_index_search_slowlog-%i.json.gz | ||
appender.index_search_slowlog_rolling.policies.type = Policies | ||
appender.index_search_slowlog_rolling.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.index_search_slowlog_rolling.policies.size.size = 1GB | ||
appender.index_search_slowlog_rolling.strategy.type = DefaultRolloverStrategy | ||
appender.index_search_slowlog_rolling.strategy.max = 4 | ||
################################################# | ||
######## Search slowlog - old style pattern #### | ||
appender.index_search_slowlog_rolling_old.type = RollingFile | ||
appender.index_search_slowlog_rolling_old.name = index_search_slowlog_rolling_old | ||
appender.index_search_slowlog_rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\ | ||
_index_search_slowlog.log | ||
appender.index_search_slowlog_rolling_old.layout.type = PatternLayout | ||
appender.index_search_slowlog_rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n | ||
|
||
appender.index_search_slowlog_rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\ | ||
_index_search_slowlog-%i.log.gz | ||
appender.index_search_slowlog_rolling_old.policies.type = Policies | ||
appender.index_search_slowlog_rolling_old.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.index_search_slowlog_rolling_old.policies.size.size = 1GB | ||
appender.index_search_slowlog_rolling_old.strategy.type = DefaultRolloverStrategy | ||
appender.index_search_slowlog_rolling_old.strategy.max = 4 | ||
################################################# | ||
logger.index_search_slowlog_rolling.name = index.search.slowlog | ||
logger.index_search_slowlog_rolling.level = trace | ||
logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling.ref = index_search_slowlog_rolling | ||
logger.index_search_slowlog_rolling.appenderRef.index_search_slowlog_rolling_old.ref = index_search_slowlog_rolling_old | ||
logger.index_search_slowlog_rolling.additivity = false | ||
|
||
######## Indexing slowlog JSON ################## | ||
appender.index_indexing_slowlog_rolling.type = RollingFile | ||
appender.index_indexing_slowlog_rolling.name = index_indexing_slowlog_rolling | ||
appender.index_indexing_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\ | ||
_index_indexing_slowlog.json | ||
appender.index_indexing_slowlog_rolling.layout.type = ESJsonLayout | ||
appender.index_indexing_slowlog_rolling.layout.type_name = index_indexing_slowlog | ||
|
||
appender.index_indexing_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\ | ||
_index_indexing_slowlog-%i.json.gz | ||
appender.index_indexing_slowlog_rolling.policies.type = Policies | ||
appender.index_indexing_slowlog_rolling.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.index_indexing_slowlog_rolling.policies.size.size = 1GB | ||
appender.index_indexing_slowlog_rolling.strategy.type = DefaultRolloverStrategy | ||
appender.index_indexing_slowlog_rolling.strategy.max = 4 | ||
################################################# | ||
######## Indexing slowlog - old style pattern ## | ||
appender.index_indexing_slowlog_rolling_old.type = RollingFile | ||
appender.index_indexing_slowlog_rolling_old.name = index_indexing_slowlog_rolling_old | ||
appender.index_indexing_slowlog_rolling_old.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\ | ||
_index_indexing_slowlog.log | ||
appender.index_indexing_slowlog_rolling_old.layout.type = PatternLayout | ||
appender.index_indexing_slowlog_rolling_old.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] [%node_name]%marker %m%n | ||
|
||
appender.index_indexing_slowlog_rolling_old.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\ | ||
_index_indexing_slowlog-%i.log.gz | ||
appender.index_indexing_slowlog_rolling_old.policies.type = Policies | ||
appender.index_indexing_slowlog_rolling_old.policies.size.type = SizeBasedTriggeringPolicy | ||
appender.index_indexing_slowlog_rolling_old.policies.size.size = 1GB | ||
appender.index_indexing_slowlog_rolling_old.strategy.type = DefaultRolloverStrategy | ||
appender.index_indexing_slowlog_rolling_old.strategy.max = 4 | ||
################################################# | ||
|
||
logger.index_indexing_slowlog.name = index.indexing.slowlog.index | ||
logger.index_indexing_slowlog.level = trace | ||
logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling.ref = index_indexing_slowlog_rolling | ||
logger.index_indexing_slowlog.appenderRef.index_indexing_slowlog_rolling_old.ref = index_indexing_slowlog_rolling_old | ||
logger.index_indexing_slowlog.additivity = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters