mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 02:58:11 +00:00
feat(eventstore): increase parallel write capabilities (#5940)
This implementation increases parallel write capabilities of the eventstore. Please have a look at the technical advisories: [05](https://zitadel.com/docs/support/advisory/a10005) and [06](https://zitadel.com/docs/support/advisory/a10006). The implementation of eventstore.push is rewritten and stored events are migrated to a new table `eventstore.events2`. If you are using cockroach: make sure that the database user of ZITADEL has `VIEWACTIVITY` grant. This is used to query events.
This commit is contained in:
@@ -104,7 +104,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
uint64(20211202),
|
||||
"user-id",
|
||||
time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
database.StringArray{"openid"},
|
||||
database.TextArray[string]{"openid"},
|
||||
},
|
||||
),
|
||||
},
|
||||
@@ -116,7 +116,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
Sequence: 20211202,
|
||||
UserID: "user-id",
|
||||
Expiration: time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
Scopes: database.StringArray{"openid"},
|
||||
Scopes: database.TextArray[string]{"openid"},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -164,7 +164,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
uint64(20211202),
|
||||
"user-id",
|
||||
time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
database.StringArray{"openid"},
|
||||
database.TextArray[string]{"openid"},
|
||||
},
|
||||
},
|
||||
),
|
||||
@@ -182,7 +182,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
Sequence: 20211202,
|
||||
UserID: "user-id",
|
||||
Expiration: time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
Scopes: database.StringArray{"openid"},
|
||||
Scopes: database.TextArray[string]{"openid"},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -203,7 +203,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
uint64(20211202),
|
||||
"user-id",
|
||||
time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
database.StringArray{"openid"},
|
||||
database.TextArray[string]{"openid"},
|
||||
},
|
||||
{
|
||||
"token-id2",
|
||||
@@ -213,7 +213,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
uint64(20211202),
|
||||
"user-id",
|
||||
time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
database.StringArray{"openid"},
|
||||
database.TextArray[string]{"openid"},
|
||||
},
|
||||
},
|
||||
),
|
||||
@@ -231,7 +231,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
Sequence: 20211202,
|
||||
UserID: "user-id",
|
||||
Expiration: time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
Scopes: database.StringArray{"openid"},
|
||||
Scopes: database.TextArray[string]{"openid"},
|
||||
},
|
||||
{
|
||||
ID: "token-id2",
|
||||
@@ -241,7 +241,7 @@ func Test_PersonalAccessTokenPrepares(t *testing.T) {
|
||||
Sequence: 20211202,
|
||||
UserID: "user-id",
|
||||
Expiration: time.Date(9999, 12, 31, 23, 59, 59, 0, time.UTC),
|
||||
Scopes: database.StringArray{"openid"},
|
||||
Scopes: database.TextArray[string]{"openid"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user