Petals ESB Container

Successful creation of... 2 EPs with same name !

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 3.1.1
  • Fix Version/s: 3.1.2, 4.0.0
  • Component/s: Registry
  • Security Level: Public
  • Description:
    Hide

    Recipe follows:

    • Petals "Node 1" in standalone mode, deploy endpoint (Interface,Service,EP)
    • Petals "Node 2" in standalone mode, deploy same endpoint (Interface,Service,EP)
    • Stop nodes
    • Reconfigure topology: Node 1 is master, Node 2 is slave
    • Start Node 1, then Node 2
      Doing so, you will obtain 2 EPs with same name (Interface,Service,EP).
      Don't know which one is invoked... but it works if a client calls the EP.
    Show
    Recipe follows:
    • Petals "Node 1" in standalone mode, deploy endpoint (Interface,Service,EP)
    • Petals "Node 2" in standalone mode, deploy same endpoint (Interface,Service,EP)
    • Stop nodes
    • Reconfigure topology: Node 1 is master, Node 2 is slave
    • Start Node 1, then Node 2 Doing so, you will obtain 2 EPs with same name (Interface,Service,EP). Don't know which one is invoked... but it works if a client calls the EP.
  • Environment:
    Linux

Activity

Hide
Roland Naudin added a comment - Tue, 21 Dec 2010 - 11:07:23 +0100

It must be forbidden to deploy the same endpoint (endpointname/serviceName) twice in a Petals domain.

Show
Roland Naudin added a comment - Tue, 21 Dec 2010 - 11:07:23 +0100 It must be forbidden to deploy the same endpoint (endpointname/serviceName) twice in a Petals domain.
Hide
Christophe DENEUX added a comment - Tue, 21 Dec 2010 - 11:15:59 +0100

Yes, but because of:

  • the clean of the registry on startup,
  • the delay before the first synchronization,
    on each node, the other endpoint is not kown, so you can deploy you local endpoint.

I think it's a consequence of a defect of the registry

Show
Christophe DENEUX added a comment - Tue, 21 Dec 2010 - 11:15:59 +0100 Yes, but because of:
  • the clean of the registry on startup,
  • the delay before the first synchronization, on each node, the other endpoint is not kown, so you can deploy you local endpoint.
I think it's a consequence of a defect of the registry
Hide
Pierre-Yves Gibello added a comment - Tue, 21 Dec 2010 - 11:28:33 +0100

Right, it was not intentional... but the registry accepted the 2 EPs (they were visible in the sample client's EP list).

Show
Pierre-Yves Gibello added a comment - Tue, 21 Dec 2010 - 11:28:33 +0100 Right, it was not intentional... but the registry accepted the 2 EPs (they were visible in the sample client's EP list).
Hide
Christophe Hamerling added a comment - Tue, 21 Dec 2010 - 11:44:09 +0100

Not sure that there are such constraint in the DB table...

Show
Christophe Hamerling added a comment - Tue, 21 Dec 2010 - 11:44:09 +0100 Not sure that there are such constraint in the DB table...
Hide
Christophe DENEUX added a comment - Fri, 1 Apr 2011 - 11:26:02 +0200

Christophe, are you sure adding a constraint will solve the problem ? On the master, the constraint will avoid:

  • to insert the second EPs (EP of the slave) on the master
  • to insert a second EP (EP of the master) on the slave
    and so, we will not have the same endpoint on each node.
Show
Christophe DENEUX added a comment - Fri, 1 Apr 2011 - 11:26:02 +0200 Christophe, are you sure adding a constraint will solve the problem ? On the master, the constraint will avoid:
  • to insert the second EPs (EP of the slave) on the master
  • to insert a second EP (EP of the master) on the slave and so, we will not have the same endpoint on each node.
Hide
Christophe DENEUX added a comment - Wed, 4 May 2011 - 18:14:19 +0200

Even if the registry is synchronized, we can deployed the same endpoint twice.
It seems that a check is missing.

Show
Christophe DENEUX added a comment - Wed, 4 May 2011 - 18:14:19 +0200 Even if the registry is synchronized, we can deployed the same endpoint twice. It seems that a check is missing.
Hide
Christophe DENEUX added a comment - Mon, 9 May 2011 - 15:42:57 +0200

Now in petals-entreprise-3.1.x, if the registry is synchronized, an error occurs when installing an endpoint twice.

Show
Christophe DENEUX added a comment - Mon, 9 May 2011 - 15:42:57 +0200 Now in petals-entreprise-3.1.x, if the registry is synchronized, an error occurs when installing an endpoint twice.
Hide
Christophe DENEUX added a comment - Mon, 9 May 2011 - 15:43:23 +0200

To merge in trunk and to complete against registry synchronization

Show
Christophe DENEUX added a comment - Mon, 9 May 2011 - 15:43:23 +0200 To merge in trunk and to complete against registry synchronization

People

Dates

  • Created:
    Tue, 21 Dec 2010 - 10:51:38 +0100
    Updated:
    Mon, 12 Sep 2011 - 14:26:37 +0200
    Resolved:
    Mon, 12 Sep 2011 - 13:56:49 +0200