Dev mode for the database operations in backup
Depends on D3268
Differential D3200
[services] Backup - dev mode • karol on Feb 15 2022, 5:18 AM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes
Comment Actions Requesting changes to get an answer to a question. I recall seeing some discussion on Comm about dev mode, and @jimpo suggested a different approach than the one we had been taking previously. I don't recall the details there... can you share that context in this diff, and clarify if you're using the "old" approach or the new one suggested by @jimpo? (@jimpo is out this week, so might be able to clarify this for you unfortunately) Comment Actions This is the old approach, the new one uses some kind of local instance of the cloud. I'm not sure but I might've put this up before we talked about this in the channel. I think we can land this and refactor the dev mode separately https://linear.app/comm/issue/ENG-795/use-local-cloud-instance-for-dev-mode-in-services
Comment Actions
Thanks for clarifying and creating a Linear task to track. It makes sense to land this as-is and follow-up later. However, one concern: you didn't subscribe anybody to the task you created. As discussed last Monday, please always make sure people are subscribed when creating a task. Comment Actions
Oops, sorry, my bad, missed that.
Comment Actions It's great that you found a way to avoid repeated finds! Just one question inline, as after this refactoring it's more noticeable that this code might crash.
Comment Actions Just a question inline
Comment Actions Do we expect this code to get removed then after ENG-795 is implemented? Fine to land for now, just want to be clear. Comment Actions
Yes. I don't think we should pay a lot of attention to this since it's going to be removed anyway pretty soon.
Comment Actions ADDRESS BEFORE LANDING
Okay fair enough, but I still feel we should understand ConcurrentHashMap better. Before landing, can you address the inline question?
Comment Actions Over chat, @karol-bisztyga asked:
Sharing my perspective here so it doesn't get lost. I don't think we should land this diff as-is. I certainly don't think we should abandon it. I think we should do one of the following:
In short: if you need the collection to be threadsafe, then we need to be more confident that it is actually threadsafe. I don't think it currently is. On the other hand, if we don't need the collection to be threadsafe, then there is no reason to be using threadsafe primitives. Would love @jimpo's perspective on this, he understands thread safety better than I do. Comment Actions I think it's much better to abandon this and use a local dynamodb service in the docker-compose like https://hub.docker.com/r/amazon/dynamodb-local or https://github.com/localstack/localstack. It's a much simpler and more maintainable solution. Comment Actions @karol-bisztyga, curious what you think of @jimpo's suggestion. I definitely think that would be preferable, and don't want to waste your time on this now if we're just going to get rid of it soon. The big question for me is how easy it would be to get a local service running... if it just takes a day or so, that's clearly preferable. (PS this is tracked in ENG-795) Comment Actions This was my point all this time, please see https://phabricator.ashoat.com/D3200#86984, the only difference is instead of landing we can abandon. I also mentioned once again here https://phabricator.ashoat.com/D3200#89895 that we'll remove it soon. Comment Actions Cool, I've bumped ENG-795 to the current cycle. This is still the big question for me:
Comment Actions Based on our discussion and Ashoat's final decision(quote from the comm app):
I'm abandoning this one. |