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

Regression service API for isc_spb_sts_table [CORE5379] #5652

Closed
firebird-automations opened this issue Oct 17, 2016 · 5 comments
Closed

Regression service API for isc_spb_sts_table [CORE5379] #5652

firebird-automations opened this issue Oct 17, 2016 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @mrotteveel

Jira_subtask_inward CORE5278

Getting stats for partticular table(s) fails, this never used to happen with 2.5.x & 3.0.0.

After upgrading to Firebird 3.0.1 a test that uses the services API to
obtain table statistics nows fails with an exception:

unrecognized service parameter block; All services except for getting
server log require switches [SQLState:42000, ISC error code:335544562]

This test, org.firebirdsql.management.TestFBStatisticsManager method
testGetTableStatistics works fine in 3.0.0 and earlier.

The test itself is:

statManager.getTableStatistics(new String[]{"TEST"});

where getTableStatistics is:

 public void getTableStatistics\(String\[\] tableNames\) throws 

SQLException {
// create space-separated list of tables
StringBuilder commandLine = new StringBuilder();
for (int i = 0; i < tableNames.length; i++) {
commandLine.append(tableNames[i]);
if (i < tableNames.length - 1)
commandLine.append(' ');
}

     try \(FbService service = attachServiceManager\(\)\) \{
         ServiceRequestBuffer srb = createStatsSRB\(service, 

isc_spb_sts_table);
srb.addArgument(isc_spb_command_line, commandLine.toString());
executeServicesOperation(service, srb);
}
}

Is the above doing something wrong (if so what?), or is this a regression?

Commits: f801218 01b521b

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

reporter: Alexander Peshkov [ alexpeshkoff ] => Mark Rotteveel [ avalanche1979 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Regression was caused by commit for CORE5278

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Code in master branch also fixed but bug was not released except snapshots therefore not mentioned in fix versions.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0.2 [ 10785 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants