Hi,
Some recent (last month and a half, probably less) commit have broken
the multinode configuration. I am pretty sure this worked on previous
versions, because we are using this on a working project. This is
quite severe, because data from different nodes will be mixed or even
worse!!!
To test this: take a develop branch GeoNetwork. Set up two nodes in
web.xml. I know that web.xml says that you have to duplicate the
gn-servlet, but that's not true, you have to duplicate the spring
servlet. Also, duplicate the config-node, but make sure you configure
different databases for each node (for example, postgres and h2, or
two different postgres databases, it doesn't matter).
Also, I noticed that now you cannot log in one node and at the same
time log in another node. That's also new, right? Should it be this
way? Why?
Now set up a GeoNetwork harvester to harvest from the second node to
the default node. Run it. It will break very badly.
Why? Because when it search for the metadata to check if it has to
insert or update, it does it on the wrong database! So it gets an id
and update the metadata instead of creating it on the database.
Haven't checked if also the update is run on the wrong database, but
probably it does.
Does someone has any idea what can have broken this? I am trying to
debug where the database connection is wrongly assigned, but it is a
very long trace, so if someone can give me a hint...
Thanks,
María.