Clone Tools
Constraints: committers
Constraints: files
Constraints: dates
Miscellaneous DDL and security bug fixes

Fixed a testware issue with fullstack2/TEST062 that occurred during

release testing

Bug 1415196 - Alter volatile table add column cores at CmpSeabaseDDL::alterSeabaseTableAddColumn()

Added a check to not allow add or drop column for volatile tables:

- sqlcomp/CmpSeabaseDDLtable.cpp

Bug 1415232 - A failed create view causes a volatile table to disappear

The code to bind a view does not correctly reset the volatile schema in use

session parameter in case of an error. Subsequent calls do not check for

volatile objects.


Bug 1371265 - should not allow grants to DB__ROOT or current user

Added a check at grant to prevent this

- sqlcomp/PrivMgrPrivileges.cpp

Bug 1392491 - Unavailability of privmgr metadata error is incomplete

If not all the privmgr metadata is available, then a new Compile context

flag called IS_AUTHORIZATION_READY is set. This flag is adjusted when

a new compiler context is started, and when authorization is enabled and


When isAuthorizationEnabled is called and authorization is incomplete,

error 1234 is now returned by default.

After coding changes were added, a request to not check all privmgr metadata

table at context startup was requseted - a performance concern. Fix was

changed to check all tables for debug builds but check only one table for

release builds. If the performance problem is fixed, then we can go back

and check for all privmgr tables.

- arkcmp/CmpContext.h

- arkcmp/CmpContext.cpp

- sqlcomp/CmpSeabaseDDLcommon.cpp

- sqlcomp/nadefaults.cpp

Bug 1402009 - DB__ROOT is unable to grant privilege on object in private schema

When DB__ROOT executes a grant or revoke on objects it does not own, need to

change the grantor from DB__ROOT to the object owner. This matches the same

behavior for other DDL operations such as CREATE.

As part of this fix, the GRANTED BY clause is now allowed for GRANT

statements but it won't be complete until LP bug 1414225 is done.

- sqlcomp/CmpSeabaseDDLtable.cpp (seabaseGrantRevoke)

- sqlcomp/PrivMgrCommands.h

- sqlcomp/PrivMgrCommands.cpp

- sqlcomp/PrivMgrPrivileges.h

- sqlcomp/PrivMgrPrivileges.cpp

- sqlcomp/PrivMgrMD.h

Bug 1414125 - User without priv can view data in metadata tables

Fixes were in place for all metadata tables except the privmgr metadata

tables. The priv information was always being set to none in setupPrivInfo

(NATable) and revoking a privilege was not correctly removing privilege

information from object_privileges.

- optimizer/NATable.cpp

- sqlcomp/PrivMgrCommands.cpp

Bug - create library checking privileges when authorization is not enabled

- CmpSeabaseDDLroutine.cpp

Enhanced the sqlci env command:

- alphabetize the output

- add the following information

-- authentication status

-- authorization status

-- external (LDAP) user connected

A new session parameter called SESSION_EXTERNAL_USER_NAME was added to return

the external user name connected.

A new cli request called SQL_EXEC_GetAuthState_Internal was written to return

the authentication & authorization status. Code was also added, but not yet

supported, for auditing status.

Renamed member/methods that use ldap to external

Changed sqlci env command to return new format

- cli/sqlcli.h

- cli/SQLCLIdev.h

- cli/CliExtern.cpp

- cli/Cli.h

- cli/Cli.cpp

- cli/Context.h

- cli/Context.cpp

- qmscommon/QRQueries.cpp

- sqlci/SqlciEnv.h

- sqlci/SqlciEnv.cpp

- regress/fullstack2/EXPECTED062.SB

- regress/funnstack2/DIFF062.KNOWN.SB.OS

Change-Id: I04627435a0e644c6b14bbf6bd8aa1162d81224fb

    • -24
    • +36
  1. … 13 more files in changeset.
Merge "Added dummy link to update phandle"

Merge "tm id server - part-II."

Merge "changed default schema to TRAFODION.SEABASE"

Added dummy link to update phandle

Change-Id: Idb3b9225774a69f4fd12e7e5e6b56c181f9ee43a

