mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +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:
@@ -95,10 +95,10 @@ func TestEvent_Validate(t *testing.T) {
|
||||
fields: fields{event: &Event{
|
||||
AggregateType: "user",
|
||||
AggregateVersion: "v1.0.0",
|
||||
EditorService: "management",
|
||||
EditorUser: "hodor",
|
||||
Service: "management",
|
||||
User: "hodor",
|
||||
ResourceOwner: "org",
|
||||
Type: "born",
|
||||
Typ: "born",
|
||||
}},
|
||||
wantErr: true,
|
||||
},
|
||||
@@ -107,10 +107,10 @@ func TestEvent_Validate(t *testing.T) {
|
||||
fields: fields{event: &Event{
|
||||
AggregateID: "hodor",
|
||||
AggregateVersion: "v1.0.0",
|
||||
EditorService: "management",
|
||||
EditorUser: "hodor",
|
||||
Service: "management",
|
||||
User: "hodor",
|
||||
ResourceOwner: "org",
|
||||
Type: "born",
|
||||
Typ: "born",
|
||||
}},
|
||||
wantErr: true,
|
||||
},
|
||||
@@ -119,10 +119,10 @@ func TestEvent_Validate(t *testing.T) {
|
||||
fields: fields{event: &Event{
|
||||
AggregateID: "hodor",
|
||||
AggregateType: "user",
|
||||
EditorService: "management",
|
||||
EditorUser: "hodor",
|
||||
Service: "management",
|
||||
User: "hodor",
|
||||
ResourceOwner: "org",
|
||||
Type: "born",
|
||||
Typ: "born",
|
||||
}},
|
||||
wantErr: true,
|
||||
},
|
||||
@@ -132,9 +132,9 @@ func TestEvent_Validate(t *testing.T) {
|
||||
AggregateID: "hodor",
|
||||
AggregateType: "user",
|
||||
AggregateVersion: "v1.0.0",
|
||||
EditorUser: "hodor",
|
||||
User: "hodor",
|
||||
ResourceOwner: "org",
|
||||
Type: "born",
|
||||
Typ: "born",
|
||||
}},
|
||||
wantErr: true,
|
||||
},
|
||||
@@ -144,9 +144,9 @@ func TestEvent_Validate(t *testing.T) {
|
||||
AggregateID: "hodor",
|
||||
AggregateType: "user",
|
||||
AggregateVersion: "v1.0.0",
|
||||
EditorService: "management",
|
||||
Service: "management",
|
||||
ResourceOwner: "org",
|
||||
Type: "born",
|
||||
Typ: "born",
|
||||
}},
|
||||
wantErr: true,
|
||||
},
|
||||
@@ -156,9 +156,9 @@ func TestEvent_Validate(t *testing.T) {
|
||||
AggregateID: "hodor",
|
||||
AggregateType: "user",
|
||||
AggregateVersion: "v1.0.0",
|
||||
EditorService: "management",
|
||||
EditorUser: "hodor",
|
||||
Type: "born",
|
||||
Service: "management",
|
||||
User: "hodor",
|
||||
Typ: "born",
|
||||
}},
|
||||
wantErr: true,
|
||||
},
|
||||
@@ -168,8 +168,8 @@ func TestEvent_Validate(t *testing.T) {
|
||||
AggregateID: "hodor",
|
||||
AggregateType: "user",
|
||||
AggregateVersion: "v1.0.0",
|
||||
EditorService: "management",
|
||||
EditorUser: "hodor",
|
||||
Service: "management",
|
||||
User: "hodor",
|
||||
ResourceOwner: "org",
|
||||
}},
|
||||
wantErr: true,
|
||||
@@ -180,10 +180,10 @@ func TestEvent_Validate(t *testing.T) {
|
||||
AggregateID: "hodor",
|
||||
AggregateType: "user",
|
||||
AggregateVersion: "v1.0.0",
|
||||
EditorService: "management",
|
||||
EditorUser: "hodor",
|
||||
Service: "management",
|
||||
User: "hodor",
|
||||
ResourceOwner: "org",
|
||||
Type: "born",
|
||||
Typ: "born",
|
||||
}},
|
||||
wantErr: false,
|
||||
},
|
||||
|
Reference in New Issue
Block a user