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

Drop column does not remove column from internal schema

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: sql
    • Labels:
      None

      Description

      Discovered this during the work on IGNITE-11541 (see StaticCacheDdlTest.testDropColumn).

      After a quick debug I see the following: in GridQueryProcessor#onSchemaFinishDiscovery we call DynamicCacheDescriptor.schemaChangeFinish(msg), which eventually calls QuerySchema.finish(op).
      Inside that method we have the following: the message.columns() collection has the field name in upper case (in the test it's "FIELD_TO_DROP"), but the entity's fields map contains lower-case names ("field_to_drop"). As a result, we do not remove the field from the query entity, this query entity is saved to the stored cache data and field re-appears after restart.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tledkov-gridgain Taras Ledkov
                Reporter:
                agoncharuk Alexey Goncharuk
              • 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 - 20m
                  20m