Trafodion

Clone Tools
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added code to create the /lobs directory needed for lobs support

Change-Id: I250de40cef59b3471e42744f322466aa3c8ec269

Fix for bug #1415936

Bug #1415936:host name is blank for mxosrvr INFO log.

To fix it ,call host_addr_get to get host name no matter

whether -TCPADD is set or not.

If TCPADD is set and different with the ip returned

by host_addr_get,TCPADD is used and host name is set to "UNRESOLVED".

If TCPADD is set and same with the ip returned by host_addr_get,

TCPADD is used and host name is set from host_addr_get.

If TCPADD is not set ,ip and host name are set from host_addr_get.

Change-Id: I987dd156e6fc16f99c1d2b24e17d6d041cd3bcb1

    • -11
    • +10
    /conn/odbc/src/odbc/nsksrvr/SrvrMain.cpp
Fix to block txn on split/close region bug 1274651

The closing variable needed to be implemented since the

move from subclassing. This adds it back to the

preSplit() and preClose() calls to block new transactions

that try to begin on the region.

This closes a timing window where the split

or close operation starts and a transactions begins and

fails with various exceptions, now it will have the

exception message:

closing region, no more new transactions allowed.

Region: <regionName>

Change-Id: Id0dbe8c28c5fc69050e2fca184c77dcea9097f83

Fix to block txn on split/close region bug 1274651

The closing variable needed to be implemented since the

move from subclassing. This adds it back to the

preSplit() and preClose() calls to block new transactions

that try to begin on the region.

This closes a timing window where the split

or close operation starts and a transactions begins and

fails with various exceptions, now it will have the

exception message:

closing region, no more new transactions allowed.

Region: <regionName>

Change-Id: Id0dbe8c28c5fc69050e2fca184c77dcea9097f83

(cherry picked from commit c5c41658a6858d4a5f40cf60f3c4fef6593b8e83)

Changes to destroy more elements in NATable destructor

Changed to use CmpStatement Heap instead of NATable Heap

while creating the table descrptor.

With these changes, the NATable Heap allocated size

is around 22K at the end of seabase/TEST020 with no table

entries in the cache. Earlier, the allocated size was

around 1.5MB.

Patch Set #5:Addressed all the review comments

Change-Id: I61777dcb02f67f87092340d69086ba0ec0de2493

Merge "Change that possibly fixes the bug 1418757" into stable/1.0

Fixed pdsh issue

pdsh was being called before it might have been installed. Now

installing pdsh during traf_config_setup since it will be needed.

Change-Id: Ied68568826c0edffb6251313722b4d98586a03ab

Change that possibly fixes the bug 1418757

If a scanner is closed before the next call completes, it

results in OutOfOrderScannerNextException. Trafodion engine can

close the scanner when the next is active in a different thread

with pre-fetch concept. The fix is to cancel the pending next

before the scanner is closed.

Thanks to Oliver and Joanie for tracking this down. Ran

catman1/TEST137 many times successfully

Change-Id: I3b2872e0ca4fc6586e7e486600748c1102994e7b

Bulk Unload and Snapshot Scan fix

hive/test018 is failing in the test environment and it

looks like it s a classpath issue. The issue does

happen on the clusters or dev workstations though.

This fix is specific to the cloudera distribution.

Other distributions will be addressed later

Change-Id: I72ba8e8b85c9b6f0b5da96e55701d6f638154aaa

Merge "Fix core during dcsstop when repository is enabled"

Merge "Change that possibly fixes the bug 1418757"

Merge "TEST checkin-wait for verify-NDCS build fix part-2."

Change that possibly fixes the bug 1418757

If a scanner is closed before the next call completes, it

results in OutOfOrderScannerNextException. Trafodion engine can

close the scanner when the next is active in a different thread

with pre-fetch concept. The fix is to cancel the pending next

before the scanner is closed.

Thanks to Oliver and Joanie for tracking this down. Ran

catman1/TEST137 many times successfully

Change-Id: Ifb080abdd9bbe4042c88e2df1fa07b17f8eba2b5

Merge "More memory leak Changes"

Fix core during dcsstop when repository is enabled

When the repository feature is enabled at time MXOSRVR may core during a

dcsstop/sqstop. This is because the repository based thread does get

terminated properly before the sqstop is invoked. Fix is to call the

SyncPublicationThread() during terminateThreads() where the rest of the

threads in MXOSRVR are being stopped.

Moved SyncPublicationThread() before the check for tcp/ip thread.

Change-Id: Ib7b5de187ff02da49974b206832e25218891119c

    • -3
    • +0
    /conn/odbc/src/odbc/nsksrvr/SrvrConnect.cpp
Fix core during dcsstop when repository is enabled

When the repository feature is enabled at time MXOSRVR may core during a

dcsstop/sqstop. This is because the repository based thread does get

terminated properly before the sqstop is invoked. Fix is to call the

SyncPublicationThread() during terminateThreads() where the rest of the

threads in MXOSRVR are being stopped.

Moved SyncPublicationThread() before the check for tcp/ip thread.

Change-Id: Ib7b5de187ff02da49974b206832e25218891119c

    • -3
    • +0
    /conn/odbc/src/odbc/nsksrvr/SrvrConnect.cpp
several scanner fixes and improvements

+ added support for multi-line command specification in the configuration file,

and reformatted some of the existing commands to span multiple lines

+ added applicable FQDN checks from the installer

+ resolved Launchpad Bug 1411832

+ fully qualified ip addr show command to be /sbin/ip addr show

Change-Id: Icf44d860e219ed124ca1420acd2712b243dce119

    • -16
    • +50
    /installer/tools/trafodion_scanner.cfg
