CliExtern.cpp

Clone Tools
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[TRAFODION-2296] Consistent error reporting in abort, commit transaction. Changes to wait for all RS to respond when there is an exception in abort and commit transaction requests.

When there is an error returned from commit or rollback transaction, the details of the error can be obtained in the following log files

a) $MY_SQROOT/logs/tm_.log in the node that issued this request contains the error message as seen by the TM process in the JNI side. This event may not have transaction id.

b) $MY_SQROOT/logs/trafodion.dtm.log contains more info about this error with the transaction id. These events are logged from java side of TM.

c) In the region server logs of all the regions that participated in the transaction.

These exceptions are visible as error code on the client side. To get the details about the exception, the above logs need to be browsed.

Fixes to avoid tm core upon double delete of incoming messages to it

This closes #768

  1. … 7 more files in changeset.
[TRAFODION-2262] Mxosrvr or java core with the stack trace pointing to log4Cxx functions

The Logger repository needs to be initialized. The method QRLogger::initLog4cxx

initialized the commonLogger infrastructure also.

PR #745 merged to fix this issue exposed a problem in SSMP. This

caused SSMP to dump core when a node is brought down.

SSMP should have create the connection to SSCP on that node.

  1. … 3 more files in changeset.
TRAFODION-2265

Parse ex_conv_clause::convInstrStrInfo at sql process startup

(in sqInit) into a sparsely populated index for quick reference by

ex_conv_clause::findInstruction.

  1. … 2 more files in changeset.
Merge remote branch 'origin/master' into ansharma_simcheck_br

  1. … 2 more files in changeset.
[TRAFODION-2261] Mxosrvr or java core with starting from Java_org_trafodion_jdbc_t2_SQLMXConnection_close [TRAFODION-2262] Mxosrvr or Java core with the stack trace pointing to log4Cxx functions

IpcServerClass was not getting destructed correctly. When the CLI context is deleted, the ESP

server class object an IpcServerClass instance that manages the ESP server started

in the CLI context are also destroyed. Fixed the IpcServerClass and IpcServer destructors

so that there is no memory corruption.

Log4Cxx infrastructure in SQL was recursively attempting to log the messages when there is an

issue with it. This was causing stack corruption.

Also added a code to initialize the log4cxx infrastructure if it is not done already upon

the first CLI call.

  1. … 9 more files in changeset.
similarity check changes, commit #1

  1. … 44 more files in changeset.
Merge remote branch 'origin/master' into lobglobals_fix

Conflicts:

core/sql/cli/Context.cpp

core/sql/exp/ExpLOBaccess.cpp

  1. … 13 more files in changeset.
Changes to move hdfFs handing to the context globals level and remove all disconnects from hdfs from the various components.

  1. … 27 more files in changeset.
[TRAFODION-2031] At times T2 applications dump core at the time of logging error Cores were dumped when SQL tries to log the error message via log4cxx. Log4cxx instance was not initialized in case of T2 driver

[TRAFODION-1956] session defaults was getting corrupted in mxosrvr. COMPILER_IDLE_TIMEOUT wasn't added

in alphabetical order. Also fixed the possible buffer overrun issue with some of the set

commands in SessionDefaults

  1. … 5 more files in changeset.
Merge [TRAFODION-1944] Externalize SQL_EXEC_GetAuthState CLI call

TRAFODION [1944] Check status of authentication and authorization via a CLI call

The SQL_EXEC_GetAuthState_Internal CLI request has been changed to

SQL_EXEC_GetAuthState and moved from SQLCLIdev.h to sqlcli.h so it is available

to external callers.

  1. … 3 more files in changeset.
Merge remote branch 'origin/master' into lob_get_trace

  1. … 8 more files in changeset.
support for get command for LOB tables. Support for tracing LOB operations.

  1. … 30 more files in changeset.
TRAFODION-1910 mxosrvr crashes on Hive query after reconnect (take 2)

NATableDB is caching a pointer to a HiveClient_JNI object

(HiveMetaData::client_), but that object gets deallocated when a JDBC

client disconnects. Fixing this by keeping the HiveClient_JNI around

across sessions.

Selva and Suresh commented on the first fix and suggested to treat both

HBaseClient_JNI and HiveClient_JNI the same and to remove the CLI

interface that's used to delete these objects.

Therefore, the new fix is to remove this CLI call. It gets called from

two places, one is when an ODBC/JDBC connection closes and the other

is from "initialize trafodion, drop". We believe that neither of them

is needed. Note that we have only one object of each type per CLI

