Skip to content

Commit 273c839

Browse files
Tej SinghAndroid (Google) Code Review
authored andcommitted
Merge "Retry pullfinish with empty payload if call fails" into rvc-dev
2 parents 060eff0 + 2330e9b commit 273c839

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

apex/statsd/framework/java/android/app/StatsManager.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,15 @@ public void onPullAtom(int atomTag, IPullAtomResultReceiver resultReceiver) {
561561
try {
562562
resultReceiver.pullFinished(atomTag, success, parcels);
563563
} catch (RemoteException e) {
564-
Log.w(TAG, "StatsPullResultReceiver failed for tag " + mAtomId);
564+
Log.w(TAG, "StatsPullResultReceiver failed for tag " + mAtomId
565+
+ " due to TransactionTooLarge. Calling pullFinish with no data");
566+
StatsEventParcel[] emptyData = new StatsEventParcel[0];
567+
try {
568+
resultReceiver.pullFinished(atomTag, /*success=*/false, emptyData);
569+
} catch (RemoteException nestedException) {
570+
Log.w(TAG, "StatsPullResultReceiver failed for tag " + mAtomId
571+
+ " with empty payload");
572+
}
565573
}
566574
});
567575
} finally {

0 commit comments

Comments
 (0)