Merge "Fix for thread/memory leak on table create/drop"

Merge "Add missing ignore directives for recently added build output"

Optimization for stateless put, remove dead code

Change-Id: Ieec94c4615ff9779d9368c65faecaf4548039f01

Merge "Initial changes for SSCC stateless put"

Fix child/parent query IDs for update stats

Failure to setup child/parent query IDs for update stats and

other non-embedded compiler scenarios caused problems in cancel

including frequest but intermittent failure of executor/TEST106.

This change fixes the problem.

Change-Id: I0d6b80aeddf9906f08d3dab09f9775414ea7bfc3

Closes-Bug: #1404963

    • -170
    • +176
tm id server - part-II.

Change-Id: Ie92fe02f8ceafe91f32279dd09044e9f2a336364

    • -0
    • +21
    • -0
    • +32
    • -0
    • +87
    • -0
    • +93
    • -0
    • +37
    • -0
    • +160
    • -0
    • +169
    • -0
    • +361
    • -0
    • +38
    • -0
    • +34
    • -0
    • +220
    • -0
    • +311
  1. … 13 more files in changeset.
New and updated repository columns

Repository column changes...




QUERY_SUB_STATUS --> for future use







TOTAL_DDL_STMTS --> Falls under OTHER category since no

corresponding sql type exists today




























Note: These columns were already added to the insert/update statements as

part of Anoop's earlier commit.

Packed explain plan to follow soon.

Change-Id: I268d1d24a8886ba1f0dc6181e1f0a65e53143fac

    • -7
    • +35
    • -0
    • +3
    • -0
    • +2
Merge "hive/test018 fixes"

Merge "New ustat algorithm and bulk load integration"

changed default schema to TRAFODION.SEABASE

Change-Id: I2d079ed749c0a8110629d23710479f1f7892f9bf

    • -1
    • +1
    • -2
    • +2
Fix for thread/memory leak on table create/drop

Objects that were put into our shared map between

coprocessors were not being removed. This change

adds a remove of the objects on a postClose() of

the region. A local thread was not being stopped

which lead to the TrxRegionEndpoint,TrxRegionObserver

and the thread itself not being GC'd as there was

still a reference.

Change-Id: Idaf3788d4a0b2065b93ec8746e3ea814615180b0

Merge "Transactions for DDL, Abort and Commit processing."

Merge "fix LP1420826 NJ off fails meta query compilation"

Merge "Phase5-DDLTransactions, SQL and TM changes"

Merge "Local Hadoop JDBC test script and test_env short-circuit"

Merge "Code review changes."

Merge "Squashed commit of the following:"

Initial changes for SSCC stateless put

Change-Id: I899c537548b09eb2d860063cd47a837769c00962

Merge "Getting a scanner from the correct table"

hive/test018 fixes

Disabling select from hive table emporarily to avoid the hang issue

(there is an LP 1436333 for the hang issue) and let the test finish.

Change-Id: Idfe5b1a980a169b4b7da8db18717ada0a23eb105

Merge "PHASE3&4- Transactional DDL - TM, RM, TMlib and JNI changes for create"

Merge "Avoid calling ResStatisticsStatement::start if stats is disabled."

fix LP1420826 NJ off fails meta query compilation

Change-Id: Ic443f6c9a4d25a84241fc66acd7ff54e00ab1b46

Local Hadoop JDBC test script and test_env short-circuit

For developers using local_hadoop environment, a new "swjdbc" script

is provided to run DCS jdbc tests, which is also a check/gate test.

The install_hadoop_regr_test_env also now checks if the hive tables

already exist. Since the tables are not modified by test runs, it

only needs to be run once per test system. This allows the jenkins

automation to call the script for every hive test run, but save several

minutes if it has previously been run.

Putting the short-circuit logic here allows it to change if additional

tables or data are added in future, without changing test automation.

Just in case, a force option is added to skip the check.

Change-Id: I96fd14957a1cf32dcd9c73127ccbb02472d51d4c

    • -0
    • +16
Code review changes.

Change-Id: Ifc480f0e64a00bb96cb4ce657e5e391d56c793f0