context, and that we delete both objects when we delete the context

(ContextCli::deleteMe()), so there are no leaks.

  1. … 3 more files in changeset.
update

  1. … 298 more files in changeset.
Changes for performing GC. Changes to pass in hdfsServer and port via CQD and remove hardcoding. Changes to pass in lobLocation via CQD and remove hardcoding. Changes to remove all mxlobsrvr process functionality from ExLOBprocess.cpp. Retaining only the infrasturcture so mxlobsrvr process can be used in the future. The executable is still built but the process is not started as part of Trafodion anymore. We may use it in the future.

  1. … 28 more files in changeset.
Merge remote branch 'origin/master' into lob_work_files2

  1. … 25 more files in changeset.
Fixes for extract to files and dealing with issues ith 2 or more lob columns.

  1. … 20 more files in changeset.
Part 2 of changes to update license text in Trafodion source

This check-in updates license text in all source files in the

core/sql directory. Remaining directories will be done in

later check-ins.

  1. … 3147 more files in changeset.
Merge remote branch 'log4cxx/temp-merge' into migrate_log4cpp_to_log4cxx

Conflicts:

core/log4cpp/.gitignore

core/log4cpp/log4cpp-1.1.1/COPYING

core/log4cpp/log4cpp-1.1.1/ChangeLog

core/log4cpp/log4cpp-1.1.1/include/.cvsignore

core/log4cpp/log4cpp-1.1.1/include/Makefile.am

core/log4cpp/log4cpp-1.1.1/include/Makefile.in

core/log4cpp/log4cpp-1.1.1/include/config.h.in

core/log4cpp/log4cpp-1.1.1/include/log4cpp/.cvsignore

core/log4cpp/log4cpp-1.1.1/include/log4cpp/AbortAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Appender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/AppenderSkeleton.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/AppendersFactory.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/BasicConfigurator.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/BasicLayout.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/BufferingAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Category.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/CategoryStream.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Configurator.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Export.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/FactoryParams.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/FileAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Filter.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/FixedContextCategory.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/HierarchyMaintainer.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/IdsaAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Layout.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/LayoutAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/LayoutsFactory.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/LevelEvaluator.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/LoggingEvent.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Makefile.am

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Makefile.in

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Manipulator.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/NDC.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/NTEventLogAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/OstreamAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/PassThroughLayout.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/PatternLayout.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Portability.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Priority.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/PropertyConfigurator.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/RemoteSyslogAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/RollingFileAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/SimpleConfigurator.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/SimpleLayout.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/SmtpAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/StringQueueAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/SyslogAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/TimeStamp.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/TriggeringEventEvaluator.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/TriggeringEventEvaluatorFactory.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/Win32DebugAppender.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/config-MinGW32.h

core/log4cpp/log4cpp-1.1.1/include/log4cpp/config-openvms.h

core/log4cpp/log4cpp-1.1.1/include/log4cpp/config-win32-stlport-boost.h

core/log4cpp/log4cpp-1.1.1/include/log4cpp/config.h

core/log4cpp/log4cpp-1.1.1/include/log4cpp/convenience.h

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/BoostThreads.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/DummyThreads.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/MSThreads.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/Makefile.am

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/Makefile.in

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/OmniThreads.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/PThreads.hh

core/log4cpp/log4cpp-1.1.1/include/log4cpp/threading/Threading.hh

core/log4cpp/log4cpp-1.1.1/src/.cvsignore

core/log4cpp/log4cpp-1.1.1/src/AbortAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/Appender.cpp

core/log4cpp/log4cpp-1.1.1/src/AppenderSkeleton.cpp

core/log4cpp/log4cpp-1.1.1/src/AppendersFactory.cpp

core/log4cpp/log4cpp-1.1.1/src/BasicConfigurator.cpp

core/log4cpp/log4cpp-1.1.1/src/BasicLayout.cpp

core/log4cpp/log4cpp-1.1.1/src/BufferingAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/Category.cpp

core/log4cpp/log4cpp-1.1.1/src/CategoryStream.cpp

core/log4cpp/log4cpp-1.1.1/src/Configurator.cpp

core/log4cpp/log4cpp-1.1.1/src/DllMain.cpp

core/log4cpp/log4cpp-1.1.1/src/DummyThreads.cpp

core/log4cpp/log4cpp-1.1.1/src/FactoryParams.cpp

core/log4cpp/log4cpp-1.1.1/src/FileAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/Filter.cpp

