zitadel/internal
Tim Möhlmann c0e45b63d8
fix: reset the call timestamp after a bulk trigger (#6080)
* reproduce #5808

Add an integration test that imports and gets N amount of human users.
- With N set to 1-10 the operation seems to succeed always
- With N set to 100 the operation seems to fail between 1 and 7 times.

* fix merge issue

* fix: reset the call timestamp after a bulk trigger

With the use of `AS OF SYSTEM TIME` in queries,
there was a change for the query package not
finding the latest projection verson after
a bulk trigger.
If events where processed in the bulk trigger,
the resulting row timestamp would be after the call
start timestamp.
This sometimes resulted in consistency issues when
Set and Get API methods are called in short succession.
For example a Import and Get user could sometimes result in a Not Found
error.

Although the issue was reported for the Management API user import,
it is likely this bug contributed to the flaky integration and e2e tests.

Fixes #5808

* trigger bulk action in GetSession

* don't use the new context in handler schedule

* disable reproduction test

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2023-07-07 08:15:05 +00:00
..
actions fix: map metadata correctly in actions (#5526) 2023-03-23 14:28:53 +01:00
admin/repository chore: merge (#5773) 2023-04-28 14:56:51 +00:00
api fix: reset the call timestamp after a bulk trigger (#6080) 2023-07-07 08:15:05 +00:00
auth/repository fix(login): ensure auth request information is up-to-date in external user check (#6060) 2023-06-21 05:00:03 +00:00
auth_request/repository perf: query data AS OF SYSTEM TIME (#5231) 2023-02-27 22:36:43 +01:00
authz chore: merge (#5773) 2023-04-28 14:56:51 +00:00
cache chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
command feat: push telemetry (#6027) 2023-07-06 08:38:13 +02:00
config feat(saml): implementation of saml for ZITADEL v2 (#3618) 2022-09-12 18:18:08 +02:00
crypto feat: session checks with intent (#6031) 2023-06-21 14:06:18 +00:00
database fix(database): allow postgres sslmode=require without root cert (#4972) 2023-05-23 14:29:13 +00:00
domain fix: provide domain in session, passkey and u2f (#6097) 2023-06-27 14:36:07 +02:00
errors feat: add quotas (#4779) 2023-02-15 02:52:11 +01:00
eventstore fix: reset the call timestamp after a bulk trigger (#6080) 2023-07-07 08:15:05 +00:00
form chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
i18n fix(login): use label policy settings for favicon, translate titles (#4641) 2022-11-07 08:55:12 +00:00
iam feat: add Help/Support e-mail for instance/org (#5445) 2023-03-28 21:36:52 +02:00
id feat(api): new session service (#5801) 2023-05-05 15:34:53 +00:00
idp feat: v2alpha user service idp endpoints (#5879) 2023-05-24 18:29:58 +00:00
integration feat: push telemetry (#6027) 2023-07-06 08:38:13 +02:00
logstore fix: use fixed active instances duration (#5567) 2023-03-30 13:01:27 +02:00
migration feat(cli): add setup cleanup sub command (#5770) 2023-04-28 11:55:35 +00:00
notification feat: improve milestone format (#6150) 2023-07-06 19:31:08 +02:00
org fix: use current sequence for refetching of events (#5772) 2023-04-28 16:28:13 +02:00
project fix: use current sequence for refetching of events (#5772) 2023-04-28 16:28:13 +02:00
proto chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
protoc refactor: use new protoc plugin for api v2 (#5798) 2023-05-04 08:50:19 +00:00
qrcode docs(legal): Updated agreements and policies v2 (#3823) 2022-06-15 08:30:58 +02:00
query fix: reset the call timestamp after a bulk trigger (#6080) 2023-07-07 08:15:05 +00:00
renderer chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
repository feat: push telemetry (#6027) 2023-07-06 08:38:13 +02:00
static feat: session checks with intent (#6031) 2023-06-21 14:06:18 +00:00
statik feat: translate error messages (#254) 2020-06-22 13:51:44 +02:00
telemetry fix: use singleton meter provider (#5725) 2023-04-25 18:15:32 +00:00
test feat: protos refactoring 2021-03-09 10:30:11 +01:00
user fix: make user creation errors helpful (#5382) 2023-03-14 19:20:38 +00:00
view feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
webauthn fix: provide domain in session, passkey and u2f (#6097) 2023-06-27 14:36:07 +02:00