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

Support dependencies v2 in c* #59

Merged
merged 1 commit into from
Feb 21, 2019

Conversation

pavolloffay
Copy link
Member

Resolves #58

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pavolloffay
Copy link
Member Author

@black-adder could you please review this? I will merge it in order to fix CI in the operator.

@pavolloffay pavolloffay merged commit 77d9f43 into jaegertracing:master Feb 21, 2019
return zonedDateTime.toInstant().toEpochMilli();
}

public Long getTsBucket() {
Copy link
Member Author

Choose a reason for hiding this comment

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

@black-adder is this ok?

Choose a reason for hiding this comment

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

we should truncate the time as well, ala .toInstant().truncatedTo(ChronoUnit.DAYS).toEpochMilli()

@@ -66,6 +66,13 @@ public boolean equals(Object o) {
&& this.callCount == that.callCount;
}

public String getSource() {
return "jaeger";
Copy link
Member Author

Choose a reason for hiding this comment

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

@black-adder is this ok?

Choose a reason for hiding this comment

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

yup

return zonedDateTime.toInstant().toEpochMilli();
}

public Long getTsBucket() {

Choose a reason for hiding this comment

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

we should truncate the time as well, ala .toInstant().truncatedTo(ChronoUnit.DAYS).toEpochMilli()

@@ -66,6 +66,13 @@ public boolean equals(Object o) {
&& this.callCount == that.callCount;
}

public String getSource() {
return "jaeger";

Choose a reason for hiding this comment

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

yup

}

public void setSource(String source) {
}

Choose a reason for hiding this comment

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

is this a no-op on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep

.saveToCassandra();
String table = dependenciesTable(sc);
log.info("Storing dependencies into {}", table);
if (table == "dependencies_v2") {
Copy link

Choose a reason for hiding this comment

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

I think using equals() is better.
use == to compare strings, in this case, it works but makes confusing.

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.

3 participants