New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bug in writing log file #1088
Comments
Hi Samira, The records in the file are indeed not sorted and one shouldn't assume they are. Regarding Real time DataWriters such as Do you have a better design to propose? Cheers, Stéphane |
I think you can assign a unique sequence number to each action as an attribute of that action in the scenario. Then, in the DataWriter, keep a buffer of current received reports and instead of appending any upcoming message to the current content of reports, use the sequence number of the action and insert the upcoming message in the right place in the content of reports. The sequence number can be initialized to zero in the start action and transferred to the next action in the execution. The next action assigns its sequence number by increasing the sequence number it received from the previous action. Cheers, |
Damn, I was hoping you come up with a funky actor based design I couldn't find out myself... ;) The current strategy is to defer this tracking/buffering and perform it offline during reports generation. We might someday re-implement some DataWriters this way if we realize that the current implementation is indeed a problem (which I'm 100% sure it's not for the FileDataWriter/FileDataReader couple). Anyway, DataWriters are a pluggable API, so one can write his own if he wants a different behavior. Time will tell. |
I just posted an issue (issue #1116) related to this. |
Hi,
It seems that there is a bug in the program that causes the result of running a scenario which is written in the log file to be incorrect. For example, in the log file the
Start
action may appear afterEnd
action or some other actions in the log file. The reason is that the messages sent from actions to the data writer may be received in different orders since they are sent from different actors. In Akka, there is no guarantee that for example the messages sent from actora
andb
to actorc
to be received in some specific order. Therefore, there is not guarantee that the message sent fromUserStart
to be received beforeEndUser
or other actions between start and end actions in the scenario.The text was updated successfully, but these errors were encountered: