Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-3106

Yardstick can't parse /config/queries.txt with license header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6
    • 1.6
    • general
    • None

    Description

      File yardstick/config/queries.txt contains queries that used for load tests.
      Yardstick can't parse this file with this license header:

      # 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.
      

      Yardstick reads line in upper case and tried to execute it as query:

      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
      

      Attachments

        Activity

          People

            ustas Ilya Suntsov
            ustas Ilya Suntsov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: