Issue #3211: Fix NPE when creating schema after deleting a schema (#3836)

Fixes #3211
Fixes #2786 

*Motivation*

When a schema is deleted, the schema is not removed directly.
You can still fetch the latest schema but its state is marked as `deleted`.

So when we apply schema compatibility check, we should ignore deleted schema.

*Modifications*

Ignore deleted schema when doing schema compatibility check

2 files changed
tree: 8dbc4f6e2519bb669e0c0ea9644616b8f32d2730
  1. distribution/
  2. docker/
  3. tests/