OpenSearch/modules
Andrew Ross d467283475
Start MockLogAppender before adding to static context (#1587)
I observed a test failure with the message
'Attempted to append to non-started appender mock' from an assertion in
`OpenSearchTestCase::after`. I believe this indicates that a
MockLogAppender (which is named "mock") was added as an appender to the
static logging context and some other test in the same JVM happened to
cause a logging statement to hit that appender and cause an error, which
then caused an unrelated test to fail (because they share static state
with the logger). Almost all usages of MockLogAppender start it
immediately after creation. I found a few that did not and fixed those.
I also made a static helper in MockLogAppender to start it upon
creation.

Signed-off-by: Andrew Ross <andrross@amazon.com>
2021-11-19 13:37:46 -05:00
..
aggs-matrix-stats Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
analysis-common Upgrade to Lucene 8.10.1 (#1440) 2021-10-28 10:06:53 -05:00
geo [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
ingest-common Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
ingest-geoip Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
ingest-user-agent Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
lang-expression Upgrade to Lucene 8.10.1 (#1440) 2021-10-28 10:06:53 -05:00
lang-mustache Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
lang-painless Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
mapper-extras Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
opensearch-dashboards [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
parent-join Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
percolator Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
rank-eval Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
reindex Upgrade to Lucene 8.10.1 (#1440) 2021-10-28 10:06:53 -05:00
repository-url Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
systemd Run spotless and exclude checkstyle on modules module (#1442) 2021-10-27 13:24:43 -07:00
transport-netty4 Start MockLogAppender before adding to static context (#1587) 2021-11-19 13:37:46 -05:00
build.gradle [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00