Storage upload progress is too sparse to be useful

Đang mở
#8,722 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, java
Lĩnh vực
backend, mobile

Hướng nghiên cứu

Start in firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java, especially the cited sections around chunk sizing and progress updates. Trace when progress is emitted for a 48 MB upload and check for related tests in the storage module. Done means large Android uploads report progress often enough to avoid long gaps while preserving correct progress values.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

api: storage
[READ] Step 1: Are you in the right place?
[REQUIRED] Step 2: Describe your environment
  • Android Studio version: Rabbit
  • Firebase Component: Storage
  • Component version: 22.0.1
[REQUIRED] Step 3: Describe the problem

When users upload larger files, progress updates from firebase seem to stop, which causes the user to think the upload is stuck. The reason for this seems to be:

  1. The Android implementation of StorageTask only emits progress when a chunk finishes
  2. The chunk size doubles until it reaches 32mb

So a ~64mb file gets a final update around 32mb, then no further progress updates until the upload finishes. That's not an ideal user experience.

I haven't seen this behavior on iOS, so I assume there progress is based on fixed byte sizes or is time based, rather than the total size of the chunk.

Steps to reproduce:

Upload a 48mb file on Android

Relevant Code:

https://github.com/firebase/firebase-android-sdk/blob/f71ec348f8fe73abe630a7813a94e5636eb81983/firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java#L247-L254

https://github.com/firebase/firebase-android-sdk/blob/f71ec348f8fe73abe630a7813a94e5636eb81983/firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java#L489
https://github.com/firebase/firebase-android-sdk/blob/f71ec348f8fe73abe630a7813a94e5636eb81983/firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java#L60
https://github.com/firebase/firebase-android-sdk/blob/f71ec348f8fe73abe630a7813a94e5636eb81983/firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java#L484
https://github.com/firebase/firebase-android-sdk/blob/f71ec348f8fe73abe630a7813a94e5636eb81983/firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java#L575
https://github.com/firebase/firebase-android-sdk/blob/f71ec348f8fe73abe630a7813a94e5636eb81983/firebase-storage/src/main/java/com/google/firebase/storage/UploadTask.java#L601

Ngôn ngữ chính
Java
Star
2.6k
Fork
733
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
72

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của firebase/firebase-android-sdk

Tất cả issue của firebase/firebase-android-sdk

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.