upstash / issues

Issue Tracker for Upstash
https://upstash.com
2 stars 0 forks source link

Kafka: Add support for deleting a Schema Registry subject #81

Closed csadai closed 1 year ago

csadai commented 1 year ago

Hello,

Steps to reproduce:

Running curl -u {user}:{pwd} -X DELETE https://{hostpart}-us1-rest-kafka.upstash.io/schema-registry/subjects/mysubject.avro

Returns

{
  "result" : "",
  "error" : "Unsupported http method DELETE",
  "status" : 405
}

Additionally, the compatibility being set to backwards_transitive, it makes it hard to fix a naming mistake by upgrading the schema. Adding support for Delete seems pretty necessary.

Thanks

mdogan commented 1 year ago

Hi @csadai, deleting subjects and individual schemas are already available. See https://upstash.com/docs/kafka/schema-registry/schemarest#delete-subject

I've just tested via curl and using kafka-ui tool. I'm not sure how did you get Unsupported http method DELETE error.

About compatibility, you can change to other compatibility options: https://upstash.com/docs/kafka/schema-registry/schemacompatibility

csadai commented 1 year ago

Thank you for your reply @mdogan - The issue keeps happening though.

I tried to run the deletion through https://conduktor.io and it returns an error too, which is weird as it has perfect support for all things Confluent SR (see image attached)

CleanShot 2023-11-21 at 13 23 04@2x

Notes:

CleanShot 2023-11-21 at 13 25 00@2x
sancar commented 1 year ago

@csadai We have identified the problem and working on the fix. Thanks for the info. I will update here when the fix is deployed.

csadai commented 1 year ago

Thank you @sancar ! That will help a lot

sancar commented 1 year ago

Hi @csadai The issue is fixed and deployed. Closing the issue. Thanks for the report again.