CCS Fail Test Mode (#125997) (#126525)

* Added the search.check_ccs_compatibility flag

* Moved up the level on the logging statements for ES Args so we can debug locally.

* Updated snapshots to reflect new flag that was added.

(cherry picked from commit 68ab355dc3)
This commit is contained in:
John Dorlus 2022-02-28 17:28:16 -05:00 committed by GitHub
parent 74441bb591
commit 4194b8f2e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -260,6 +260,7 @@ exports.Cluster = class Cluster {
const esArgs = [
'action.destructive_requires_name=true',
'ingest.geoip.downloader.enabled=false',
'search.check_ccs_compatibility=true',
].concat(options.esArgs || []);
// Add to esArgs if ssl is enabled
@ -282,7 +283,7 @@ exports.Cluster = class Cluster {
[]
);
this._log.debug('%s %s', ES_BIN, args.join(' '));
this._log.info('%s %s', ES_BIN, args.join(' '));
let esJavaOpts = `${options.esJavaOpts || ''} ${process.env.ES_JAVA_OPTS || ''}`;
@ -295,7 +296,7 @@ exports.Cluster = class Cluster {
esJavaOpts += ' -Xms1536m -Xmx1536m';
}
this._log.debug('ES_JAVA_OPTS: %s', esJavaOpts.trim());
this._log.info('ES_JAVA_OPTS: %s', esJavaOpts.trim());
this._process = execa(ES_BIN, args, {
cwd: installPath,

View file

@ -309,6 +309,7 @@ describe('#start(installPath)', () => {
Array [
"action.destructive_requires_name=true",
"ingest.geoip.downloader.enabled=false",
"search.check_ccs_compatibility=true",
],
undefined,
Object {
@ -387,6 +388,7 @@ describe('#run()', () => {
Array [
"action.destructive_requires_name=true",
"ingest.geoip.downloader.enabled=false",
"search.check_ccs_compatibility=true",
],
undefined,
Object {