-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Medium
-
Affects Version/s: 3.1.1
-
Component/s: Installation
-
Environment:
Sybase DB
-
3.01
Sue wrote:
> Nick,
>
> Our mappings are identical to yours below.
>
> we are not storing unicode, I just created the workflows with the JIRA administration function in the workflows screen. I think datalength() returns a byte count.
>
> the dba said we cant increase the size of a text field, and we tested the textsize that is being used by JIRA when data is inserted into that table. the textsize is 2147483647 so its not the textsize. are you using INSERT or WRITETEXT to get the data in?
>
> Do we know if anyone else has had this problem with long workflows on a sybase or other database?
>
> Also interestingly the long workflow will work to completion on created issues and seem fine, then when a new workflow is added or one deleted the error will occur and the data is truncated.
>
> Regards,
> Sue.
>
> ----Original Message----
> From: Nick Menere nick.menere@atlassian.com![]()
> Cc: support@atlassian.com
> Subject: Re: Corrupted custom workflows
>
>
> Sue,
> To our knowledge we do not change the data size of any of these rows and
> we don't believe the libraries we use do either.
> By any chance are you storing unicode characters? These take up 2 bytes
> instead of 1. Hence 16K characters would take up 32K bytes. Though I
> am not sure whether datalength() returns a byte count or a character count.
>
> Just to give you a bit background as to how we set up our data types.
>
> In the file - entitymodel.xml we define our mappings from java objects
> to tables. In here you will find a mapping for workflows.
> It looks like this:
> <entity entity-name="Workflow" table-name="jiraworkflows"
> package-name="">
> <field name="id" type="numeric"/>
>
> <field name="name" col-name="workflowname" type="long-varchar"/>
> <field name="creator" col-name="creatorname" type="long-varchar"/>
> <field name="descriptor" type="extremely-long"/>
> <field name="islocked" type="short-varchar"/>
>
> <prim-key field="id"/>
> </entity>
>
> As you can see the descriptor column is mapped to be of type
> "extremely-long"
>
> This value is then mapped to a value in the file fieldtype-sybase.xml
> This value should be:
> <field-type-def type="extremely-long" sql-type="TEXT"
> java-type="String"></field-type-def>
>
> Can you check that yours are mapped correctly.
> Is it possible for you dba to increase the size of these columns - e.g.
> make them 64K?
> I have asked around my colleagues and google and can't find anything on
> our side that would cause this.
>
> Cheers,
> Nick
>
>
>
>
> Sue wrote:
>
>>Nick,
>>
>>This is what our DBA said about my problem. Any idea where JIRA is setting this textsize?.... Sue.
>>
>>the default maximum TEXT size in Sybase is 32K (select @@textsize).
>>
>>you can modify this by using (for example, in bytes).....
>>
>> set textsize 1000000
>>
>>..... before inserting data into the TEXT column.
>>
>>it looks like your program is already modifying it to be a max of 16Kb... eg:
>>
>>1> select datalength(DESCRIPTOR) from jiraworkflows
>>2> go
>>
>> -----------
>> 12813
>> 12813
>> 16384
>> 16384
>> 16384
>> 16384
>> 16384
>> 16384
>>
>>(8 rows affected)
>>1>
>>
>>you just need to find where in the code this can (or rather does) occur, and then make it much larger.
>>
>>
>>Shane
>>
>>----Original Message----
>>From: Nick Menere nick.menere@atlassian.com![]()
>>Cc: support@atlassian.com
>>Subject: Re: Corrupted custom workflows
>>
>>
>>Sue,
>>this seems most weird. The text field in Sybase should be able to
>>handle strings of up to 2 Gig. As big as your workflow is, I doubt it
>>is that big!
>>Are you able to determine the length of the strings that have been
>>truncated?
>>Can you confirm that field can store massive strings? Maybe manually
>>inserting a string into this table then checking it and then removing it?
>>
>>If the database is the issue, one way to fix this would be to store the
>>workflows on disk. Details on how to do this are located at:
>>http://confluence.atlassian.com/display/JIRA/Store+Workflow+on+Disk
>>
>>Cheers,
>>Nick
>>
>>
>>
>>
>>Sue wrote:
>>
>>
>>>Nick,
>>>
>>>Thanks for getting back to me. It is a TEXT type and I found the descriptor column values, it is truncating the long workflows. Does this mean I can only create workflows with under 10 or so steps? These ones had 15 and would often have more.
>>>
>>>Regards,
>>>Sue.
>>>
>>>----Original Message----
>>>From: Nick Menere nick.menere@atlassian.com![]()
>>>Subject: Re: Corrupted custom workflows
>>>
>>>
>>>Hi Sue,
>>>It looks as though the descriptor (stored as xml) may have been cut short.
>>>
>>>There should be entries in the jiraworkflow table in the descriptor
>>>column. Are there no entries for any workflow here?
>>>Was this a large workflow? Many steps?
>>>One thing you may want to check is the size of this column. Is it of
>>>type TEXT and does it allow extremely long strings?
>>>
>>>
>>>Chers,
>>>Nick
>>>
>>>Sue wrote:
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>I am working on the JIRA Enterprise Edition that we have just bought at ...
>>>>
>>>>I created a custom workflow and a day or so later it disappeared. This >>is the error in the logs when I try to use anything ie. workflow scheme >>that is associated with the workflow.
>>>>
>>>>ole0.bmp
>>>>
>>>>And here is how it appears in the workflow screen, blank with no name.
>>>>
>>>>ole1.bmp
>>>>
>>>>I searched your forums and cannot find anyone with this problem, plus I >>cannot find where the workflow steps are stored in the database or in an >>xml file on the server anywhere. We are using our own Sybase db. I
>>>>found the names of the workflows in jiraworkflows but that was all.
>>>>
>>>>Regards,
>>>>Sue.