CCS Fail Test Mode (#125997)

* 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.
This commit is contained in:
John Dorlus 2022-02-24 13:10:55 -05:00 committed by GitHub
parent 4e238ecbe5
commit 68ab355dc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -252,6 +252,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
@ -274,7 +275,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 || ''}`;
@ -287,7 +288,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 {