Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ihorpts
    @ihorpts
    @Vignesh-Thiraviam
    yes, AFAIK it should return you size from a distributed map, very close to the time when size() method was invoked (there might be another action(s) going on, which might change size of the map).
    Vignesh-Thiraviam
    @Vignesh-Thiraviam
    ok thanks @ihorpts , basically there is a use case to monitor the entries for a specific time intreval , but management centre doesnt allow JMX like features
    so thinking to write a service to find the count
    ihorpts
    @ihorpts
    @Vignesh-Thiraviam would it be easier to have map listener for it?
    Vignesh-Thiraviam
    @Vignesh-Thiraviam
    what is map listener , is there any documentation for it ? @ihorpts
    Vignesh-Thiraviam
    @Vignesh-Thiraviam
    thanks @ihorpts , these looks like update for event, but i just want to monitor size of map after I have loaded all the values
    jklingsporn
    @jklingsporn
    I am probably running into this issue: hazelcast/hazelcast-aws#94
    Hazelcast
    @hazelcast_twitter
    [Rafal Leszko (unknown)] @jklingsporn are you using the latest version?
    jklingsporn
    @jklingsporn
    No, I need to use 3.12 (aws-version 2.4). I am a vertx user and they are relying on it.
    but even if I am using tags instead of the security-group property it does not work for me
    jklingsporn
    @jklingsporn
    Just upgraded to the latest version and got the same issues. What is strange to me though that it takes very long for the master node to actually discover the (lite) members. Is there some way to periodically scan for new members or is the algorithm expecting new members to join the cluster and propagate their existence?
    Hazelcast
    @hazelcast_twitter
    [Rafal Leszko (unknown)] @jklingsporn the algorithm expects that new members find the cluster and join
    jklingsporn
    @jklingsporn
    okay, thanks
    regarding dependencies: is it enough to add hazlecast and hazlecast-awsas dependencies or should I use hazlecast-all?
    jklingsporn
    @jklingsporn
    this is my config: https://pastebin.com/VSWBGfwP
    Hazelcast
    @hazelcast_twitter
    [Rafal Leszko (unknown)] It's enough to use hazelcast + hazelcast-aws, but I suggest using hazlecast-all, because if you defined hazelcast and separately hazelcast-aws, then you need to think about the version compatibility: https://github.com/hazelcast/hazelcast-aws#requirements
    jklingsporn
    @jklingsporn
    The only way I can get it working is when both environments are full node members. When configuring one member as a lite-member it fails on start with the message
    Target of invocation cannot be found! Partition owner is null but partitions can't be assigned since all nodes in the cluster are lite members.
    But even if both members are full node members it takes up to 5 minutes until they discover each other.
    Hazelcast
    @hazelcast_twitter
    [Rafal Leszko (unknown)] > But even if both members are full node members it takes up to 5 minutes until they discover each other.
    That's weird. Could you create a GH Issue in https://github.com/hazelcast/hazelcast-aws describing the exact steps to reproduce?
    jklingsporn
    @jklingsporn
    I can, but I have the feeling that there are so many factors to take into account - especially the configuration on AWS side. E.g. the nodes are in different AvailabilityZones (AZ) - probably that is causing issues.
    Hazelcast
    @hazelcast_twitter
    [Rafal Leszko (unknown)] Nodes in different AZ should not cause any issues, we test multiple zones
    jklingsporn
    @jklingsporn
    great
    jklingsporn
    @jklingsporn
    as my issue affects ElasticBeanstalk should I post under the existing issue or create a new issue?
    Hazelcast
    @hazelcast_twitter
    [Rafal Leszko (unknown)] If you can reproduce it without ElasticBeanstalk, then separately
    [Rafal Leszko (unknown)] if not, then, you can use the same issue
    DB
    @dineshbhagat
    Has anyone had upgraded the Hazelcast enterprise version from 3.12.x to 4.0.x?
    Though referring,
    1. https://github.com/hazelcast/hazelcast/wiki/4.0
    2. https://docs.hazelcast.org/docs/4.0/manual/html-single/#upgrading-to-hazelcast-imdg-4-0
      If anyone has more pointers, it would be great.
    ihorpts
    @ihorpts
    :point_up: August 12, 2020 9:54 AM
    @jerrinot we use client-server topology and don't use (probably yet) User Code Deployment. We have an automated processes to deliver those jars (Kubernetes for development and semi-manual deployment in PROD)
    Hazelcast
    @hazelcast_twitter
    [Sharath Sahadevan (Sharath Sahadevan)] @dineshbhagat : yes , a few of our clients have upgraded or are in the process of upgrading to 4.0.x. Plan your code changes per the docs, test it in your test and performance env and the roll it out to Prod. We do have a migration tool for Enterprise customers ( who have a license ) to ease the migration path. In addition our expert services team assists with migration planning and implementation as needed. After reviewing the docs above, if you have any specific feedback on what is missing that would be helpful in improving our documentation. Let us know if you have any questions as you go through the upgrade process.
    DB
    @dineshbhagat
    @ssahadevan can you please share download link/web page for the migration tool?
    Hazelcast
    @hazelcast_twitter
    [Sharath Sahadevan (Sharath Sahadevan)] @dineshbhagat - The migration tool uses WAN replication for migrating data from the old version to the new 4.x. If you are currently an enterprise customer, please reach out to the Hazelcast Account Exec or Solution Architect that you work with or the support portal ( https://hazelcast.zendesk.com/hc/en-us) they can assist. If you do not have a license and would like one, please reach out to sales@hazelcast.com and we can get you set up. Let me know if there are more questions.
    DB
    @dineshbhagat
    @ssahadevan Thank you, will reach out.
    Ulf Adams
    @ulfjack
    What happens if I change the eviction config of an IMap in some instances of a running cluster? What if I change it in all instances? Does it pick up the new eviction config or does it continue to use the config from when I first started the cluster?
    Can Gencer
    @cangencer
    Hi, we'll be decommissioning this channel soon - please join us at https://slack.hazelcast.com
    murali474
    @murali474

    @murali474:
    It looks you had deployed a webapplication with an embedded Hazelcast. Then you undeployed the application from Tomcat, but the application failed to stop Hazelcast instance. You should always stop all Hazelcast instances when an application is being stopped. the simplest thing should be to call HazelcastInstance.shutdown() from a context listener. See an example here: https://www.codejava.net/java-ee/servlet/weblistener-annotation-examples

    Thanks you @jerrinot

    murali474
    @murali474

    Hi Community,
    I am currently using hazelcast client server topology and my webapplications are acting as clients .
    both server and clients are running in same node.

    now i want to enable ssl for my hazelcast server , could some one guide me about the process and share me any reference links.

    Jiří Holuša
    @Holmistr
    Hi @murali474 :) Just a note, this channel will close soon. Please join us on https://slack.hazelcast.com
    murali474
    @murali474
    thanks @Holmistr
    Yaroslav Derman
    @yarosman
    Hello. I try to use hazelcast with scala and get strange error com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: com.hazelcast.Scala.KeyedDeltaUpdates$UpdateEP
    danishxav
    @danishxav
    Hi Team, Do we have any way to export hazelcast map from one cluster and import into other cluster. Please suggest.
    Hazelcast
    @hazelcast_twitter
    [Sharath Sahadevan (Sharath Sahadevan)] @danishxav: Hazelcast Enterprise has a feature called wan replication that can replicate data from one cluster to another. Requires a license. Also please note that this channel will close soon. Please join us on https://slack.hazelcast.com
    danishxav
    @danishxav
    Thanks @ssahadevan
    AdamUlatowski
    @AdamUlatowski

    Hi guys, i have simillar problem like here in a opened ticket hazelcast/hazelcast#17062
    However my error is different so maybe it's worth to ask you.

    Hazecast version 4.0.1
    Configuration: 3-member hazelcast cluster deployed on K8s, microservice using Hazelcast Client to connect to this cluster (as well deployed on k8s in same namespace)
    Scenario:
    a) after deployment hazelcastClient server can detect all 3 members and connect to the cluster, everything works as expected
    b) when hazelcast cluster is restarted, client cannot connect again automatically (i need to every time restart the pod of the HZClient to make it possible to connect again). Error log:

    com.hazelcast.client.HazelcastClientNotActiveException: Client is shutting down
        at com.hazelcast.client.impl.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:260)
        at com.hazelcast.client.impl.spi.impl.ClientInvocation.invokeOnSelection(ClientInvocation.java:196)
        at com.hazelcast.client.impl.spi.impl.ClientInvocation.invoke(ClientInvocation.java:143)
        at com.hazelcast.client.impl.spi.ClientProxy.invokeOnPartition(ClientProxy.java:187)
        at com.hazelcast.client.impl.spi.ClientProxy.invoke(ClientProxy.java:182)
        at com.hazelcast.client.impl.proxy.ClientMapProxy.getInternal(ClientMapProxy.java:251)
        at com.hazelcast.client.impl.proxy.ClientMapProxy.get(ClientMapProxy.java:245)
    ...
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: No connection found to cluster.
        at com.hazelcast.client.impl.connection.nio.ClientConnectionManagerImpl.checkInvocationAllowed(ClientConnectionManagerImpl.java:487)
        at com.hazelcast.client.impl.spi.impl.ClientInvocationServiceImpl.checkInvocationAllowed(ClientInvocationServiceImpl.java:279)
        at com.hazelcast.client.impl.spi.impl.ClientInvocation.invokeOnSelection(ClientInvocation.java:165)
        ... 30 common frames omitted

    I tried to set reconnection policy but it didn't help. Piece of configuration :

      public HazelcastInstance hazelcastInstanceInCluster() {
        ClientConfig clientConfig = new ClientConfig();
        clientConfig.setClassLoader(Thread.currentThread().getContextClassLoader());
        ClientNetworkConfig networkConfig = clientConfig.getNetworkConfig();
        clientConfig.setClusterName(cacheProperties.getClusterName());
        clientConfig.setInstanceName(cacheProperties.getInstanceName());
        setConnectionStrategyConfig(clientConfig);
        networkConfig.addAddress(cacheProperties.getNetworkAddress())
            .setSmartRouting(cacheProperties.isSmartRouting())
            .addOutboundPortDefinition(cacheProperties.getOutboundPortDefinition())
            .setRedoOperation(cacheProperties.isRedoOperation())
            .setConnectionTimeout(cacheProperties.getConnectionTimeout());
        setUserDeploymentConfig(clientConfig);
        HazelcastInstance hazelcastInstance = HazelcastClient.newHazelcastClient(clientConfig);
        setEvictionPolicy(hazelcastInstance, densityProperties.getPeopleCacheName(), FIVE_MINUTES);
        setPNCounterConfig(hazelcastInstance);
        return hazelcastInstance;
      }
    
      private void setConnectionStrategyConfig(ClientConfig clientConfig) {
        ClientConnectionStrategyConfig connectionStrategy = clientConfig.getConnectionStrategyConfig();
        ConnectionRetryConfig connectionRetryConfig = connectionStrategy.getConnectionRetryConfig();
        connectionRetryConfig.setInitialBackoffMillis(1000)
            .setMaxBackoffMillis(60000)
            .setMultiplier(2)
            .setClusterConnectTimeoutMillis(30000)
            .setJitter(0.1);
      }

    Thanks!

    Hazelcast
    @hazelcast_twitter
    [Sancar Koyunlu (sancar)] Hi @*AdamUlatowski* Are you using hostname for member adresses ?
    And does these hostnames resolve to different IP address after restart ?
    [Sancar Koyunlu (sancar)] If yes, this issue is not resolved yet. We have a candidate fix on the issue but we need to do more testing on that to verify our fix.
    AdamUlatowski
    @AdamUlatowski
    Hi @sancar thank you for your answer! As you move to slack i have answered there :)
    Can Gencer
    @cangencer
    This channel is now deprecated, please use https://slack.hazelcast.com
    Ravi Chandra
    @rchandra3007

    Hi Guys,
    Need your help,
    I have deployed Hazelcast on k8 cluster by helm chart,
    In my application i have a hazelcast client to communicate with hazelcast members on k8 cluster,
    When i am making any call to my application for caching of objects, i am unable to see any cache map on Maneter,
    After checking logs of hazelcast member i found,

    com.hazelcast.nio.serialization.HazelcastSerializationException: There is no suitable de-serializer for type 1459460. This exception is likely caused by differences in the serialization configuration between members or between clients and members.

    I am using Jackson smile for serialization in application