Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion couldn't get VoldemortFilter to work
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ron Reynolds  
View profile  
 More options Mar 23 2010, 10:52 am
From: Ron Reynolds <tequila...@ymail.com>
Date: Tue, 23 Mar 2010 07:52:42 -0700 (PDT)
Local: Tues, Mar 23 2010 10:52 am
Subject: couldn't get VoldemortFilter to work

playing with the AdminClient i tried using a VoldemortFilter with fetchEntries() but any time i provided a non-null reference to my VoldemortFilter on the client i got nothing back and this on the server:

03 23, 2010 04:23:33 AM cc: voldemort.server.protocol.admin.AdminServiceRequestHandler ERROR: handleFetchPartitionEntries failed for request(partitions: 0
partitions: 1
store: "keys"
filter {
  name: "com.audiencescience.service.user.util.VoldemortSingleKeyFilter"
  data: "\312\376\272\276\...\000\036\000!\000\002\000\001\000\"\000\000\000\002\00 0#"

}

fetch_values: true
)
voldemort.VoldemortException: Failed to load and instantiate the filter class
        at voldemort.server.protocol.admin.AdminServiceRequestHandler.getFilterFromReq uest(AdminServiceRequestHandler.java:656)
        at voldemort.server.protocol.admin.AdminServiceRequestHandler.handleFetchParti tionEntries(AdminServiceRequestHandler.java:159)
        at voldemort.server.protocol.admin.AdminServiceRequestHandler.handleRequest(Ad minServiceRequestHandler.java:114)
        at voldemort.server.socket.SocketServerSession.run(SocketServerSession.java:73 )
...
Caused by: java.lang.ClassNotFoundException: com.audiencescience.service.user.util.VoldemortSingleKeyFilter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
...
        at voldemort.server.protocol.admin.AdminServiceRequestHandler.getFilterFromReq uest(AdminServiceRequestHandler.java:652)
        ... 6 more

i originally used an anonymous inner class (i wasn't too surprised that didn't work).  
then tried a public static inner class - i could rationalize that not working as well since the outer class wasn't serialized and there might be loading issues.  
but i couldn't figure out the normal public class, with or without Serializable.  

public class VoldemortSingleKeyFilter implements VoldemortFilter {
    private Object _key;
    public VoldemortSingleKeyFilter (Object key) { _key = key; }
    public boolean accept(Object key, Versioned<?> val) {
        return key.equals(_key);
    }

};

should this feature work?  is there a flag i need to set on the server?  oh, version is 0.70.1 and the connection is between a windows client and a linux server both running Java 1.6 (64-bit 1.6.0_13 on the server; 32-bit 1.6.0_17 on the client).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.