You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "arjunashok (via GitHub)" <gi...@apache.org> on 2025/02/04 03:45:44 UTC
[PR] CASSSIDECAR-196 Fixes StreamStatsIntegrationTest flaky test [cassandra-sidecar]
arjunashok opened a new pull request, #185:
URL: https://github.com/apache/cassandra-sidecar/pull/185
Test failure logs indicate failure in validating the received data.
Since the validations for matching files received and bytes received (with those transmitted) are stringent and out of scope for this feature, the changes here are to -
1) remove checks for "all files received" and "all bytes received".
2) bump-up the time the assertion loop takes until a success from 10s to 15s, to allow for more polls before giving up.
```
java.lang.AssertionError:
Expecting AtomicBoolean(false) to have value:
true
but did not.
at org.apache.cassandra.sidecar.routes.StreamStatsIntegrationTest.lambda$streamStatsTest$2(StreamStatsIntegrationTest.java:88)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSSIDECAR-196 Fixes StreamStatsIntegrationTest flaky test [cassandra-sidecar]
Posted by "yifan-c (via GitHub)" <gi...@apache.org>.
yifan-c commented on code in PR #185:
URL: https://github.com/apache/cassandra-sidecar/pull/185#discussion_r1942002650
##########
server/src/test/integration/org/apache/cassandra/sidecar/routes/StreamStatsIntegrationTest.java:
##########
@@ -123,11 +123,9 @@ void assertStreamStatsResponseOK(HttpResponse<Buffer> response, AtomicBoolean ha
if (streamProgress.totalFilesToReceive() > 0)
{
hasStats.set(true);
- if (streamProgress.totalFilesToReceive() == streamProgress.totalFilesReceived() &&
- streamProgress.totalFilesReceived() > 0)
Review Comment:
Talked offline. It is a timing issue. When client making the request, the stream has just finished, cassandra responds with `totalFilesReceived == 0`, which violates the second condition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSSIDECAR-196 Fixes StreamStatsIntegrationTest flaky test [cassandra-sidecar]
Posted by "yifan-c (via GitHub)" <gi...@apache.org>.
yifan-c merged PR #185:
URL: https://github.com/apache/cassandra-sidecar/pull/185
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSSIDECAR-196 Fixes StreamStatsIntegrationTest flaky test [cassandra-sidecar]
Posted by "yifan-c (via GitHub)" <gi...@apache.org>.
yifan-c commented on code in PR #185:
URL: https://github.com/apache/cassandra-sidecar/pull/185#discussion_r1941744270
##########
server/src/test/integration/org/apache/cassandra/sidecar/routes/StreamStatsIntegrationTest.java:
##########
@@ -123,11 +123,9 @@ void assertStreamStatsResponseOK(HttpResponse<Buffer> response, AtomicBoolean ha
if (streamProgress.totalFilesToReceive() > 0)
{
hasStats.set(true);
- if (streamProgress.totalFilesToReceive() == streamProgress.totalFilesReceived() &&
- streamProgress.totalFilesReceived() > 0)
Review Comment:
Is there a bug in cassandra that files-to-receive does not match files-received?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSSIDECAR-196 Fixes StreamStatsIntegrationTest flaky test [cassandra-sidecar]
Posted by "arjunashok (via GitHub)" <gi...@apache.org>.
arjunashok commented on code in PR #185:
URL: https://github.com/apache/cassandra-sidecar/pull/185#discussion_r1942003135
##########
server/src/test/integration/org/apache/cassandra/sidecar/routes/StreamStatsIntegrationTest.java:
##########
@@ -123,11 +123,9 @@ void assertStreamStatsResponseOK(HttpResponse<Buffer> response, AtomicBoolean ha
if (streamProgress.totalFilesToReceive() > 0)
{
hasStats.set(true);
- if (streamProgress.totalFilesToReceive() == streamProgress.totalFilesReceived() &&
- streamProgress.totalFilesReceived() > 0)
Review Comment:
As discussed offline, this is not a bug in Cassandra, but the bytes/files metrics reset to 0 once the session is completed. The failure is because the files received is 0 at this point, so it's purely a timing issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSSIDECAR-196 Fixes StreamStatsIntegrationTest flaky test [cassandra-sidecar]
Posted by "yifan-c (via GitHub)" <gi...@apache.org>.
yifan-c commented on code in PR #185:
URL: https://github.com/apache/cassandra-sidecar/pull/185#discussion_r1942002650
##########
server/src/test/integration/org/apache/cassandra/sidecar/routes/StreamStatsIntegrationTest.java:
##########
@@ -123,11 +123,9 @@ void assertStreamStatsResponseOK(HttpResponse<Buffer> response, AtomicBoolean ha
if (streamProgress.totalFilesToReceive() > 0)
{
hasStats.set(true);
- if (streamProgress.totalFilesToReceive() == streamProgress.totalFilesReceived() &&
- streamProgress.totalFilesReceived() > 0)
Review Comment:
Talked offline. It is a timing issue. When client making the request, the stream has just finished, cassandra will response with `totalFilesReceived == 0`, which violates the second condition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org