You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Hitesh Khamesra (JIRA)" <ji...@apache.org> on 2017/03/03 00:37:45 UTC
[jira] [Created] (GEODE-2586) ServerOperationException Message: Not
providing remote server id
Hitesh Khamesra created GEODE-2586:
--------------------------------------
Summary: ServerOperationException Message: Not providing remote server id
Key: GEODE-2586
URL: https://issues.apache.org/jira/browse/GEODE-2586
Project: Geode
Issue Type: Bug
Components: client/server
Reporter: Hitesh Khamesra
It seems following code need to get remote server id in ServerOperationException class
private static String getServerMessage(String msg) {
// To fix bug 44679 add a description of the member the server is on.
// Do this without changing how this class gets serialized so that old
// clients will still work.
InternalDistributedSystem ids = InternalDistributedSystem.getAnyInstance();
if (ids != null) {
if (msg != null) {
return "remote server on " + ids.getMemberId() + ": " + msg;
} else {
return "remote server on " + ids.getMemberId();
}
} else {
if (msg != null) {
return "remote server on unknown location: " + msg;
} else {
return "remote server on unknown location";
}
}
}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)