Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"name": "AdminOperation",
"namespace": "com.linkedin.venice.controller.kafka.protocol.admin",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The namespace can be tricky. Can we have some local testing to make sure thing will work or compatible after the move?

"type": "record",
"fields": [
{
"name": "operationType",
"doc": "0 => StoreCreation, 1 => ValueSchemaCreation, 2 => PauseStore, 3 => ResumeStore, 4 => KillOfflinePushJob, 5 => DisableStoreRead, 6 => EnableStoreRead",
"type": "int"
}, {
"name": "payloadUnion",
"doc": "This contains the main payload of the admin operation",
"type": [
{
"name": "StoreCreation",
"type": "record",
"fields": [
{
"name": "clusterName",
"type": "string"
},
{
"name": "storeName",
"type": "string"
},
{
"name": "owner",
"type": "string"
},
{
"name": "keySchema",
"type": {
"type": "record",
"name": "SchemaMeta",
"fields": [
{"name": "schemaType", "type": "int", "doc": "0 => Avro-1.4, and we can add more if necessary"},
{"name": "definition", "type": "string"}
]
}
},
{
"name": "valueSchema",
"type": "SchemaMeta"
}
]
},
{
"name": "ValueSchemaCreation",
"type": "record",
"fields": [
{
"name": "clusterName",
"type": "string"
},
{
"name": "storeName",
"type": "string"
},
{
"name": "schema",
"type": "SchemaMeta"
},
{
"name": "schemaId",
"type": "int"
}
]
},
{
"name": "PauseStore",
"type": "record",
"fields": [
{
"name": "clusterName",
"type": "string"
},
{
"name": "storeName",
"type": "string"
}
]
},
{
"name": "ResumeStore",
"type": "record",
"fields": [
{
"name": "clusterName",
"type": "string"
},
{
"name": "storeName",
"type": "string"
}
]
},
{
"name": "KillOfflinePushJob",
"type": "record",
"fields": [
{
"name": "clusterName",
"type": "string"
},
{
"name": "kafkaTopic",
"type": "string"
}
]
},
{
"name": "DisableStoreRead",
"type": "record",
"fields": [
{
"name": "clusterName",
"type": "string"
},
{
"name": "storeName",
"type": "string"
}
]
},
{
"name": "EnableStoreRead",
"type": "record",
"fields": [
{
"name": "clusterName",
"type": "string"
},
{
"name": "storeName",
"type": "string"
}
]
}
]
}
]
}
Loading
Loading