Bug 1077127

Summary: Protobuf marshalling on Indexed server caches interferes with keySet and bulk marshalling
Product: [JBoss] JBoss Data Grid 6 Reporter: Adrian Nistor <anistor>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED UPSTREAM QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: jdg-bugs
Target Milestone: CR2   
Target Release: 6.2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The method keySet() of remote client fails on distributed caches with indexing enabled. This is caused but the fact that a ClassCastException is thrown in the map-reduce task that collects the keys across the cluster. The task expects the cached value to by byte[], which is not the case if protobuf marshalling is used. The value is never used by the task, so avoiding the unnecessary casting also avoids this issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:35:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adrian Nistor 2014-03-17 09:59:12 UTC
The method keySet() of remote client fails (hangs until transport times out) on distributed caches with indexing. This is due to a ClassCastException in the map-reduce task that collects the keys accross the cluster. The task expects the cached value to by byte[], which is not the case if protobuf marshalling is used (because the byte[] value is wrapped by ProtobufValueWrapper). The value is never used by the task, so avoiding the unnecessary casting also avoids this issue.

Comment 2 Adrian Nistor 2014-03-17 11:33:52 UTC
PR available: https://github.com/infinispan/jdg/pull/50

Comment 3 Adrian Nistor 2014-03-18 16:54:42 UTC
Closed initial PR and re-opened here https://github.com/infinispan/jdg/pull/51

Comment 4 Mircea Markus 2014-03-18 18:43:11 UTC
PR integrated, thanks Adrian!

Comment 7 Red Hat Bugzilla 2025-02-10 03:35:23 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.