Skip to content

java/vtgate-client: Process new "Flags" MySQL field in result set.#624

Merged
michael-berlin merged 1 commit intomasterfrom
mysql_flags_java_client
May 20, 2015
Merged

java/vtgate-client: Process new "Flags" MySQL field in result set.#624
michael-berlin merged 1 commit intomasterfrom
mysql_flags_java_client

Conversation

@michael-berlin
Copy link
Copy Markdown
Contributor

This change breaks the previous behavior: Before, BIGINT values were
always mapped to an UnsignedLong by default, unless they were negative.
With this change, they will be a UnsignedLong or Long depending on the
SQL schema (UNSIGNED flag present or not).

If an old VtGate does not send the Flags field, such values will be
mapped to a Long instead of an UnsignedLong before.

Refactored "FieldType" enum and included it in the "Field" class.

This commit was previously part of #618 and already LGTM'd. We'll merge it once the other commit went into production.

This change breaks the previous behavior: Before, BIGINT values were
always mapped to an UnsignedLong by default, unless they were negative.
With this change, they will be a UnsignedLong or Long depending on the
SQL schema (UNSIGNED flag present or not).

If an old VtGate does not send the Flags field, such values will be
mapped to a Long instead of an UnsignedLong before.

Refactored "FieldType" enum and included it in the "Field" class.
michael-berlin added a commit that referenced this pull request May 20, 2015
java/vtgate-client: Process new "Flags" MySQL field in result set.
@michael-berlin michael-berlin merged commit 201532b into master May 20, 2015
@michael-berlin michael-berlin deleted the mysql_flags_java_client branch May 20, 2015 01:07
rsajwani pushed a commit to planetscale/vitess that referenced this pull request Aug 1, 2022
* Limit some log messages to once per 15s

These two log messages are under the client's control: exceeding the
maximum number of patterns to aggregate, and exceeding the Kafka buffer
size.  A very busy client may (intentionally or not) exceed these limits,
and we don't want one log line per statement when that happens.

So we keep a counter of overflows and log about it only at the end of a
15s interval.

Other chatty log messages that aren't under the client's control are left
intact here.  In particular, Kafka errors, type-cast errors, and
serialization errors are things where we'll want to see `err.Error()`, so
we don't just roll them up as a uint.

Signed-off-by: Patrick Reynolds <patrick@piki.org>

* Fix `log.Infof` arguments

Signed-off-by: Patrick Reynolds <patrick@piki.org>
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.

1 participant