Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Map addIndex fail for portable only values without registering portable classes on member #9808

asimarslan opened this issue Feb 6, 2017 · 0 comments


None yet
2 participants
Copy link

commented Feb 6, 2017

A client cannot add index to map using Portable values without registering Portable classes on member.

Below test fails

    public void test_addIndexFromClient_portable() {
        Config config = new Config();
        HazelcastInstance hz1 = factory.newHazelcastInstance(config);

        ClientConfig clientConfig = new ClientConfig();
                    .addPortableFactory(TestSerializationConstants.PORTABLE_FACTORY_ID, new PortableFactory() {
                        public Portable create(int classId) {
                            return new NamedPortable();

        HazelcastInstance client = factory.newHazelcastClient(clientConfig);
        IMap<String, NamedPortable> test = client.getMap("test");

        test.put("key1", new NamedPortable("name-1", 1));
        test.addIndex("name", true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.