Comments (17)
I believe if scavenge is already running it just doesn't reply. Makes more
sense to reply as you say. I will take a look at that.
On Sun, Apr 6, 2014 at 5:27 PM, Yaroslav Klymko [email protected]:
Hi, when I send two ScavengeDatabase at the same time, I'm receiving
reply on the first one only. Correlation ids are different.Expected behaviour: receive Scavenge InProgress as reply to the second
message.Reply to this email directly or view it on GitHubhttps://github.com//issues/108
.
Le doute n'est pas une condition agréable, mais la certitude est absurde.
from eventstore.
OK so I have been looking through this. It would appear that it will actually reply it will just queue the second request and run it after the first.
from eventstore.
Hmmm strange, I can seen a totally different behaviour:
I'm receiving the first one, and then I'm not receiving the second one, tested with 10 seconds timeout.
from eventstore.
How long does it take to handle the first one?
On Mon, Apr 7, 2014 at 4:52 PM, Yaroslav Klymko [email protected]:
Hmmm strange, I can seen a totally different behaviour:
I'm receiving the first one, and then I'm not receiving the second one,
tested with 10 seconds timeout.Reply to this email directly or view it on GitHubhttps://github.com//issues/108#issuecomment-39731868
.
Le doute n'est pas une condition agréable, mais la certitude est absurde.
from eventstore.
The relevant handler is here:
On Mon, Apr 7, 2014 at 4:53 PM, Greg Young [email protected] wrote:
How long does it take to handle the first one?
On Mon, Apr 7, 2014 at 4:52 PM, Yaroslav Klymko [email protected]:
Hmmm strange, I can seen a totally different behaviour:
I'm receiving the first one, and then I'm not receiving the second one,
tested with 10 seconds timeout.Reply to this email directly or view it on GitHubhttps://github.com//issues/108#issuecomment-39731868
.Le doute n'est pas une condition agréable, mais la certitude est absurde.
Le doute n'est pas une condition agréable, mais la certitude est absurde.
from eventstore.
This is a full log
ScavengeDatabase,1c66d2d8-d710-4e22-b4d3-df2f9864884e,Some(UserCredentials(admin,***)))
ScavengeDatabase,1ab9a7d7-c737-4cbb-a9c2-a838cd460c13,Some(UserCredentials(admin,***)))
ScavengeDatabaseCompleted(0 milliseconds,0)),1c66d2d8-d710-4e22-b4d3-df2f9864884e)
from eventstore.
What if anything is in the EventStore log?
On Mon, Apr 7, 2014 at 5:02 PM, Yaroslav Klymko [email protected]:
this is my testhttps://github.com/EventStore/EventStore.JVM/blob/3.0.0rc2/src/test/scala/eventstore/ScavengeITest.scala
This is a full log
ScavengeDatabase,1c66d2d8-d710-4e22-b4d3-df2f9864884e,Some(UserCredentials(admin,_)))
ScavengeDatabase,1ab9a7d7-c737-4cbb-a9c2-a838cd460c13,Some(UserCredentials(admin,_)))
ScavengeDatabaseCompleted(0 milliseconds,0)),1c66d2d8-d710-4e22-b4d3-df2f9864884e)Reply to this email directly or view it on GitHubhttps://github.com//issues/108#issuecomment-39733130
.
Le doute n'est pas une condition agréable, mais la certitude est absurde.
from eventstore.
Hm...
[11910,15,14:05:42.229] External TCP connection accepted: [Normal, 127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}].
[11910,15,14:05:42.298] SCAVENGING: started scavenging of DB. Chunks count at start: 1. Options: alwaysKeepScavenged = False, mergeChunks = True
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: initial pass completed in 00:00:00.0001785.
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: merge pass #1 completed in 00:00:00.0000420. Nothing merged.
[11910,15,14:05:42.298] SCAVENGING: total time taken: 00:00:00.0003116, total space saved: 0.
[11910,06,14:05:42.358] ES TcpConnection closed [14:05:42.358: N127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}]:
Received bytes: 37, Sent bytes: 28
Send calls: 1, callbacks: 1
Receive calls: 2, callbacks: 2
Close reason: [ConnectionReset] Socket receive error
from eventstore.
Any follow up on this? Could the connection be getting closed before second finishes etc?
Sent from my iPhone
On 07 Apr 2014, at 15:07, Yaroslav Klymko [email protected] wrote:
Hm...
[11910,15,14:05:42.229] External TCP connection accepted: [Normal, 127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}].
[11910,15,14:05:42.298] SCAVENGING: started scavenging of DB. Chunks count at start: 1. Options: alwaysKeepScavenged = False, mergeChunks = True
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: initial pass completed in 00:00:00.0001785.
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: merge pass #1 completed in 00:00:00.0000420. Nothing merged.
[11910,15,14:05:42.298] SCAVENGING: total time taken: 00:00:00.0003116, total space saved: 0.
[11910,06,14:05:42.358] ES TcpConnection closed [14:05:42.358: N127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}]:
Received bytes: 37, Sent bytes: 28
Send calls: 1, callbacks: 1
Receive calls: 2, callbacks: 2
Close reason: [ConnectionReset] Socket receive error
—
Reply to this email directly or view it on GitHub.
from eventstore.
Nope, connection closed after timeout error.
But I'll double check this evening
from eventstore.
Hmm because it looks like a socket error. I can add some debugging code if you want re:socket codes etc
Sent from my iPhone
On 08 Apr 2014, at 14:00, Yaroslav Klymko [email protected] wrote:
Nope, connection closed after timeout error.
—
Reply to this email directly or view it on GitHub.
from eventstore.
What's the size in bytes of your scavenge command and the event?
Sent from my iPhone
On 08 Apr 2014, at 14:00, Yaroslav Klymko [email protected] wrote:
Nope, connection closed after timeout error.
—
Reply to this email directly or view it on GitHub.
from eventstore.
This can not be a socket error, as I can receive many HeartbeatResponses
Scavenge - MarkerByte + 0bytes
from eventstore.
No I think the error is from after the test runs
On Tue, Apr 8, 2014 at 4:34 PM, Yaroslav Klymko [email protected]:
This can not be a socket error, as I can receive many "HeartbeatResponses"
Scavange - MarkerByte + 0bytesReply to this email directly or view it on GitHubhttps://github.com//issues/108#issuecomment-39847754
.
Le doute n'est pas une condition agréable, mais la certitude est absurde.
from eventstore.
btw: in your log:
[11910,15,14:05:42.229] External TCP connection accepted: [Normal, 127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}].
[11910,15,14:05:42.298] SCAVENGING: started scavenging of DB. Chunks count at start: 1. Options: alwaysKeepScavenged = False, mergeChunks = True
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: initial pass completed in 00:00:00.0001785.
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: merge pass #1 completed in 00:00:00.0000420. Nothing merged.
[11910,15,14:05:42.298] SCAVENGING: total time taken: 00:00:00.0003116, total space saved: 0.
[11910,06,14:05:42.358] ES TcpConnection closed [14:05:42.358: N127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}]:
Received bytes: 37, Sent bytes: 28
The close is 60ms after the scavenge finshed (the whole connection is only held open for +- 200ms is this what you would expect given your code?
from eventstore.
There should be
else
{
message.Envelope.Reply(new )
}
Best regards,
Andrii Nakryiko
On Tue, Apr 8, 2014 at 7:16 AM, Greg Young [email protected] wrote:
btw: in your log:
[11910,15,14:05:42.229] External TCP connection accepted: [Normal,
127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}].
[11910,15,14:05:42.298] SCAVENGING: started scavenging of DB. Chunks count
at start: 1. Options: alwaysKeepScavenged = False, mergeChunks = True
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to
non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: initial pass completed in
00:00:00.0001785.
[11910,15,14:05:42.298] SCAVENGING: stopping scavenging pass due to
non-completed TFChunk for position 0.
[11910,15,14:05:42.298] SCAVENGING: merge pass #1https://github.com/EventStore/EventStore/issues/1completed in 00:00:00.0000420. Nothing merged.
[11910,15,14:05:42.298] SCAVENGING: total time taken: 00:00:00.0003116,
total space saved: 0.
[11910,06,14:05:42.358] ES TcpConnection closed [14:05:42.358:
N127.0.0.1:61147, L127.0.0.1:1113, {4c2e58aa-b0a8-432e-b385-e0dc0a7183b4}]:
Received bytes: 37, Sent bytes: 28The close is 60ms after the scavenge finshed (the whole connection is only
held open for +- 200ms is this what you would expect given your code?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/108#issuecomment-39852790
.
from eventstore.
Resolved sending pull request
from eventstore.
Related Issues (20)
- Expose OSS binaries checksums in Download section
- System.NullReferenceException for $all subscription filtering by StreamID prefix HOT 5
- Interop+Crypto+OpenSslCryptographicException: error:10000080:BIO routines::no such file HOT 3
- Menu item duplicate on site HOT 3
- Using third party issued certificates HOT 1
- Error in StorageChaser: "Prefix/suffix length inconsistency: prefix length(615) != suffix length (0). Something is seriously wrong in chunk X" HOT 1
- ObjectDisposedException: Cannot access a disposed object. HOT 1
- Events missing when from $all but present in stream
- Multistream projections don't always start properly when maxAge is set on the input stream
- Enabling projections without running them HOT 17
- Projection randomly skip event with invalid JSON metadata
- Configurable port for metrics endpoint HOT 5
- Support for Any Custom Content-Type HOT 1
- Docs/terminology for expected revision HOT 7
- Health/live HTTP endpoint hangs when projections are enabled
- Default admin password cannot be changed HOT 1
- Handling deletion of parked message stream
- Frequent leader changes when there is a high volume of operations
- Outdated Docker run command on Docker image instructions
- Projection configuration parameters take precedence over global projection configuration parameters (such as Projection Execution Timeout)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventstore.