Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 23 19:29

    tmontgomery on master

    [C]: account for image ref coun… (compare)

  • Sep 23 17:33

    tmontgomery on master

    [C]: add SM-EOS when moving an … (compare)

  • Sep 23 12:50

    mjpt777 on master

    [Java] Ensure the correct commi… (compare)

  • Sep 23 09:42

    vyazelenko on master

    [Java] Use CachedNanoClock. (compare)

  • Sep 23 09:04

    vyazelenko on master

    [Java] Use mocked NanoClock to … (compare)

  • Sep 23 08:45

    mjpt777 on master

    [Java] Fix checkstyle issues an… (compare)

  • Sep 23 04:29

    mikeb01 on master

    [Java] Abort the cluster servic… (compare)

  • Sep 23 01:59

    mikeb01 on master

    [Java] Validate that aeron clie… (compare)

  • Sep 22 12:58

    mjpt777 on master

    [Java] Formatting. (compare)

  • Sep 22 10:21

    vyazelenko on master

    [Java] Update lookup of the Aut… (compare)

  • Sep 21 20:21

    vyazelenko on master

    [Java] Tool to replicate record… (compare)

  • Sep 21 20:21
    vyazelenko closed #1363
  • Sep 21 16:12
    vyazelenko synchronize #1363
  • Sep 21 16:12

    vyazelenko on master

    [Java] Upgrade to JUnit Platfor… (compare)

  • Sep 21 15:59
    vyazelenko synchronize #1363
  • Sep 21 15:39
    vyazelenko synchronize #1363
  • Sep 21 15:31
    vyazelenko synchronize #1363
  • Sep 21 15:31
    vyazelenko synchronize #1363
  • Sep 21 14:49

    mjpt777 on master

    [Java] Upgrade to JUnit 5.9.1. (compare)

  • Sep 21 14:47
    vyazelenko synchronize #1363
Martin Thompson
@mjpt777
@juddgaddie You can take this up as a support issue as this is not the place to discuss. I'm not sure you are using things correctly.
Judd Gaddie
@juddgaddie
Fair enough, thanks
feyyaz91
@feyyaz91
Hello there, is there a way to use ReplayMerge when the live publication is on a different media driver to the archived recording? At the moment i am aware the recording and publication must share a media driver to successfully merge
William
@ilove7412369_twitter
Is it illegal to modify the buffer of the callback onFragment?
Martin Thompson
@mjpt777
@ilove7412369_twitter The buffer should be considered readonly.
Ivan Zemlyanskiy
@QIvan
hi! Happy New year, guys!
if you recall I asked some time ago about restarting archive and ports issue, when with java md everything worked fine, but with C md didn't (you said because C md is a way faster than Java one and that's cause of the problem)
Could you help to clarify this scenario: I create an aeron instance (with Aeron.connect()) and add a subscription for an endpoint let's say 10.1.1.1:1234, I work with it for some time, then I close the subscription, close the aeron instance and repeat everything once again. A question: what should I do, and should I, before I start everything over?
thank you in advance
Todd L. Montgomery
@tmontgomery
@QIvan you will want to wait until the counter associated with the channel has get removed.
Ivan Zemlyanskiy
@QIvan
but if I closed the aeron where can I get the CounterReader from?
I mean, I tried to do it with aeron.countersReader(), but I got a segFault =)
Martin Thompson
@mjpt777
@QIvan Same way AeronStat does it.
Ivan Zemlyanskiy
@QIvan
ahhh... you're right, now I feel stupid =)
thank you!
zaradai
@zaradai

Q, Possible bug?
aeron_driver_receiver.c
aeron_driver_receiver_on_add_publication_image

if ensure capacity fails, the error is logged but then continues to inc the array ptr which will surely fail. Should the capacity check be separated and skip the images array update?

Lorenzo Nicora
@nicusX

Hi everybody! Apologies for the newbie question. I am trying to run some of the samples in AWS, between separate EC2 instances, same subnet.
Ping/Pong works perfectly, but I cannot make BasicPublisher/BasicSubscriber talk each other, even via simple unicast UDP.

Publisher (10.0.101.101):

java -cp ./aeron-all-1.32.0-SNAPSHOT.jar \
     -Daeron.sample.embeddedMediaDriver=true \
     -Daeron.sample.channel="aeron:udp?endpoint=10.0.101.101:9000" \
     io.aeron.samples.BasicPublisher

Subscriber (10.0.101.201):

java -cp ./aeron-all-1.32.0-SNAPSHOT.jar \
   -Daeron.sample.embeddedMediaDriver=true \
   -Daeron.sample.channel="aeron:udp?endpoint=10.0.101.101:9000" \
   io.aeron.samples.BasicSubscriber

The subscriber always fails to connect:

io.aeron.exceptions.ChannelEndpointException: ERROR - AeronException : ERROR - channel error - Cannot assign requested address (at java.base/sun.nio.ch.Net.bind0(Native Method)): aeron:udp?endpoint=10.0.101.101:9000

Security Groups, NACL and routing seems to be ok. The two instances can ping each other and can send UDP on port 9000 with netcat. I also tried specifying the interface explicitly and nothing changes (instances have a single network interface, anyhow).

I am sure I am missing something stupid.

Todd L. Montgomery
@tmontgomery
subscriber should use 10.0.101.201. You are using the publisher IP (10.0.101.101). So, use 10.0.101.201 for both if that IP is the subscriber IP
Lorenzo Nicora
@nicusX
Many thanks @tmontgomery
I must say this was not obvious at all, looking at all samples and the wiki. Everything uses localhost that does make not obvious whether it's the publisher or the recipient
Todd L. Montgomery
@tmontgomery
just FYI
Lorenzo Nicora
@nicusX
Thanks. I read that.
Re-reading "The socket address to which publications will send messages and from which subscriptions will receive messages" now I understand the subtlety. But it wasn't massively obvious.
(I don't want to criticise. Please, just get this as a newbie feedback)
Todd L. Montgomery
@tmontgomery
thanks! If you have any suggestions on where that info should be, feel free to let us know
i.e. where would you have expected it, etc.
Lorenzo Nicora
@nicusX
The endpoint paragraph on the wiki is fine. Clarifying the "socket address" is the subscriber (recipient) machine would have helped
Martin Thompson
@mjpt777
@nicusX I've just added that.
Lorenzo Nicora
@nicusX
Cool
Martin Thompson
@mjpt777
@zaradai Thanks, I've pushed a fix.
Mendel Monteiro-Beckerman
@MendelMonteiro
Hi, has there ever been any interest in being able to set QoS traffic classes on the sockets created by Aeron?
Todd L. Montgomery
@tmontgomery
@MendelMonteiro nothing that anyone has been willing to sponsor development on. But if interested in sponsoring it, we could look into it.
Mendel Monteiro-Beckerman
@MendelMonteiro
@tmontgomery thanks for the reply. I'll get in touch if sponsorship is an option.
William
@ilove7412369_twitter
i look at the stats:
sessionId=-1385188173 streamId=1001 channel=aeron:ipc?term-length=268435456 : pub-pos (sampled):251:1694624000 pub-lmt:251:1694623552
is that when it publish reach the pub-lmt, it will take tons of time for the archive to create new memory mapped file and zero them out causing such 10 s?
any ways to avoid?
William
@ilove7412369_twitter
sorry problem solved
Ivan Zemlyanskiy
@QIvan
hi! a quick question if you don't mind:
should in theory the taggedReplicate work with C Media Driver?
I'm getting a timeout exception on my even basic tests, while with Java MD everything is just fine.
thanks.
Martin Thompson
@mjpt777
This room is not being used to answer Aeron questions. Questions can go to our support channels or Stackoverflow which we may eventually get round to.
This room is being reserved for discussions with public contributors.
Martin Thompson
@mjpt777
We are considering shutting down this room. For now we will keep it open but will no longer be giving out free support.
Ivan Zemlyanskiy
@QIvan
oh, cool! glad to read it! It would be awesome if Aeron tag would become more popular on SO
Martin Thompson
@mjpt777
@QIvan Please stop posting here if it is not related to contributions.
Ivan Zemlyanskiy
@QIvan
ok, sorry. Speaking about contributions, a little feedback about reading with Aeron:
why do we need this errorHandler in TermReader https://github.com/real-logic/aeron/blob/master/aeron-client/src/main/java/io/aeron/logbuffer/TermReader.java#L82 ?
I found it very inconveniet, because when I read with my own FH and I throw an exception, I want to use my own try-catch block around a poll, not the global errorHandler which I provided for Aeron and excpect handle aeron related exceptions.
Martin Thompson
@mjpt777
@QIvan This is really a question and not a contribution. I'll allow grace just this once. Look at the following: https://github.com/real-logic/aeron/blob/master/aeron-client/src/main/java/io/aeron/Aeron.java#L1124
William
@ilove7412369_twitter
Aeron archive replay seems quite slow when remote replicate from say Tokyo to SG. Is it not a right use of that? Any way should be better way to do for a higher throughput?
Martin Thompson
@mjpt777
@ilove7412369_twitter As previous stated we will not be offering free consultancy in the room any longer. This room is reserved for public contributor discussions. If you need support we have a commercial offering.
rinkigoyal
@rinkigoyal

I am trying to identify source stream Id from image unavailable && unavailable events.

Say we have 3 services running in 3 separate JVM && all of communicates via IPC channel.

Service one subscribes on streamId - 101
Service two subscribes on streamId - 102
Service three subscribes on streamId - 103

Service two creates publication for stream 101 && publish few messages

Service three creates publication for stream 101 && publish few messages

Service one receives two image available events with two different session Id. Is there any way to determine whether service two or service three has become available ?

Now service two is stopped && service one receives image unavailable , Is there any way to determine whether service two or service three has become un
available ?

Martin Thompson
@mjpt777
@rinkigoyal We do not offer free support in this room. It is for contributor discussions.
Ghost
@ghost~5fab2f45d73408ce4ff3c0e0
Is there a way for getting the sequence number of a message with Aeron? So if throughout the day I send 1 million messages can I know that I am dealing with say message #42 versus message #2010?
Martin Thompson
@mjpt777
@pieceofchum I'm getting bored of saying we are not offering support in this room. This is for contributor conversations.
Ghost
@ghost~5fab2f45d73408ce4ff3c0e0
Ok sorry I see that in my emails now no worries.
Eduard Silantyev
@eliquinox
Todd L. Montgomery
@tmontgomery
sweet!
hisitepu
@hisitepu
some type in aeron_stat.c, getopt processing -p but in case capturing 'd'. Thanks