Skip to content
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

Already in batch mode #15

Closed
domsj opened this issue Feb 27, 2015 · 2 comments
Closed

Already in batch mode #15

domsj opened this issue Feb 27, 2015 · 2 comments

Comments

@domsj
Copy link

domsj commented Feb 27, 2015

Hi, should a client ever recieve this message from the server?
https://github.com/Seagate/kinetic-java/blob/master/kinetic-simulator/src/main/java/com/seagate/kinetic/simulator/internal/BatchOperationHandler.java#L80

Or can it be considered an internal error if I do see it?

A look at the code seems to suggest that
https://github.com/Seagate/kinetic-java/blob/master/kinetic-simulator/src/main/java/com/seagate/kinetic/simulator/internal/SimulatorEngine.java#L457
should wait until the current batch is finished such that when the init call in BatchOperationHandler should only be done when no other batch is active, unfortunately it doesn't exactly work like that...

chiaming2000 added a commit that referenced this issue Feb 28, 2015
concurrent batch operations not able to commit. This fix is to address
the issue:

#15
@chiaming2000
Copy link
Contributor

Hi,

Many thanks for the feedbacks. A client should never see the message.
Please consider it an internal error if you do see it.

A preliminary fix was committed to address this issue. Running a simple
verification (5 concurrent threads with a million batch commit for each
thread) did not see any issue raised by the concurrent batch operations.

Thanks.
Chiaming

On Fri, Feb 27, 2015 at 7:34 AM, Jan Doms notifications@github.com wrote:

Hi, should a client ever recieve this message from the server?

https://github.com/Seagate/kinetic-java/blob/master/kinetic-simulator/src/main/java/com/seagate/kinetic/simulator/internal/BatchOperationHandler.java#L80

Or can it be considered an internal error if I do see it?

A look at the code seems to suggest that

https://github.com/Seagate/kinetic-java/blob/master/kinetic-simulator/src/main/java/com/seagate/kinetic/simulator/internal/SimulatorEngine.java#L457
should wait until the current batch is finished such that when the init
call in BatchOperationHandler should only be done when no other batch is
active, unfortunately it doesn't exactly work like that...


Reply to this email directly or view it on GitHub
#15.

@domsj
Copy link
Author

domsj commented Feb 28, 2015

Thanks for the quick response and preliminary fix Chiaming!

@domsj domsj closed this as completed Mar 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants