-
Notifications
You must be signed in to change notification settings - Fork 15
Latest gradle-baseline #6021
Latest gradle-baseline #6021
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ public QueryWeight weighSuccess(T result, long timeTakenNanos) { | |
@Override | ||
public QueryWeight weighFailure(Exception error, long timeTakenNanos) { | ||
return ImmutableQueryWeight.builder() | ||
.numBytes(ESTIMATED_NUM_BYTES_PER_ROW * numberOfQueriedRows) | ||
.numBytes(ESTIMATED_NUM_BYTES_PER_ROW * ((long) numberOfQueriedRows)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From |
||
.timeTakenNanos(timeTakenNanos) | ||
.numDistinctRows(1) | ||
.build(); | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -94,7 +94,7 @@ public void queriesGaugesAgainAfterTimeInterval() { | |||||
|
||||||
value.set(8); | ||||||
tick.addAndGet(DistributionOutlierController.REFRESH_INTERVAL.toNanos() + 1); | ||||||
assertThat(defaultController.getMeanGauge().getValue()).isEqualTo(8L); | ||||||
assertThat(defaultController.getMeanGauge().getValue()).isEqualTo((double) 8L); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
this is fine, and I don't expect us to fix this to get this merged, though this should really be More "the existing tests were naughty" rather than anything bad about this change |
||||||
} | ||||||
|
||||||
@Test | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,7 +263,7 @@ private void flushTask() { | |
} | ||
} catch (Throwable t) { | ||
if (!Thread.interrupted()) { | ||
log.warn("Error occurred while flushing sweep stats: {}", UnsafeArg.of("throwable", t), t); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ugh. lol |
||
log.warn("Error occurred while flushing sweep stats", t); | ||
} | ||
} | ||
} | ||
|
@@ -283,8 +283,7 @@ private void flushWrites(Multiset<TableReference> writes, Set<TableReference> cl | |
"Flushing stats for {} writes and {} clears", | ||
SafeArg.of("writes", writes.size()), | ||
SafeArg.of("clears", clears.size())); | ||
log.trace("Flushing writes: {}", UnsafeArg.of("writes", writes)); | ||
log.trace("Flushing clears: {}", UnsafeArg.of("clears", clears)); | ||
log.trace("Flushing writes: {} and clears: ", UnsafeArg.of("writes", writes), UnsafeArg.of("clears", clears)); | ||
try { | ||
Set<TableReference> tableNames = Sets.difference(writes.elementSet(), clears); | ||
Collection<byte[]> rows = Collections2.transform( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -323,6 +323,7 @@ public Namespace getNamespace() { | |
* | ||
* @param srcDir root source directory where code generation is performed. | ||
*/ | ||
@SuppressWarnings("DangerousIdentityKey") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
public void renderTables(File srcDir) throws IOException { | ||
com.palantir.logsafe.Preconditions.checkNotNull(name, "schema name not set"); | ||
com.palantir.logsafe.Preconditions.checkNotNull(packageName, "package name not set"); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
import com.codahale.metrics.SlidingTimeWindowArrayReservoir; | ||
import com.codahale.metrics.Timer; | ||
import com.palantir.logsafe.Preconditions; | ||
import com.palantir.logsafe.UnsafeArg; | ||
import com.palantir.logsafe.logger.SafeLogger; | ||
import com.palantir.logsafe.logger.SafeLoggerFactory; | ||
import com.palantir.tritium.event.AbstractInvocationEventHandler; | ||
|
@@ -72,10 +71,7 @@ public void onSuccess(@Nullable InvocationContext context, @Nullable Object resu | |
public void onFailure(@Nullable InvocationContext context, @Nonnull Throwable cause) { | ||
markGlobalFailure(); | ||
if (context == null) { | ||
log.debug( | ||
"Encountered null metric context likely due to exception in preInvocation: {}", | ||
UnsafeArg.of("cause", cause), | ||
cause); | ||
log.debug("Encountered null metric context likely due to exception in preInvocation", cause); | ||
Comment on lines
-75
to
+74
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DRY: Logging the cause as a throwable provides everything that cause.toString does, and more! |
||
return; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,3 @@ ext.libVersions = | |
ant: '1.9.4', | ||
postgresql: '42.3.3' | ||
] | ||
|
||
javaVersions { | ||
libraryTarget = 11 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From
./gradlew classes testClasses -PerrorProneApply=LongDoubleConversion