Open BenNeighbour opened 3 years ago
I'm away from a computer but most likely the value inserted into saga_data_json is too long and you need to increase the size of the column.
@dartartem @eventuateio But I didn't think I'd have to do that? I thought that the Eventuate CDC and the gradle dependancies deal with all of that - let's say the database gets dropped, (in a Dev or production environment) I will have to reset it each time? I thought that those tables were only touched by the eventuate code. I may have got to the bottom of the issue, but that wasn't what I did, I just did something to a dogey bit of code in one of my service methods.
I appreciate that you are away from a computer right now, so if/when you get access to one again I would appreciate any help. I will comment later if my initial fix has worked. Thanks @cer for the help so far, I really like your framework, it makes it so easy for me to develop complex, reliable and scalable apps at a fast pace.
I would be super interested in contributing to the framework itself in the future once I've finished the project I'm currently working on, because I am enjoying developing with this and would love to improve it!
Anyways, thanks for now
The database schema is your responsibility. You will need to setup the tables for Eventuate along with the rest of the tables. You can copy/paste and perhaps adapt SQL scripts in the repositories.
Glad you like Eventuate. Contributions are always welcome!
@cer Right, I get that. Sorry I was just using the eventuate postgres docker image with the tables pre-created because I didn't know what it needed to have in it. My bad. Also, on what basis does the recieved_messages table get purged/wiped? I can see that hogging up a lot of storage? I'm just curious but I'm sure it does clean it up and everything.
Thanks for your help
BTW There are other column types: e.g. TEXT
. See https://github.com/eventuate-foundation/eventuate-common/blob/a691ea45909ff74f9c19d527402c0859931752ce/postgres/2.initialize-database.sql#L8
There is also the possibility of using JSON type too - https://github.com/eventuate-foundation/eventuate-common/blob/a691ea45909ff74f9c19d527402c0859931752ce/postgres-json/4.initialize-database.sql#L5
However, that work is in a development branch for Eventuate Tram and we need to review whether anything needs to be done for this framework.
Also, on what basis does the recieved_messages table get purged/wiped? I can see that hogging up a lot of storage? I'm just curious but I'm sure it does clean it up and everything.
That currently does not happen automatically. See https://github.com/eventuate-tram/eventuate-tram-docs/issues/3
Hi, @dartartem @cer , I have just encountered this very odd issue. After a method is called by a saga (in-between steps), I am getting this exception:
Here is my saga definition too:
It completes the first step,
.invokeLocal(allocationEngine::allocateTickets)
but then it completely falls over in between in some eventuate classes?
Any help or pointers would be much appreciated, I'm trying to get this shipped as soon as possible!!