Ilya Suntsov created IGNITE-3106: ------------------------------------ Summary: Yardstick can't parse /config/queries.txt with license header Key: IGNITE-3106 URL: https://issues.apache.org/jira/browse/IGNITE-3106 Project: Ignite Issue Type: Task Components: general Affects Versions: 1.6 Reporter: Ilya Suntsov Priority: Blocker Fix For: 1.6
File yardstick/config/queries.txt contains queries that used for load tests. Yardstick can't parse this file with this license header: {noformat} # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. {noformat} Yardstick reads line in upper case and tried to execute it as query: {noformat} ERROR: Shutting down benchmark driver to unexpected exception. Type '--help' for usage. javax.cache.CacheException: class org.apache.ignite.IgniteException: Failed to parse query: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <------>at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.query(IgniteCacheProxy.java:674) <------>at org.apache.ignite.yardstick.cache.load.IgniteCacheRandomOperationBenchmark.doSqlQuery(IgniteCacheRandomOperationBenchmark.java:858) <------>at org.apache.ignite.yardstick.cache.load.IgniteCacheRandomOperationBenchmark.executeRandomOperation(IgniteCacheRandomOperationBenchmark.java:553) <------>at org.apache.ignite.yardstick.cache.load.IgniteCacheRandomOperationBenchmark.executeOutOfTx(IgniteCacheRandomOperationBenchmark.java:495) <------>at org.apache.ignite.yardstick.cache.load.IgniteCacheRandomOperationBenchmark.test(IgniteCacheRandomOperationBenchmark.java:158) <------>at org.yardstickframework.impl.BenchmarkRunner$2.run(BenchmarkRunner.java:176) <------>at java.lang.Thread.run(Thread.java:745) Caused by: class org.apache.ignite.IgniteException: Failed to parse query: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <------>at org.apache.ignite.internal.processors.query.GridQueryProcessor.queryTwoStep(GridQueryProcessor.java:811) <------>at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.query(IgniteCacheProxy.java:665) <------>... 6 more {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)