Commit 72935b9d authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Merge branch 'unstable' into dict-split-by-slot

parents 6baf20af 6948daca
...@@ -71,6 +71,10 @@ ...@@ -71,6 +71,10 @@
"type": "pure-token", "type": "pure-token",
"optional": true "optional": true
} }
] ],
"reply_schema": {
"description": "if the client was successfully put into or taken out of tracking mode",
"const": "OK"
}
} }
} }
...@@ -15,6 +15,66 @@ ...@@ -15,6 +15,66 @@
], ],
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
] ],
"reply_schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"flags": {
"type": "array",
"items": {
"oneOf": [
{
"const": "off",
"description": "The connection isn't using server assisted client side caching."
},
{
"const": "on",
"description": "Server assisted client side caching is enabled for the connection."
},
{
"const": "bcast",
"description": "The client uses broadcasting mode."
},
{
"const": "optin",
"description": "The client does not cache keys by default."
},
{
"const": "optout",
"description": "The client caches keys by default."
},
{
"const": "caching-yes",
"description": "The next command will cache keys (exists only together with optin)."
},
{
"const": "caching-no",
"description": "The next command won't cache keys (exists only together with optout)."
},
{
"const": "noloop",
"description": "The client isn't notified about keys modified by itself."
},
{
"const": "broken_redirect",
"description": "The client ID used for redirection isn't valid anymore."
}
]
}
},
"redirect": {
"type": "integer",
"description": "The client ID used for notifications redirection, or -1 when none."
},
"prefixes": {
"type": "array",
"description": "List of key prefixes for which notifications are sent to the client.",
"items": {
"type": "string"
}
}
}
}
} }
} }
...@@ -17,6 +17,18 @@ ...@@ -17,6 +17,18 @@
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
], ],
"reply_schema": {
"oneOf": [
{
"const": 0,
"description": "if the client was unblocked successfully"
},
{
"const": 1,
"description": "if the client wasn't unblocked"
}
]
},
"arguments": [ "arguments": [
{ {
"name": "client-id", "name": "client-id",
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
], ],
"acl_categories": [ "acl_categories": [
"CONNECTION" "CONNECTION"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
"type": "integer", "type": "integer",
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
} }
] ]
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -14,6 +14,20 @@ ...@@ -14,6 +14,20 @@
], ],
"command_tips": [ "command_tips": [
"NONDETERMINISTIC_OUTPUT" "NONDETERMINISTIC_OUTPUT"
] ],
"reply_schema": {
"oneOf": [
{
"description": "if the epoch was incremented",
"type": "string",
"pattern": "^BUMPED [0-9]*$"
},
{
"description": "if the node already has the greatest config epoch in the cluster",
"type": "string",
"pattern": "^STILL [0-9]*$"
}
]
}
} }
} }
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
"name": "node-id", "name": "node-id",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"description": "the number of active failure reports for the node",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
"name": "slot", "name": "slot",
"type": "integer" "type": "integer"
} }
] ],
"reply_schema": {
"description": "The number of keys in the specified hash slot",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
"type": "integer", "type": "integer",
"multiple": true "multiple": true
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
} }
] ]
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
} }
] ]
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
"NO_ASYNC_LOADING", "NO_ASYNC_LOADING",
"ADMIN", "ADMIN",
"STALE" "STALE"
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
"name": "node-id", "name": "node-id",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
...@@ -22,6 +22,14 @@ ...@@ -22,6 +22,14 @@
"name": "count", "name": "count",
"type": "integer" "type": "integer"
} }
] ],
"reply_schema": {
"description": "an array with up to count elements",
"type": "array",
"items": {
"description": "key name",
"type": "string"
}
}
} }
} }
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
"command_flags": [ "command_flags": [
"LOADING", "LOADING",
"STALE" "STALE"
] ],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"items": {
"type": "string"
}
}
} }
} }
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
], ],
"command_tips": [ "command_tips": [
"NONDETERMINISTIC_OUTPUT" "NONDETERMINISTIC_OUTPUT"
] ],
"reply_schema": {
"description": "A map between named fields and values in the form of <field>:<value> lines separated by newlines composed by the two bytes CRLF",
"type": "string"
}
} }
} }
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
"name": "key", "name": "key",
"type": "string" "type": "string"
} }
] ],
"reply_schema": {
"description": "The hash slot number for the specified key",
"type": "integer",
"minimum": 0
}
} }
} }
...@@ -12,6 +12,49 @@ ...@@ -12,6 +12,49 @@
], ],
"command_tips": [ "command_tips": [
"NONDETERMINISTIC_OUTPUT" "NONDETERMINISTIC_OUTPUT"
] ],
"reply_schema": {
"description": "an array of cluster links and their attributes",
"type": "array",
"items": {
"type": "object",
"properties": {
"direction": {
"description": "This link is established by the local node _to_ the peer, or accepted by the local node _from_ the peer.",
"oneOf": [
{
"description": "connection initiated from peer",
"const": "from"
},
{
"description": "connection initiated to peer",
"const": "to"
}
]
},
"node": {
"description": "the node id of the peer",
"type": "string"
},
"create-time": {
"description": "unix time creation time of the link. (In the case of a _to_ link, this is the time when the TCP link is created by the local node, not the time when it is actually established.)",
"type": "integer"
},
"events": {
"description": "events currently registered for the link. r means readable event, w means writable event",
"type": "string"
},
"send-buffer-allocated": {
"description": "allocated size of the link's send buffer, which is used to buffer outgoing messages toward the peer",
"type": "integer"
},
"send-buffer-used": {
"description": "size of the portion of the link's send buffer that is currently holding data(messages)",
"type": "integer"
}
},
"additionalProperties": false
}
}
} }
} }
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
"optional": true, "optional": true,
"since": "4.0.0" "since": "4.0.0"
} }
] ],
"reply_schema": {
"const": "OK"
}
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment