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

Use any() for tracking updates of schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Docs Required, Release Notes Required

    Description

      In the ticket (IGNITE-15409), configuration began to provide API where any unknown part of configuration key can be replaced to any() function. It is convenient when subscribing of any nested sub-configuration, although the specific root has not created yet.

      This API makes sense for subscribing of schemas for table. Look at the comments in the code:

      // TODO: IGNITE-15409 Listener with any placeholder should be used instead.
      ((ExtendedTableConfiguration) tablesCfg.tables().get(tblName)).schemas()
      .listenElements(new ConfigurationNamedListListener<>() {
        @Override
        public @NotNull CompletableFuture<?> onCreate(@NotNull ConfigurationNotificationEvent<SchemaView> schemasCtx) {...}
      }
      
      

      Need to rewrite the code in order to use `any()` and remove the comment.
       
       

      Attachments

        Issue Links

          Activity

            People

              v.pyatkov Vladislav Pyatkov
              v.pyatkov Vladislav Pyatkov
              Alexander Lapin Alexander Lapin
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h 10m
                  1h 10m