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

Sql. Infinity error-loop for simple query

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.0.0-beta2
    • sql
    • Docs Required, Release Notes Required

    Description

      An infinity error loop for the following query occurred:

      CREATE TABLE cc_(key int, val varchar DEFAULT \"defaultValue\" primary key)

      error:

      [2024-05-02T17:04:41,397][ERROR][%isaat_n_1%JRaft-FSMCaller-Disruptormetastorage_stripe_0-0][FailureProcessor] Critical system error detected. Will be handled accordingly to configured handler [hnd=NoOpFailureHandler [], failureCtx=FailureContext [type=CRITICAL_ERROR, err=java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: No enum constant org.apache.ignite.internal.schema.DefaultValueGenerator.defaultValue]]
       java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: No enum constant org.apache.ignite.internal.schema.DefaultValueGenerator.defaultValue
          at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) ~[?:?]
          at java.base/java.util.concurrent.CompletableFuture.andTree(CompletableFuture.java:1527) ~[?:?]
          at java.base/java.util.concurrent.CompletableFuture.allOf(CompletableFuture.java:2419) ~[?:?]
          at org.apache.ignite.internal.metastorage.server.WatchProcessor.notifyWatches(WatchProcessor.java:258) ~[main/:?]
          at org.apache.ignite.internal.metastorage.server.WatchProcessor.lambda$notifyWatches$3(WatchProcessor.java:181) ~[main/:?]
          at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) ~[?:?]
          at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
          at java.base/java.lang.Thread.run(Thread.java:842) [?:?]
      Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ignite.internal.schema.DefaultValueGenerator.defaultValue
          at java.base/java.lang.Enum.valueOf(Enum.java:273) ~[?:?]
          at org.apache.ignite.internal.schema.DefaultValueGenerator.valueOf(DefaultValueGenerator.java:29) ~[main/:?]
          at org.apache.ignite.internal.schema.catalog.CatalogToSchemaDescriptorConverter.convert(CatalogToSchemaDescriptorConverter.java:138) ~[main/:?]
          at org.apache.ignite.internal.schema.catalog.CatalogToSchemaDescriptorConverter.convert(CatalogToSchemaDescriptorConverter.java:162) ~[main/:?]
          at org.apache.ignite.internal.schema.SchemaUtils.prepareSchemaDescriptor(SchemaUtils.java:37) ~[main/:?]
          at org.apache.ignite.internal.schema.SchemaManager.onTableCreatedOrAltered(SchemaManager.java:147) ~[main/:?]
          at org.apache.ignite.internal.schema.SchemaManager.onTableCreated(SchemaManager.java:119) ~[main/:?]
          at org.apache.ignite.internal.event.AbstractEventProducer.fireEvent(AbstractEventProducer.java:88) ~[main/:?]
          at org.apache.ignite.internal.catalog.CatalogManagerImpl.access$000(CatalogManagerImpl.java:91) ~[main/:?]
          at org.apache.ignite.internal.catalog.CatalogManagerImpl$OnUpdateHandlerImpl.handle(CatalogManagerImpl.java:562) ~[main/:?]
          at org.apache.ignite.internal.catalog.CatalogManagerImpl$OnUpdateHandlerImpl.handle(CatalogManagerImpl.java:529) ~[main/:?]
          at org.apache.ignite.internal.catalog.storage.UpdateLogImpl$UpdateListener.onUpdate(UpdateLogImpl.java:314) ~[main/:?]
          at org.apache.ignite.internal.metastorage.server.Watch.onUpdate(Watch.java:67) ~[main/:?]
          at org.apache.ignite.internal.metastorage.server.WatchProcessor.notifyWatches(WatchProcessor.java:233) ~[main/:?]
          ... 6 more 

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              jooger Iurii Gerzhedovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m