Skip to content

Put a restriction on the max length of topic name #12

@rajubairishetti

Description

@rajubairishetti

Currently, we don't have any restriction on the length of the topic name. Users are trying to publish events to a topic (length of topic name > 25) but audit for those events are not updated in the db.

Error log:

25 Mar 2014 06:12:30,905 [AuditStatsFeeder_testcluster1] ERROR com.inmobi.conduit.audit.util.AuditDBHelper - SQLException while updating daily table
org.postgresql.util.PSQLException: ERROR: value too long for type character varying(25)

Schema:

Table "public.daily_conduit_summary"
Column | Type | Modifiers
--------------+-----------------------+-----------
topic | character varying(25) | not null
...

We should put a restriction on the length of a topic so that it will not affect the DB schema.

Max length of a topic name should be same/consistent from publisher, feeder and db side.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions