Skip to content
Snippets Groups Projects
Commit f2c81023 authored by Steven Murray's avatar Steven Murray
Browse files

Revert "Revert "CTA archive IDs now start at 1 as opposed to 0""

This reverts commit 46679981.

This is a revert of a revert.  I am putting back my modification
to start archive IDs at 1 because of the following error message
from cta-taped:

Dec  1 18:01:02 itdssbuild01 cta-taped: <155>2016-12-01T18:01:02.172441+01:00 cta-taped[19232]: LVL="Error" TID="19307" MSG="Failed to open tape file for writing" thread="TapeWrite" TPVID="V41001" fileId="0" fileSize="1167" fSeq="1" diskURL="root://itdssbuild01.cern.ch//eos/itdssbuild01/userfiles/testdir/group1?eos.lfn=fxid:0000086c" exceptionMessage="Unexpected fileId in WriteFile::WriteFile (expected != 0, got: 0) or fSeq (expected >=1, got: 1)"
Dec  1 18:01:02 itdssbuild01 cta-taped: <155>2016-12-01T18:01:02.173739+01:00 cta-taped[19232]: LVL="Error" TID="19307" MSG="An error occurred for this file. End of migrations." thread="TapeWrite" TPVID="V41001" fileId="0" fileSize="1167" fSeq="1" diskURL="root://itdssbuild01.cern.ch//eos/itdssbuild01/userfiles/testdir/group1?eos.lfn=fxid:0000086c" exceptionCode="666" exceptionMessage="Unexpected fileId in WriteFile::WriteFile (expected != 0, got: 0) or fSeq (expected >=1, got: 1)”
parent 869e1f75
No related branches found
No related tags found
No related merge requests found
CREATE SEQUENCE ARCHIVE_FILE_ID_SEQ
INCREMENT BY 1
START WITH 0
START WITH 1
NOMAXVALUE
MINVALUE 0
MINVALUE 1
NOCYCLE
CACHE 20
NOORDER;
......@@ -2,4 +2,4 @@ CREATE TABLE ARCHIVE_FILE_ID(
ID INTEGER,
CONSTRAINT ARCHIVE_FILE_ID_PK PRIMARY KEY(ID)
);
INSERT INTO ARCHIVE_FILE_ID(ID) VALUES(0);
INSERT INTO ARCHIVE_FILE_ID(ID) VALUES(1);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment