Commit 92d5626d authored by Marc Gravell's avatar Marc Gravell Committed by GitHub

Merge pull request #493 from hrishi18pathak/SEClusterConfigBugFix

Add server endpoint and key hashslot to debug info for errors
parents 786e946d 8fd886bf
......@@ -2026,6 +2026,13 @@ internal T ExecuteSyncImpl<T>(Message message, ResultProcessor<T> processor, Ser
add("Active-Readers", "ar", ar.ToString());
add("Client-Name", "clientName", ClientName);
add("Server-Endpoint", "serverEndpoint", server.EndPoint.ToString());
var hashSlot = message.GetHashSlot(this.ServerSelectionStrategy);
// only add keyslot if its a valid cluster key slot
if (hashSlot != ServerSelectionStrategy.NoSlot)
{
add("Key-HashSlot", "keyHashSlot", message.GetHashSlot(this.ServerSelectionStrategy).ToString());
}
#if !CORE_CLR
string iocp, worker;
int busyWorkerCount = GetThreadPoolStats(out iocp, out worker);
......
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