You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
In spite of the fact `FetchExistingYbctids` function sets `rowmark` to `ROW_MARK_KEYSHARE` the read RPC request has empty rowmark.
The reason is that `PgDocReadOp` clones `template_op_` to create actual read requests. It is done in the `PopulateDmlByYbctidOps` method. So setting `rowmark` in `template_op_` object after this point will not affects actual read RPC as it is already cloned from `template_op_`.
Solution is to set `rowmark` before call of the `PopulateDmlByYbctidOps`.
Setting `rowmark` and other parameters in case operations are already cloned from `template_op_` object will now raise an error.
On the `t-server` side changes was done to add necessary intents in case of batched ybctid request.
Test Plan:
Jenkins
```
./yb_build.sh --java-test org.yb.pgsql.TestPgForeignKey
```
Reviewers: neil, alex, sudheer
Reviewed By: sudheer
Subscribers: yql
Differential Revision: https://phabricator.dev.yugabyte.com/D9795
It was found that read RPC for FK check comes without rowmark field:
The text was updated successfully, but these errors were encountered: