Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MachineLearningTests.testNoAttributes_givenSameAndMlEnabled fails due to trying to directly set node.attr.ml.enabled #30804

Closed
colings86 opened this issue May 23, 2018 · 3 comments
Assignees
Labels
:ml Machine learning >test-failure Triaged test failures from CI

Comments

@colings86
Copy link
Contributor

Example failure: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.3+intake/100/console

Reproduce command:

./gradlew :x-pack:plugin:ml:test -Dtests.seed=1FF9AADB15A8BF2A -Dtests.class=org.elasticsearch.xpack.ml.MachineLearningTests -Dtests.method="testNoAttributes_givenSameAndMlEnabled" -Dtests.security.manager=true -Dtests.locale=hu-HU -Dtests.timezone=Etc/GMT-0

It looks like this is as a result of the changes made in 30b004f. @droberts195 is working on a fix for this.

Failure stack trace:

09:10:34 ERROR   0.04s J2 | MachineLearningTests.testNoAttributes_givenSameAndMlEnabled <<< FAILURES!
09:10:34    > Throwable #1: java.lang.IllegalArgumentException: Directly setting [node.attr.ml.enabled] is not permitted - it is reserved for machine learning. If your intention was to customize machine learning, set the [xpack.ml.enabled] setting instead.
09:10:34    > 	at __randomizedtesting.SeedInfo.seed([1FF9AADB15A8BF2A:43DD702474BC0633]:0)
09:10:34   2> NOTE: leaving temporary files on disk at: /var/lib/jenkins/workspace/elastic+elasticsearch+6.3+intake/x-pack/plugin/ml/build/testrun/test/J2/temp/org.elasticsearch.xpack.ml.MachineLearningTests_1FF9AADB15A8BF2A-001
09:10:34   2> NOTE: test params are: codec=Asserting(Lucene70): {}, docValues:{}, maxPointsInLeafNode=1487, maxMBSortInHeap=7.5181168679555945, sim=RandomSimilarity(queryNorm=false): {}, locale=hu-HU, timezone=Etc/GMT-0
09:10:34    > 	at org.elasticsearch.xpack.ml.MachineLearning.reportClashingNodeAttribute(MachineLearning.java:342)
09:10:34   2> NOTE: Linux 4.4.0-1055-aws amd64/Oracle Corporation 1.8.0_162 (64-bit)/cpus=4,threads=1,free=421484672,total=514850816
09:10:34    > 	at org.elasticsearch.xpack.ml.MachineLearning.addMlNodeAttribute(MachineLearning.java:327)
09:10:34   2> NOTE: All tests run in this JVM: [CppLogMessageHandlerTests, NormalizerTests, NameResolverTests, DataLoadParamsTests, CsvParserTests, AuditorTests, JsonDataToProcessWriterTests, CategoryDefinitionTests, ModelPlotConfigWriterTests, TimeRangeTests, CountingInputStreamTests, TransportGetJobsStatsActionTests, FlushAcknowledgementTests, InfluenceTests, DatafeedNodeSelectorTests, NormalizerResultHandlerTests, ConnectiveTests, AutodetectCommunicatorTests, RuleConditionTypeTests, InfluencersQueryBuilderTests, MlDailyManagementServiceTests, TransportStartDatafeedActionTests, ChainTaskExecutorTests, ExpiredResultsRemoverTests, AggregationToJsonProcessorTests, NativeAutodetectProcessTests, DataExtractorFactoryTests, DateFormatDateTransformerTests, DetectorFunctionTests, SearchHitToJsonProcessorTests, BucketNormalizableTests, PartitionScoreTests, NativeControllerTests, MachineLearningFeatureSetTests, MachineLearningTests]
09:10:34    > 	at org.elasticsearch.xpack.ml.MachineLearning.additionalSettings(MachineLearning.java:311)
09:10:34    > 	at org.elasticsearch.xpack.ml.MachineLearningTests.testNoAttributes_givenSameAndMlEnabled(MachineLearningTests.java:49)
09:10:34    > 	at java.lang.Thread.run(Thread.java:748)
@colings86 colings86 added >test-failure Triaged test failures from CI v7.0.0 v6.3.0 :ml Machine learning v6.4.0 labels May 23, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

colings86 added a commit that referenced this issue May 23, 2018
colings86 added a commit that referenced this issue May 23, 2018
colings86 added a commit that referenced this issue May 23, 2018
@colings86
Copy link
Contributor Author

Muted test on master, 6.x, and 6.3

@ywelsch ywelsch self-assigned this May 23, 2018
@ywelsch
Copy link
Contributor

ywelsch commented May 23, 2018

This was caused by #30780, which luckily passed CI due to randomization.
I've pushed a fix and reenabled the tests on all branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

5 participants