Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADBDEV-5525: Remove per byte precision message truncation for multibyte strings #1185

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

RekGRpth
Copy link
Member

@RekGRpth RekGRpth commented Jan 20, 2025

Remove per byte precision message truncation for multibyte strings (#1185)

gpdb does not truncate error log correctly on error in external web tables.

If error code is not zero and error message is truncated in interpretError
on multi-byte character, then assert occurs.

If error code is zero and command emit stderr and this error message is
truncated in write_log (which is called by read_err_msg) on multi-byte
character, then bad character writes to log and later this log can not be
correctly read.

Solution is to correct error log truncation according to database encoding.

(cherry picked from commit ae9e7ac)


This PR should be rebased to preserve authorship.

RekGRpth added a commit that referenced this pull request Jan 20, 2025
…1185)

gpdb does not truncate error log correctly on error in external web tables.

If error code is not zero and error message is truncated in interpretError
on multi-byte character, then assert occurs.

If error code is zero and command emit stderr and this error message is
truncated in write_log (which is called by read_err_msg) on multi-byte
character, then bad character writes to log and later this log can not be
correctly read.

Solution is to correct error log truncation according to database encoding.

(cherry picked from commit ae9e7ac)
RekGRpth added a commit that referenced this pull request Jan 20, 2025
…1185)

gpdb does not truncate error log correctly on error in external web tables.

If error code is not zero and error message is truncated in interpretError
on multi-byte character, then assert occurs.

If error code is zero and command emit stderr and this error message is
truncated in write_log (which is called by read_err_msg) on multi-byte
character, then bad character writes to log and later this log can not be
correctly read.

Solution is to correct error log truncation according to database encoding.

(cherry picked from commit ae9e7ac)
…1185)

gpdb does not truncate error log correctly on error in external web tables.

If error code is not zero and error message is truncated in interpretError
on multi-byte character, then assert occurs.

If error code is zero and command emit stderr and this error message is
truncated in write_log (which is called by read_err_msg) on multi-byte
character, then bad character writes to log and later this log can not be
correctly read.

Solution is to correct error log truncation according to database encoding.

(cherry picked from commit ae9e7ac)

Changes compared to the original commit:
1) added the necessary include
2) added the expected test output for ORCA to a separate file
@RekGRpth RekGRpth marked this pull request as ready for review January 21, 2025 03:28
@RekGRpth RekGRpth merged commit 11a81d1 into adb-7.2.0 Jan 23, 2025
5 checks passed
@RekGRpth RekGRpth deleted the ADBDEV-5525 branch January 23, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants