-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove cassandra queries to the user_keys_hashed table, as they are n…
…ever read anymore since 'onboarding' / auto-connect was removed in #1005
- Loading branch information
Showing
4 changed files
with
51 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove cassandra queries to the user_keys_hashed table, as they are never read anymore since 'onboarding' / auto-connect was removed in https://github.com/wireapp/wire-server/pull/1005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{-# LANGUAGE QuasiQuotes #-} | ||
|
||
-- This file is part of the Wire Server implementation. | ||
-- | ||
-- Copyright (C) 2022 Wire Swiss GmbH <opensource@wire.com> | ||
-- | ||
-- This program is free software: you can redistribute it and/or modify it under | ||
-- the terms of the GNU Affero General Public License as published by the Free | ||
-- Software Foundation, either version 3 of the License, or (at your option) any | ||
-- later version. | ||
-- | ||
-- This program is distributed in the hope that it will be useful, but WITHOUT | ||
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
-- FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
-- details. | ||
-- | ||
-- You should have received a copy of the GNU Affero General Public License along | ||
-- with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
module V_FUTUREWORK | ||
( migration, | ||
) | ||
where | ||
|
||
import Cassandra.Schema | ||
import Imports | ||
import Text.RawString.QQ | ||
|
||
-- user_keys_hashed usage was removed in https://github.com/wireapp/wire-server/pull/2902 | ||
-- | ||
-- However, it's dangerous to remove a cassandra table together with the usage, as | ||
-- during deployment, there is a time window where the schema migration has run, but the | ||
-- old code still serves traffic, which then leads to 5xxs and user-observable errors. | ||
-- Therefore the policy is to wait a reasonable amount of time (6 months) to allow all | ||
-- installations to upgrade before removing the database tables. See also | ||
-- backwards-incompatbile schema migration docs in | ||
-- https://docs.wire.com/developer/developer/cassandra-interaction.html?highlight=backwards+incompatbile#backwards-incompatible-schema-changes | ||
-- | ||
-- FUTUREWORK: uncomment the code below after July 2023, rename this module with a version number, and | ||
-- integrate it inside Main.hs and App.hs | ||
migration :: Migration | ||
migration = undefined | ||
-- Migration FUTUREWORK_NUMBER "Drop deprecated user_keys_hashed table" $ do | ||
-- schema' | ||
-- [r| | ||
-- DROP TABLE IF EXISTS user_keys_hashed | ||
-- |] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters