DBZ-6998: Align min, max of Histogram/Statistics#91
DBZ-6998: Align min, max of Histogram/Statistics#91nancyxu123 merged 6 commits intodebezium:mainfrom
Conversation
Motivation: Users experienced inconvenience because the statistics-related class was implemented separately. So that we abstracted common methods. Modification: - Fix(Statistics): Add set method Result: User experience will be improved by common methods. Co-authored-by: Bue-von-hon <dkssudvn2@gmail.com> Co-authored-by: chungeun-choi <cucuridas@gmail.com>
|
Welcome as a new contributor to Debezium, @dongwook-chan. Reviewers, please add missing author name(s) and alias name(s) to the COPYRIGHT.txt and Aliases.txt respectively. |
|
@Bue-von-hon No worries. The files in question are located in the main repository. |
Co-authored-by: sean-k1 <uhs2000@naver.com> Co-authored-by: jongwony <lastone9182@gmail.com>
2d9b068 to
3e3c598
Compare
|
@jpechane |
Co-authored-by: cjho0316 <cjho03160316@gmail.com>
|
@nancyxu123 Hi, can you please take a look? What freedom do we have in playing with metrics? |
|
@nancyxu123 PTAL |
|
Thanks for the PR! Will take a look this week, thanks! |
Overall LGTM. (1) What motivated the need for this PR? (2) Can we add metrics validation into one of the integration tests? For example, any file that ends with IT.java: https://github.com/debezium/debezium-connector-spanner/blob/main/src/test/java/io/debezium/connector/spanner/BasicSanityCheckIT.java |
|
@nancyxu123 (1) (2) assertThat(mBeanServer.isRegistered(objectName, "totalLatency")).isEqualTo(true);
assertThat(mBeanServer.isRegistered(objectName, "connectorLatency")).isEqualTo(true);
// and same for the other metrics as well |
Sounds good, thanks for the explanation! |
jpechane
left a comment
There was a problem hiding this comment.
@nancyxu123 Feel free to merge when you are satisifed with tests.
|
@nancyxu123 |
|
@jpechane To resolve the issue, I tried running integration tests.
But the test failed and especially for running Could I get some advice on how to run integration tests? |
|
Hi, I'd recommend to re-build the core repo locally (with clean) and then do the same with Spanner repo. |
|
@jpechane To be honest, I'm really not sure what I'm doing wrong here at this point. |
|
Do you use Mac or Linux? |
|
@jpechane we use mac |
|
That's probably the explanantion. I really don't know if the simulator image is available for arm too. |
Motivation:
Users experienced inconvenience because the statistics-related class was implemented separately. So that we abstracted common methods.
Modification:
Result:
User experience will be improved by common methods.