Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Aug 10, 2022

Fixes #444.

@adutra adutra added this to the 1.10.0 milestone Aug 10, 2022
@adutra adutra requested a review from weideng1 August 10, 2022 08:52
statements
.transform(this::executeStatements)
.transform(queryWarningsHandler)
.transform(failedWritesMonitor)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the root cause of the bug: the monitor that increments the records/failed metric wasn't being invoked here, and so failed writes weren't being accounted for.

assertThat(logs.getAllMessagesAsString())
.contains("completed with 11000 errors")
.contains("Records: total: 100,000, successful: 90,000, failed: 10,000")
.contains("Records: total: 100,000, successful: 89,000, failed: 11,000")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bug report unveiled a flaw in this existing assertion.

@weideng1
Copy link
Collaborator

I've now tested the new binary built from this branch, and can see console reporter correctly showing the number of failed operations. LGTM

@adutra adutra merged commit 71bf849 into datastax:1.x Aug 12, 2022
@adutra adutra deleted the console-reporter-bug branch August 12, 2022 10:14
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

Successfully merging this pull request may close these issues.

Display bug in console metrics reporter for the number of failed operations

2 participants