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

TableManager handles exceptions in incorrect way.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha2
    • None
    • None
    • Docs Required, Release Notes Required

    Description

      IgniteTable method may throw exceptions in case of incorrect table configuration.
      These exceptions must be public classes.

      The first issue here is we use future.join() that wrap exceptions into CompletionException.
      I think we must unwrap it to Ignite public exception (e.g. to smth like TransactionalException, ConfigurationException, or IgniteException)

      The second issue, exception of internal class thrown instead and an original exception is hidden into the deep.
      Now, the configuration component may throw ConfigurationValidationException, which is a public one, but it is wrapped into an internal exception ListenerRemovedException.
      So, the context is lost, and such exceptions are hardly unwrapped.

      PFA stacktrace.
      Reproducer is available in PR for ignite-15414.

      Attachments

        1. stacktrace
          11 kB
          Andrey Mashenkov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amashenkov Andrey Mashenkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: