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

Add logging of query IDs via QueryLogIterator class #2451

Open
wants to merge 22 commits into
base: integration
Choose a base branch
from

Conversation

SethSmucker
Copy link
Collaborator

Create QueryLogIterator class that logs a query's ID to the TServer logs

  • Add QueryLogIterator to DefaultQueryPlanner
  • Add tserver.logging.active to QueryParameters, used to turn logging on and off
  • Add tests for QueryLogIterator and TServerLogging

Resolves #2305

Updated the PR to merge code from NSA/log-iterator to NSA/origin instead of from SethSmucker/log-iterator.

SethSmucker and others added 17 commits June 5, 2024 14:08
Added the query option tserver.logging.active to enable
logging of query IDs to the TServer logs. Created the
class QueryLogIterator to handle this. Logs the
start and end of each method called.

Fixes #2305
* Fix CountQueryTest issues

* Remove unecessary changes

* Code formatting
Add TserverLogging test to verify that queryLogIterator is created and
added to the iterator stack when desired. Additionally, move
tserver.logging.active property to QueryParameters, and ensure that if
specified, the query parameter will override the configuration settings.
Additionally, make it possible to set the tserver active logging flag
from a ShardQueryLogic configuration setting in the
QueryLogicFactory.xml file.
Added the query option tserver.logging.active to enable
logging of query IDs to the TServer logs. Created the
class QueryLogIterator to handle this. Logs the
start and end of each method called.

Fixes #2305
@SethSmucker SethSmucker marked this pull request as ready for review July 1, 2024 20:49
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.

QueryIterators/ScanIterators should log query id first
2 participants