Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2543

QueryIndexManager fails to create indexes in Linq2Couchbase integration tests

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.0.1
    • 3.3.0
    • library
    • 1

    Description

      As an example, this method is being called:

      await manager.CreateIndexAsync("beer-sample", "brewery_id", "brewery_id");
      

      And this is the result:

      Couchbase.Core.Exceptions.ParsingFailureException : syntax error - at - [3000]
         at Couchbase.Query.QueryResultExtensions.ThrowExceptionOnError[T](IQueryResult`1 result, QueryErrorContext context) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Query\QueryResultExtensions.cs:line 56
         at Couchbase.Query.QueryClient.ExecuteQuery[T](QueryOptions options, ITypeSerializer serializer) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Query\QueryClient.cs:line 204
         at Couchbase.Query.QueryClient.QueryAsync[T](String statement, QueryOptions options) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Query\QueryClient.cs:line 67
         at Couchbase.Management.Query.QueryIndexManager.CreateIndexAsync(String bucketName, String indexName, IEnumerable`1 fields, CreateQueryIndexOptions options) in C:\Users\bburnett\source\repos\couchbase-net-client\src\Couchbase\Management\Query\QueryIndexManger.cs:line 67
         at Couchbase.Linq.IntegrationTests.N1QlTestBase.EnsureIndexExists(IBucket bucket, String indexName, String[] fields) in C:\Users\bburnett\source\repos\Linq2Couchbase\Src\Couchbase.Linq.IntegrationTests\N1QLTestBase.cs:line 18
         at Couchbase.Linq.IntegrationTests.QueryTests.JoinTests_InnerJoin_IndexJoin() in C:\Users\bburnett\source\repos\Linq2Couchbase\Src\Couchbase.Linq.IntegrationTests\QueryTests.cs:line 788
         at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
         at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaitable)
         at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
         at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
         at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
         at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
         at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)
      

      Likely cause: Not escaping the - character in the bucket name.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jmorris Jeff Morris
              btburnett3 Brant Burnett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty