[ 
https://issues.apache.org/jira/browse/GEODE-7944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095364#comment-17095364
 ] 

ASF GitHub Bot commented on GEODE-7944:
---------------------------------------

jvarenina commented on a change in pull request #593:
URL: https://github.com/apache/geode-native/pull/593#discussion_r417243262



##########
File path: cppcache/src/QueueConnectionRequest.cpp
##########
@@ -28,10 +28,10 @@ void QueueConnectionRequest::toData(DataOutput& output) 
const {
   output.writeString(m_serverGp);
   output.write(static_cast<int8_t>(DSCode::FixedIDByte));
   output.write(static_cast<int8_t>(DSCode::ClientProxyMembershipId));
-  uint32_t buffLen = 0;
-  output.writeBytes(reinterpret_cast<uint8_t*>(const_cast<char*>(
-                        m_membershipID.getDSMemberId(buffLen))),
-                    buffLen);
+  uint32_t memIdBufferLength = 0;
+  auto memIdBuffer = m_membershipID.getDSMemberId(memIdBufferLength);

Review comment:
       Thanks, I'll have that in mind. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> Unable to deserialize membership id java.io.EOFException on locator only when 
> debug is enabled and native client is used
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-7944
>                 URL: https://issues.apache.org/jira/browse/GEODE-7944
>             Project: Geode
>          Issue Type: Bug
>          Components: native client
>            Reporter: Jakov Varenina
>            Assignee: Jakov Varenina
>            Priority: Major
>         Attachments: locator.log, native_client.log
>
>
> During the creation of pool in geode native with subscription "enabled" 
> exception java.io.EOFException is thrown on locator only when it is 
> configured with _--log-level=debug_. On geode native this reflects with "No 
> locators available". You can find native_client.log and locator.log in 
> attachment.
> Native client code: 
> {code:java}
> auto cache = cacheFactory.create();
> auto poolFactory = cache.getPoolManager().createFactory();
> auto pool = poolFactory.addLocator("localhost", 10334)
> .setSubscriptionEnabled(true)
> .create("pool");
> {code}
> With java client everything works OK.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to