Enabled statistics

Change-Id: I0e63a0769c258a63c068771af8f606f52a2b10ed

Enabled statistics

Change-Id: I0e63a0769c258a63c068771af8f606f52a2b10ed

Adding additional diagnostics to debug jenkins gate problem

Change-Id: I5a4c1b490dbfc27b6de327db378c9227322f1ad8

Merge "Specify compiler context when querying natable virtual table interface"

Merge "Add dependencies and fix build."

Merge "branch-info in SCMBuildStr.h."

Merge "Enable SQL memory overflow check for debug tests"

Bulk unload and snapshot scan

+ adding testware files that were not delivered in t he first checkin

Change-Id: I87c3592cb34a12dc3e30a58c74e45582749b1807

    • -0
    • +24
    /sql/regress/hive/TEST018_create_hbase_objects.hbase
    • -0
    • +24
    /sql/regress/hive/TEST018_drop_hbase_objects.hbase
    • -0
    • +29
    /sql/regress/tools/regrhbase.ksh
C++ run-time interface for TMUDFs

blueprint cmp-tmudf-compile-time-interface

- Support for C++ run-time interface:

- A new language, C++ is added to langman, the existing

LanguageManagerC handles both C and C++

- Two new parameter styles got added, C++ and Java

object-oriented parameter styles. Routines written in C++

use the new object-oriented C++ parameter style. The compiler

interface is only supported for that style (and in the future

for the Java object-oriented style).

- Also added one more compile time interface, the "completeDescription()"

call in the generator. Added logic to extract the UDRPlanInfo of

the optimal plan.

- Changes to UDRInvocationInfo and UDRPlanInfo classes:

- UDRInvocationInfo and UDRPlanInfo objects can now be serialized

and they are added to generated plans, as part of the UDR TDB.

- Split TableInfo into TupleInfo and TableInfo classes. TupleInfo

is now the common base class for describing both parameters and

input/output tables.

- TypeInfo now has offsets for data, null indicator and varchar

indicator.

- New get<type> and set<type> methods on class TupleInfo, to be

used at compile time for parameters and at runtime for parameters,

input and output tables.

- Added a "call phase" member, to be able to throw exceptions when

certain methods are called at the wrong time (e.g. trying to modify

compile time members at runtime).

- Routine class in langman now has a new subclass, LmRoutineCppObj

and a new method, invokeRoutineMethod, that is used to invoke

the object-oriented methods, requiring UDRInvocationInfo and

UDRPlanInfo as parameters.

- Fixed some executor issues with error handling for UDFs, this is

still not very well supported

- Emitting the EOD row in the UDF is no longer required, and no longer

supported or even possible.

- UDRPlanInfo is now part of the physical properties, so that we

can extract it from the optimal plan.

- Disabling TMUDF as the inner of a nested join - for now.

We might support this "routine join" at a later time.

- regress/udr/TEST001:

- SESSIONIZE_STATIC remains in C, but other TMUDFs are now

rewritten in C++ (the runtime part that was not yet in C++)

- SESSIONIZE_DYNAMIC is now the same as the example on the wiki

- regress/udr/TEST002: Added some tests for event log reader UDF,

but can't add the part that copies a sample log file, since

in Jenkins, we don't have $MY_SQROOT set. Tried the test on my

workstation, though. Steve tells me $MY_SQROOT should be available,

so in a future checkin I'll enable this code again.

- For patch set 2: Removed fix for LP bug 1420539 and addressed

other review comments.

Change-Id: I008ad68a8f25f1aaee94e1c45bbf097a267129bb

  1. … 59 more files in changeset.
Merge "Fix stubs build."

Specify compiler context when querying natable virtual table interface

select * from table(natablecache('ALL','local')) ;

select * from table(natablecacheentries('meta','local')) ;

select * from table(naroutinecache('user','local')) ;

Following the querycache virtual table interface, now the natable and

naroutine cache virtual table interfaces also support specifying the

name of the context we want to query. The first parameter can be 'all' or

name of context (e.g. 'meta', 'user', 'ustat'). The second parameter

can be local or remote. Parameters are case insensitive.

For remote compiler we only query the context pointed to by activeschemadb.

The column num_entries has been added to natablecache virtual table.

This change can be used to monitor memory growth in these caches.

Patch Set 2:

Address issues found by Dave. Changes in 4 files

sql/arkcmp/NATableSt.cpp

sql/arkcmp/NATableSt.h

sql/arkcmp/QueryCacheSt.cpp

sql/optimizer/NARoutine.cpp

Changes cover

A minor leak in in HQCIterator

returning FALSE in NATable/RoutineCacheStats iterator getNext methods

Change-Id: Icf15c93b9ae3c3f523d0abe1580ce7280c5b0d84

  1. … 6 more files in changeset.
Enable SQL memory overflow check for debug tests

This testware changes will turn on the SQL memory overflow checking for

NAMemory allocation while running debug regression tests. For some

regression test suites, this could increase the run time to nearly 20%

while the increased time should be less for rest of test suites.

Plus a note added in the comment section for using the memory allocation

tracing feature.

Change-Id: I2e7e5f6b29fb2f0cee8f3a2928ac67b52c914ad5

    • -6
    • +1
    /sql/regress/tools/runregr_executor.ksh
More memory leak Changes

Changes to delete more elements in NATable. LIST or collection type

elements in NATable that collect references are now deleted.

Also removed some defensive code in RMS because it is not valid.

Added code to delete the internal statements when the row

is not found

PatchSet 3 contains the fix for T4 Phoenix test failures

Change-Id: Ib43da75582dd56d2562cb753738abed0ea5842d3