Projects tigase _server server-core Issues #136
message-all causes duplicate messages delivered to single JID in a cluster setup (#136)
tom quas opened 1 decade ago

Hi.

Not sure whether this is related to #688 but i do see strange behavior in a cluster setup.

Actual Behavior

Using the server config below, and connecting two IM clients as t1@test.com/a, t2@test.com/b I observe messages sent between the two to be delivered 1+3 times. One time would be expected, why Tigase delivers the same message another three times is beyond my understanding

When turning off message-all, aka replaceing +message-all with -message-all, everything works fine.

Env:

custom tigase build svn rev 2952

ubuntu

$ java -version

java version "1.7.0_05"

Java(TM) SE Runtime Environment (build 1.7.0_05-b05)

Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

Server Config

config-type=--gen-config-def
--sm-plugins=+patugo:apns,+domain-filter,\
    +amp,-message,-msgoffline,\
    +message-all,\
    -jabber:iq:register,-vcard-temp

--cluster-mode=true

--comp-class-1=tigase.server.ext.ComponentProtocol
--comp-name-1=ext
--external=sm01:ext:listen:5299


# don't need no user database
--user-db=tigase.db.DummyRepository
--user-db-uri=file:///tmp/user
wojciech.kapcia@tigase.net commented 1 decade ago

You are trying to use two plugins responsible for message delivery, amp and message-all which causes message duplication and is a result of how plugins work and process stanzas in Tigase.

tom quas commented 1 decade ago

Thanks. I was under the impression that message-all just handles delivery to multiple resources as an add-on to general delivery.

So leaving -message-all and +amp configured, how will I get messages delivered to a user with multiple resources online, aka t1@test.com/a, t1@test.com/b etc.?

Artur Hefczyc commented 1 decade ago

You need a new message plugin, probably if you need to preserver AMP you need to modify AMP plugin.

We are aware of the problem and we are planning to add configurable message delivery algorithms which would be independent from Message plugins.

tom quas commented 1 decade ago

Cool. It's not like I need it today, but would certainly be nice to be notified about it. Feel free to close this ticket if you have a related feature request filed here.

Artur Hefczyc commented 1 decade ago

Not a bug.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
749
Version
tigase-server-5.2.1
Estimation
8h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#136
Please wait...
Page is in error, reload to recover