core/log4cpp/log4cpp-1.1.1/src/FixedContextCategory.cpp

core/log4cpp/log4cpp-1.1.1/src/HierarchyMaintainer.cpp

core/log4cpp/log4cpp-1.1.1/src/IdsaAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/LayoutAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/LayoutsFactory.cpp

core/log4cpp/log4cpp-1.1.1/src/LevelEvaluator.cpp

core/log4cpp/log4cpp-1.1.1/src/Localtime.cpp

core/log4cpp/log4cpp-1.1.1/src/Localtime.hh

core/log4cpp/log4cpp-1.1.1/src/LoggingEvent.cpp

core/log4cpp/log4cpp-1.1.1/src/MSThreads.cpp

core/log4cpp/log4cpp-1.1.1/src/Makefile

core/log4cpp/log4cpp-1.1.1/src/Makefile.am

core/log4cpp/log4cpp-1.1.1/src/Makefile.in

core/log4cpp/log4cpp-1.1.1/src/Manipulator.cpp

core/log4cpp/log4cpp-1.1.1/src/NDC.cpp

core/log4cpp/log4cpp-1.1.1/src/NTEventLogAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/OmniThreads.cpp

core/log4cpp/log4cpp-1.1.1/src/OstreamAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/PThreads.cpp

core/log4cpp/log4cpp-1.1.1/src/PassThroughLayout.cpp

core/log4cpp/log4cpp-1.1.1/src/PatternLayout.cpp

core/log4cpp/log4cpp-1.1.1/src/PortabilityImpl.cpp

core/log4cpp/log4cpp-1.1.1/src/PortabilityImpl.hh

core/log4cpp/log4cpp-1.1.1/src/Priority.cpp

core/log4cpp/log4cpp-1.1.1/src/Properties.cpp

core/log4cpp/log4cpp-1.1.1/src/Properties.hh

core/log4cpp/log4cpp-1.1.1/src/PropertyConfigurator.cpp

core/log4cpp/log4cpp-1.1.1/src/PropertyConfiguratorImpl.cpp

core/log4cpp/log4cpp-1.1.1/src/PropertyConfiguratorImpl.hh

core/log4cpp/log4cpp-1.1.1/src/RemoteSyslogAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/RollingFileAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/SimpleConfigurator.cpp

core/log4cpp/log4cpp-1.1.1/src/SimpleLayout.cpp

core/log4cpp/log4cpp-1.1.1/src/SmtpAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/StringQueueAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/StringUtil.cpp

core/log4cpp/log4cpp-1.1.1/src/StringUtil.hh

core/log4cpp/log4cpp-1.1.1/src/SyslogAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/TimeStamp.cpp

core/log4cpp/log4cpp-1.1.1/src/TriggeringEventEvaluatorFactory.cpp

core/log4cpp/log4cpp-1.1.1/src/Win32DebugAppender.cpp

core/log4cpp/log4cpp-1.1.1/src/macros.gmk

core/log4cpp/log4cpp-1.1.1/src/snprintf.c

core/log4cpp/log4cpp-1.1.1/src/verslib.h

core/log4cpp/log4cpp-1.1.1/src/verslog4cpplib.cpp

core/sqf/conf/log4cpp.monitor.mon.config

core/sqf/conf/log4cpp.monitor.mon.snmp.config

core/sqf/conf/log4cpp.monitor.psd.config

core/sqf/conf/log4cpp.monitor.wdg.config

core/sqf/conf/log4cpp.monitor.wdg.snmp.config

core/sqf/conf/log4cpp.trafodion.lob.config

core/sqf/conf/log4cpp.trafodion.masterexe.config

core/sqf/conf/log4cpp.trafodion.sscp.config

core/sqf/conf/log4cpp.trafodion.ssmp.config

core/sqf/conf/log4cpp.trafodion.tm.config

core/sqf/conf/log4cpp.trafodion.udr.config

core/sql/bin/vers_log4cpp.cpp

sql/bin/vers_log4cpp.cpp

sql/bin/vers_log4cxx.cpp

  1. … 220 more files in changeset.
Move core into subdir to combine repos

    • -0
    • +7714
    ./CliExtern.cpp
  1. … 10768 more files in changeset.
Move core into subdir to combine repos

    • -0
    • +7580
    ./CliExtern.cpp
  1. … 10622 more files in changeset.
Move core into subdir to combine repos

Use: git log --follow -- <file>

to view file history thru renames.

    • -0
    • +7915
    ./CliExtern.cpp
  1. … 10837 more files in changeset.