...
Code Block |
---|
|
{
"apiKey": 0,
"type": "metadata",
"name": "RegisterBrokerRecord",
"validVersions": "0-4",
"flexibleVersions": "0+",
"fields": [
...
{ "name": "CordonedLogDirs", "type": "[]uuid", "versions": "4+", "taggedVersions": "4+",
"tag": "1", "about": "Log directories that are cordoned." }
]
} |
- DescribeLogDirsRequest v5 adds no new fields
- DescribeLogDirsResponse v5 adds the
IsCordoned
field
Code Block |
---|
|
{
"apiKey": 35,
"type": "response",
"name": "DescribeLogDirsResponse",
// Starting in version 1, on quota violation, brokers send out responses before throttling.
"validVersions": "0-5",
// Version 2 is the first flexible version.
// Version 3 adds the top-level ErrorCode field
// Version 4 adds the TotalBytes and UsableBytes fields
// Version 5 adds the IsCordoned fields
"flexibleVersions": "2+",
"fields": [
...
{ "name": "IsCordoned", "type": "bool", "versions": "5+", "ignorable": true, "default": false,
"about": "True if this log directory is cordoned."
}
]}
]
} |
Admin API
A new method will be added to LogDirDescription
to tell whether a log directory is cordoned:
Code Block |
---|
|
/**
* Whether this log directory is cordoned or not.
*/
public boolean isCordoned() {
...
} |
Compatibility, Deprecation, and Migration Plan
...