Distributed Transaction management in Hazelcast Map and MapStore
Hello,
Use Case: I have 2 Maps, and I am using Single TransactionContex object for both. I am invoking commitTrasaction() upon success and rollbackTransaction() in case of exception or failure. We have MapSotore for both the map and data stored in the backend datastore PostgresSQL. We have deployed it on 2 different instances. Transaction Context and Get Map code deployed on pod. And MapStore database query code jar deployed under hazelcast/bin/user-lib
Problem Statement: In case of any failure in MapStore SQL or Database layer, rollbackTransaction () does not rolling back the data from Hazelcast Map.
I am seeking assistance for transaction management on the above use case. I want to commit the data after success of all the layers (Cache and MapStore) and rollback the data in case of any failure either database or Hazelcast nodes. Any support/suggestions are appreciated. Thanks.
Source: hazelcast/hazelcast