Clone Tools
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move dcs into subdir to combine repos

    • -117
    • +0
    ./listener/ConnectionContext.java
  1. … 560 more files in changeset.
Move dcs into subdir to combine repos

    • -117
    • +0
    ./listener/ConnectionContext.java
  1. … 468 more files in changeset.
Move dcs into subdir to combine repos

    • -117
    • +0
    ./listener/ConnectionContext.java
  1. … 562 more files in changeset.
LP 1442730 Eliminating SQL Cancel for PUBLISHING Queries

DCSMaster checks if OID ends with text "_PUBLISHING" and if yes, ignores

SQL Cancel

Patch #1

Fixed reported problems

Change-Id: I4b913517f5cbb20bfca203c6f9bfa9fa9abd5047

    • -10
    • +15
    ./listener/RequestCancelQuery.java
Updated floating IP documentation

Added addtional text in architecture and configuration.

Fixed some nits from last code review

Change-Id: I2183f76a61034c08ab377b53e9f3e3a790b2d5fb

  1. … 3 more files in changeset.
Added floating IP feature

DcsMaster backups are configured in the conf/backup-masters file.

Whenever a backup takes over it now executes the bin/scripts/dcsbind.sh

script to move the floating IP to its own node. There are 3 new

properties necessary. They are:

dcs.master.floating.ip

Disabled by default. This property is used to enable/disable the

the floating IP feature.

dcs.master.floating.ip.external.interface

There is no default. The user must specify the network interface

to use for floating ip.

dcs.master.floating.ip.external.ip.address

There is no default. The user must specify the dotted IP

address to use for floating ip.

Patch set #2

removed hostname from backup-masters file

cleaned up trailing spaces

Patch set #3

updated copyrights

Change-Id: Ib9f9aa618716a0424c2dd160e5dc819c6c1a33eb

    • -0
    • +121
    ./FloatingIp.java
  1. … 10 more files in changeset.
Fixed query cancel sent by ODBC Driver

If Sql Cancel is sent by JDBC Driver, srvrObjRef has only portNumber.

When the request is sent by ODBC Driver, its format is following:

"TCP:IpAddress/PortNumber:ODBC".

To get the portNumber we have to parse srvrObjRef string

===============================

Replaced ip Address by <IpAddress> and port number by <portNumber>

Change-Id: Ic839bee2be44e9ca88fa2f8cd2cb1a72ff5ef994

partialy fix for query cancel

1. prepared DcsMaster for accepting request sent by T4 Driver to cancel

the query

2. Cleanup the code. Changing tabs to spaces.

3. Added processing unknown requests.

===============================================

Patch

1. To servermt added processing EndTransaction

2. To Master Listener added processing requests in LITTLE_ENDIAN

3. To servermt added fix for Logging

4. Fixed Exception message in RequestCancelQuery

5. In servermt fixed bugs reported in Phoenix Test.

===================================================

Patch

1. Fixed wrong text exception

2. Added checking if LOG is on

3. Removed listing LOG properties

4. Fixed precision for TIME and TIMESTAMP

5. Changed TYPE_EXPLAIN to return result set

6. Changed in SqlFetch process EOD

7. To SqlPrepare added more LOG info

8. Changed TConnection/TStatement closing

================================================

Patch

1. added query cancel procedure.

2. to pom.xml changed hadoop version to 2.5.0-cdh5.3.0 to make T2 driver

work

3. to servermt added SqlClose Api

4. fixed more problems in servermt

================================================

Patch

1. in pom.xml changed hadoop version to 2.6.0 and removed cloudera

repository.

2. fixed connecting timeout.

3. added connecting server state.

4. cleanup debug log messages.

5. restored in ClientData accidently deleted code.

================================================

Patch

1. fixed TAB-SPAC issues

===============================================

Patch

Fixed issues reported in code review

Change-Id: Ifd0b7835c87dbf84d5ea0dde05219a0651f19a74

    • -257
    • +262
    ./listener/ConnectReply.java
    • -338
    • +357
    ./listener/ListenerService.java
    • -123
    • +84
    ./listener/ListenerWorker.java
    • -0
    • +254
    ./listener/RequestCancelQuery.java
    • -0
    • +128
    ./listener/RequestGetObjectRef.java
    • -0
    • +87
    ./listener/RequestUnknown.java
  1. … 19 more files in changeset.
added new DCS Serverna

fixed reported issues:

1. copyright 2015

2. changed tabs to spaces

3. versioning in T2Driver

4. Added detailed description

fixed reported issues.

changed the name of Dcs Serverna to new name Dcs Servermt

changed System.out.println to LOG.debug

changed serverna to servermt in jamon

added property dcs.server.handlers.threads.max. This

property limits number of threads created by Dcs Server.

Default value is 10.

Fixed error in dcs

fixed description of the property

cleanup the code

changed system.out.println to LOG

Change-Id: Ib5b47a5c09171ddd1b1f062fe8e7b26bf31779bd

  1. … 59 more files in changeset.
Fixed issue with Trafodion query tools connection pool

Added more error checking to handle errors

Change-Id: I9c66c03cb45643b15602afb91f05c2d78c7d5b55

  1. … 8 more files in changeset.
Trafodion repository fixes

Ability to query 3 repository tables and visual query plan.

Change-Id: Iedfb3c879d6d7f2c1c0a66472a9ae28ad7d64eb9

    • -0
    • +584
    ./QueryPlanModel.java
    • -0
    • +35
    ./QueryPlanResponse.java
  1. … 96 more files in changeset.
Manageability changes in DCS

1) Port mapping

At startup DcsMaster now creates a list of TCP/IP ports based on the

entries in the conf/servers file and writes it to the zookeeper

/<username>/trafodion/dcs/servers/registered znode. Each MXOSRVR reads

the port map list and retrieves its unique port number.

2) Trafodion repository

JDBC type4 is used to access SQL from DcsMaster. The feature is disabled

by default but may be enabled by overriding the unpublished

"dcs.master.trafodion.repository" property with a value of .true. in

your dcs-site.xml file.

3) HA for DcsMaster

A new file, /bin/master-backup.sh, was added that when called from

dcs-start/dcs-stop script look for the presence of optional

/conf/backup-masters file. This feature works like the existing

.servers. in that you can specify hostnames, one per line, e.g.,

.localhost.. The script will start/stop DcsMaster processes on all hosts

defined in the file. The DcsMaster has new leader election code so that

only one DcsMaster process is the .leader.. All others wait, in a

non-herding fashion, for other DcsMasters to fail. The vision is that

the Seaquest .ndcsbind. script may be run prior to starting DCS but

more effort is needed to test this. This commit sets up the

infrastructure. There.s no property for this feature as it.s enabled

only the /conf/backup-masters file exists and has host names defined.

4) Trafodion logs

As a convenience DcsMaster can display the Trafodion log files found in

$MY_SQROOT/logs. There was no requirement for this rather I added for my

development use. Be warned that DcsMaster is not aware of Trafodion

configuration changes so right now it only looks in $MY_SQROOT/logs.

This feature is disabled by default but may be enabled by overriding the

unpublished "dcs.master.trafodion.logs" property with a value of .true.

in your dcs-site.xml file.

5) Basic Security

Provide basic infrastructure to authenticate DcsMaster Web UI users. A

new file /conf/realm.properties was added as a first step. It allows for

definition of users with roles. The embedded Jetty web server reads this

file and uses it to authenticate users attempting to access the

DcsMaster web UI. This feature will surely change over time. It also

supports #3 above as we need username/password for the connection to SQL

in T4 driver. We want users to only see/cancel their own queries. This

feature is disabled by default but may be enabled by overriding the

unpublished "dcs.master.security" property with a value of .true. in

your dcs-site.xml file.

Change-Id: I3e258f698dd828e683f0de03c2fe67c3ce4a5d26

    • -0
    • +177
    ./MasterLeaderElection.java
  1. … 57 more files in changeset.
DcsServer controls multiple MXOSRVRs

Change-Id: Ifcc9aa0b74087791c11b903b5c1ef7487dabc398

    • -0
    • +144
    ./RegisteredServer.java
    • -0
    • +84
    ./RunningServer.java
  1. … 6 more files in changeset.
DCS connections are now more evenly spread out among nodes

Change-Id: I13765883b31639dcf3ae5c12a90444ab8e135961

DCS Initial Code Drop

Change-Id: I823bdb655c9c1d0dc8266b8efaecedb094624edd

    • -0
    • +80
    ./MasterStatusServlet.java
    • -0
    • +446
    ./ServerManager.java
    • -0
    • +69
    ./listener/ClientData.java
    • -0
    • +220
    ./listener/ConnectReply.java
    • -0
    • +117
    ./listener/ConnectionContext.java
    • -0
    • +30
    ./listener/DataEvent.java
    • -0
    • +40
    ./listener/GetObjRefException.java
    • -0
    • +158
    ./listener/Header.java
    • -0
    • +65
    ./listener/ListenerConstants.java
    • -0
    • +90
    ./listener/ListenerMetrics.java
    • -0
    • +410
    ./listener/ListenerService.java
    • -0
    • +157
    ./listener/ListenerWorker.java
  1. … 105 more files in changeset.