Skip to content

Commit 59db590

Browse files
authored
Increase number of retries before deleting events (#1708)
The current retry logic will delete an event after 10 retries, which will only take ~17 minutes for high priority events. If a device is on a bad network for that period of time, we could relatively easily lose these events. Increasing this to 16 will extend this timeframe to ~18 hours, giving more opportunity for a retry to occur when the device has a better network connection.
1 parent 08507fa commit 59db590

File tree

1 file changed

+1
-1
lines changed
  • transport/transport-runtime/src/main/java/com/google/android/datatransport/runtime/scheduling/persistence

1 file changed

+1
-1
lines changed

transport/transport-runtime/src/main/java/com/google/android/datatransport/runtime/scheduling/persistence/SQLiteEventStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class SQLiteEventStore implements EventStore, SynchronizationGuard {
5454

5555
private static final String LOG_TAG = "SQLiteEventStore";
5656

57-
static final int MAX_RETRIES = 10;
57+
static final int MAX_RETRIES = 16;
5858

5959
private static final int LOCK_RETRY_BACK_OFF_MILLIS = 50;
6060
private static final Encoding PROTOBUF_ENCODING = Encoding.of("proto");

0 commit comments

Comments
 (0)