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

🐛 [firestore-bigquery-export] dataloss when reconfiguring extension #2135

Open
cabljac opened this issue Jul 25, 2024 · 3 comments
Open
Labels
type: bug Something isn't working

Comments

@cabljac
Copy link
Contributor

cabljac commented Jul 25, 2024

Opening this issue to track something raised in the comment section of another issue.

The issue seems to be with the design of the extension/the extensions platform for reconfiguration.

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

See the original comment here

#2133 (comment)

Expected result

The cloud task queue not to have been wiped

Actual result

it gets wiped

@cabljac cabljac added the type: bug Something isn't working label Jul 25, 2024
@cabljac
Copy link
Contributor Author

cabljac commented Jul 26, 2024

Im not sure how we'd resolve this situation within the extension to be honest. We would have to somehow preserve the queued cloud tasks across reconfiguration. Best advice might be not to pause the queue, to minimise data loss.

@cabljac
Copy link
Contributor Author

cabljac commented Jul 26, 2024

ah so there's a workaround I thought of, but it would involve a second extension instance

  1. install new instance of extension to write to another table
  2. reconfigure original extension instance
  3. once the extension is reconfigured and streaming events, uninstall the second instance
  4. run a suitable BQ job to merge tables

@Nushio
Copy link

Nushio commented Jul 26, 2024

Pausing was only meant as an example to quickly replicate. In my original case, I had around 200,000 back-logged documents (because i set the number of documents to sync to 10) and they vanished when I raised it to 100. I didn't pause it but didn't expect it to be gone either.

The second extension would probably be a good alternative, alongside placing a warning/disclaimer somewhere about this (potential) data loss.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants